src/vt/scanner.cr
A zero-allocation utility for extracting semicolon-delimited arguments
from string payloads.
Constructors
Initializes a scanner mapped to the provided string payload.
SourceInstance methods
complete?
Returns true if the entire payload has been consumed.
Sourcenext_action
Extracts the next single-byte character and advances past the delimiter.
Sourcenext_bool
Extracts the next numeric token and interprets it as a boolean.
Represents 1 as true, and any other value as false.
Sourcenext_i32
Extracts the next numeric token as a signed 32-bit integer.
Sourcenext_str
Extracts the remainder of the token up to the next semicolon delimiter
and returns it as a string slice without allocating new heap memory.
Sourcenext_u32
Extracts the next numeric token as an unsigned 32-bit integer.
Sourcevalid?
Returns true if the scanner is in a valid state and parsing can continue.
Source