Skip to main content
Version: v0.0.2

Variable: DELIMITER_POSITIONS

const DELIMITER_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.

  • element at byte 3 - the byte immediately after the literal "ISA".
  • repetition at byte 82 - ISA-11 (the Control Standards Identifier slot, repurposed as the repetition separator in 005010+).
  • component at byte 104 - ISA-16 (the LAST element).
  • segment at byte 105 - the byte immediately after ISA-16.

Type Declaration

component

readonly component: 104 = 104

element

readonly element: 3 = 3

repetition

readonly repetition: 82 = 82

segment

readonly segment: 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. "*"