Results for “Std.Text.Source.Source”
8 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Text.Source.Source
Byte storage and ascending line starts, built together by the constructors.
- Std.Text.Source.byteLength
&Std.Text.Source.Source -> IntHow many bytes the text occupies.
- Std.Text.Source.fromBytes
&Bytes -> Std.Text.Source.SourceIndex LF delimiters without decoding or copying the source bytes.
- Std.Text.Source.fromText
Str -> Std.Text.Source.SourceEncode UTF-8 explicitly before building the byte-coordinate index.
- Std.Text.Source.line
&Std.Text.Source.Source -> Int -> Option[Bytes]Return a line without its LF or CRLF delimiter, preserving standalone CR.
- Std.Text.Source.lineCount
&Std.Text.Source.Source -> IntHow many lines the text has.
- Std.Text.Source.position
&Std.Text.Source.Source -> Int -> Option[Std.Text.Source.Position]Locate an absolute byte offset. A byte inside UTF-8 still has a byte column.
- Std.Text.Source.slice
&Std.Text.Source.Source -> Int -> Int -> Option[Bytes]Return an exact half-open byte range; invalid bounds never clamp silently.
