parse

fun parse(text: String, order: Gs1Order = Gs1Order.OPTIMIZED): Gs1Message(source)

Parses bracketed AI syntax, e.g. (01)09501101020917(17)190508(10)ABCD1234.

A literal ( inside a value must be written as \(.

Throws

if the text is malformed or the data is invalid.