Esc

Segment_Iterator

structextensionsince 0.36.1Source
  • macOS: Segment_Iterator works on macOS
  • Linux: Segment_Iterator works on Linux
  • Windows: Segment_Iterator works on Windows
  • Wasm: Segment_Iterator works on Wasm

Declaration

Segment_Iterator :: struct {
    text: string;    kind: Segmentation;    offset: int;    error: Unicode_Text_Error;    lookahead := -1;    lookahead_class: S;}

Borrows its text and allocates nothing. Check error after iteration, including empty input.

See also