zplCore.comzplCore.com

ZplParser

public static class ZplParser

Tokenizes raw ZPL into commands. Handles caret/tilde/delimiter changes (^CC, ^CT, ^CD) and commands with non-standard name lengths (^A font, ^B barcodes, ^XA etc. are all two chars, except ^A which is followed by the font name directly).

Methods

Method SignatureReturnsDescription
static # DecodeFieldHex(string data, char indicator, Encoding encoding)stringDecodes ^FH hex escapes (default indicator '_') inside field data.
static # LineColumn(string source, int offset)(int, int)1-based line and column of a character offset in source (CR LF, LF and CR end a line).
static # Parse(string zpl)List<ZplCommand>