GS1 Syntax Dictionary: Linter reference
A reference to the AI component linter routines referred to by the GS1 Syntax Dictionary.
|
The yymmd0
linter ensures that the data represents a meaningful date, in YYMMDD format, additionally permitting YYMM00 format indicating an unspecified day.
Macros | |
#define | CURRENT_YEAR 21 |
20YY: For converting YY to 19YY, 20YY, 21YY, etc. for leap year validation | |
GS1_SYNTAX_DICTIONARY_API gs1_lint_err_t gs1_lint_yymmd0 | ( | const char *const | data, |
size_t *const | err_pos, | ||
size_t *const | err_len | ||
) |
Used to ensure that an AI component conforms to the YYMMDD or YYMM00 formats.
[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 . |