Construct a retained byte view.
valueCopied string or retained native view; default ''.
offsetNonnegative byte offset, default zero.
countOptionalByte count, clipped at the end; default all remaining.
Represent Rml::StringView::begin as a view-relative byte position.
Zero, including for an empty view.
Check whether this UTF-8 view contains no bytes.
Whether this view has no bytes.
Represent Rml::StringView::end as a view-relative byte position.
Byte length; the end position cannot be dereferenced.
Compare every byte with Rml::StringView::operator==.
otherOther view or UTF-8 string.
Byte equality including bytes after NUL.
Read Rml::StringView::size without a native call.
Byte length.
Create another view retaining this same immutable native owner.
offsetByte offset inside this view.
countOptionalByte count, clipped at the end; default all remaining.
Retained byte slice.
Copy all bytes into an independently owned native snapshot.
Writable snapshot that preserves incomplete UTF-8 and NUL.
Copy the view using Rml::StringView's String conversion.
UTF-8 decoded text, replacing incomplete or invalid UTF-8.
Rml::StringView with immutable native backing retained by every slice.
Remarks
All positions and lengths use bytes. Partial UTF-8 slices are allowed. Byte snapshots are independently writable and never alter the owner.