GS1.FNC1Prefix (gs1_barcode v0.1.2)
View SourceGS1 prefix (Symbology Identifier) utils.
Summary
Functions
Attempts to match the lead of barcode against to GS1 FNC1 sequences.
Functions
@spec match(binary()) :: {GS1.DataStructure.barcode_type(), binary(), binary()}
Attempts to match the lead of barcode against to GS1 FNC1 sequences.
Examples
iex> GS1.FNC1Prefix.match("]d20104600494694202")
{:gs1_datamatrix, "]d2", "0104600494694202"}
iex> GS1.FNC1Prefix.match("0104600494694202")
{:unknown, "", "0104600494694202"}