[][src]Module gtin_validate::gtin13

Performs validation and correction of GTIN-13 and EAN-13 codes.

Enums

FixError

Errors that make GTIN-13 correction impossible.

Functions

check

Check that a GTIN-13 code is valid by checking the length (should be exactly 13 digits) and that the check-digit is correct.

fix

Attempt to fix an invalid GTIN-13 code by stripping whitespace from the let and right sides and zero-padding the code if it is less than 13 digits in length.