[−][src]Module gtin_validate::gtin14
Performs validation and correction of GTIN-14 codes.
Enums
FixError | Errors that make GTIN-14 correction impossible. |
Functions
check | Check that a GTIN-14 code is valid by confirming that it is exactly 14 digits in length and that the check-digit is correct. |
fix | Attempt to fix an invalid GTIN-14 code by stripping whitespace from the left and right sides and zero-padding the code if it is less than 14 digits in length. |