.TH "hyle/purify.h" 3 "libhyle" \" -*- nroff -*- .ad l .nh .SH NAME hyle/purify.h \- Row-level field validation and error collection\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br \fR#include 'field\&.h'\fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBhyle_purify_error_t\fP" .br .RI "One validation violation reported for a row field\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBhyle_purify_row\fP (const \fBhyle_field_t\fP *fields, size_t field_count, const char **values, \fBhyle_purify_error_t\fP **errors_out, size_t *error_count_out)" .br .RI "Validate a row's values against a field schema\&. " .ti -1c .RI "void \fBhyle_purify_errors_free\fP (\fBhyle_purify_error_t\fP *errors, size_t error_count)" .br .RI "Free the error array and its message strings\&. " .in -1c .SH "Detailed Description" .PP Row-level field validation and error collection\&. Validates a row's values against the field schema and reports per-field violations without touching storage\&. .SH "Function Documentation" .PP .SS "void hyle_purify_errors_free (\fBhyle_purify_error_t\fP * errors, size_t error_count)" .PP Free the error array and its message strings\&. .PP \fBParameters\fP .RS 4 \fIerrors\fP Array returned by \fBhyle_purify_row()\fP, or NULL\&. .br \fIerror_count\fP Number of entries in errors\&. .RE .PP .SS "int hyle_purify_row (const \fBhyle_field_t\fP * fields, size_t field_count, const char ** values, \fBhyle_purify_error_t\fP ** errors_out, size_t * error_count_out)" .PP Validate a row's values against a field schema\&. Checks required presence, integer min/max, string length bounds and POSIX extended regex patterns without touching storage\&. On failure the violations are returned through errors_out; release them with \fBhyle_purify_errors_free()\fP\&. .PP \fBParameters\fP .RS 4 \fIfields\fP Array of field descriptors\&. .br \fIfield_count\fP Number of entries in fields\&. .br \fIvalues\fP Parallel array of raw string values, or NULL\&. .br \fIerrors_out\fP Receives the violation array, or NULL\&. .br \fIerror_count_out\fP Receives the number of violations, or NULL\&. .RE .PP \fBReturns\fP .RS 4 1 when the row failed validation (or an error was raised), 0 when the row is valid or the arguments are invalid\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libhyle from the source code\&.