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