Esc

Csv_Cell

structextensionSource

Not exported. Code outside this module cannot name it; it is here because exported types use it.

  • macOS: Csv_Cell works on macOS
  • Linux: Csv_Cell works on Linux
  • Windows: Csv_Cell works on Windows
  • Wasm: Csv_Cell works on Wasm

Declaration

Csv_Cell :: struct {
    offset: int;    line: int;    line_start: int;    start: int;    end: int;    text: string;}

One field of a record read byte by byte (one that did not fit the window, or after a quote error). start..end is where its bytes sit in buffer; a field read straight from a borrowed input is text instead and leaves the buffer alone. offset, line and line_start say where the field began, for typed errors. The block scanner keeps none of this: see field_position.