Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
Tokenizer handles the tokenization of EDIFACT strings
func NewDefaultTokenizer ¶
func NewDefaultTokenizer() *Tokenizer
NewDefaultTokenizer creates a new tokenizer with default EDIFACT configuration
func NewTokenizer ¶
func NewTokenizer(config model.EDIFACTConfig) *Tokenizer
NewTokenizer creates a new tokenizer with the given configuration
func (*Tokenizer) ExtractSegmentTag ¶
ExtractSegmentTag extracts the segment tag from the first element of a segment
func (*Tokenizer) GroupTokensIntoSegments ¶
GroupTokensIntoSegments groups tokens into segments
func (*Tokenizer) IsSegmentStart ¶
IsSegmentStart checks if the given token represents the start of a new segment
Click to show internal directories.
Click to hide internal directories.