GS1.Tokenizer (gs1_barcode v0.1.2)
View SourceConfigured GS1 Tokenizer. See GS1.Tokenizer.Base.
Examples
iex> GS1.Tokenizer.tokenize("010460049469420217210228")
{:ok, [
ai_fixed: {"01", "04600494694202"},
ai_fixed: {"17", "210228"}
], "", %{}, {1, 0}, 24}
Summary
Functions
Tokenizes a raw GS1 input string.
Functions
@spec tokenize(binary(), keyword()) :: {:ok, [term()], rest, context, line, byte_offset} | {:error, reason, rest, context, line, byte_offset} when line: {pos_integer(), byte_offset}, byte_offset: non_neg_integer(), rest: binary(), reason: String.t(), context: map()
Tokenizes a raw GS1 input string.