oa::StringView
StringView class in the OA Core public surface.
Public Methods
Public Data Members
Nposconst size_typestaticConstructor & Destructor Documentation
No public source comment is attached to this declaration.
Array binding (string literals AND fixed-size char buffers). Length is the C-string length bounded by the array capacity — i.e. up to the first ' \ 0', else the full N. For an exact-sized literal this equals the historical N-1, so the constexpr name tables are unchanged; for a short string in a larger buffer (e.g. snprintf into char[16]) it stops at the real terminator instead of capturing the embedded NUL + uninitialised tail (which silently corrupted dotted module paths in checkpoint serialization).
Parameters
insconst char (&)[N]—
No public source comment is attached to this declaration.
Parameters
innullTerminatedconst char *—
No public source comment is attached to this declaration.
Parameters
insconst char *—
inlensize_type—
Public Method Documentation
No public source comment is attached to this declaration.
Parameters
inidxsize_type—
Returns
charThe declared return value.
No public source comment is attached to this declaration.
Returns
charThe declared return value.
No public source comment is attached to this declaration.
Returns
const_iteratorThe declared return value.
No public source comment is attached to this declaration.
Parameters
inoStringView—
Returns
intThe declared return value.
No public source comment is attached to this declaration.
Returns
const char *The declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
const_iteratorThe declared return value.
No public source comment is attached to this declaration.
Parameters
inoStringView—
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Parameters
inneedleStringView—
inpossize_typeDefault: 0
Returns
size_typeThe declared return value.
No public source comment is attached to this declaration.
Parameters
inchchar—
inpossize_typeDefault: 0
Returns
size_typeThe declared return value.
No public source comment is attached to this declaration.
Parameters
insconst char *—
inpossize_typeDefault: 0
Returns
size_typeThe declared return value.
No public source comment is attached to this declaration.
Parameters
insconst char *—
inpossize_type—
incountsize_type—
Returns
size_typeThe declared return value.
No public source comment is attached to this declaration.
Returns
charThe declared return value.
No public source comment is attached to this declaration.
Parameters
inidxsize_type—
Returns
charThe declared return value.
No public source comment is attached to this declaration.
Parameters
innsize_type—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
innsize_type—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inCharchar—
inPositionsize_typeDefault: Npos
Returns
size_typeThe declared return value.
No public source comment is attached to this declaration.
Returns
size_typeThe declared return value.
No public source comment is attached to this declaration.
Parameters
inpossize_typeDefault: 0
incountsize_typeDefault: Npos
Returns
StringViewThe declared return value.