GS1 Syntax Dictionary: Linter reference
A reference to the AI component linter routines referred to by the GS1 Syntax Dictionary. Copyright (c) 2022-2024 GS1 AISBL.
|
The iso5218
linter ensures that the given data represents a ISO/IEC 5218 biological sex code, either "0" (not known), "1" (male), "2" (female) or "9" (not applicable).
GS1_SYNTAX_DICTIONARY_API gs1_lint_err_t gs1_lint_iso5218 | ( | const char *const | data, |
size_t *const | err_pos, | ||
size_t *const | err_len | ||
) |
Used to validate that an AI component is the string "0", "1", "2" or "9".
[in] | data | Pointer to the null-terminated data to be linted. Must not be NULL . |
[out] | err_pos | To facilitate error highlighting, the start position of the bad data is written to this pointer, if not NULL . |
[out] | err_len | The length of the bad data is written to this pointer, if not NULL . |