Variable: DELIMITER_POSITIONS
constDELIMITER_POSITIONS:object
Internal
Zero-indexed byte positions of the four delimiter classes inside the 106-byte ISA. Locked by ASC X12 .5; do NOT make these configurable.
elementat byte 3 - the byte immediately after the literal"ISA".repetitionat byte 82 - ISA-11 (the Control Standards Identifier slot, repurposed as the repetition separator in 005010+).componentat byte 104 - ISA-16 (the LAST element).segmentat byte 105 - the byte immediately after ISA-16.
Type Declaration
component
readonlycomponent:104=104
element
readonlyelement:3=3
repetition
readonlyrepetition:82=82
segment
readonlysegment:105=105
Example
import { DELIMITER_POSITIONS } from "@cosyte/x12";
// The element separator is always the 4th byte of a well-formed ISA:
raw.charAt(DELIMITER_POSITIONS.element); // e.g. "*"