oa::StringView

StringView class in the OA Core public surface.

Public Methods

char oa::StringView::at(size_type inidx)
char oa::StringView::back()
const_iterator oa::StringView::begin()
int oa::StringView::compare(StringView ino)
const char * oa::StringView::data()
bool oa::StringView::empty()
const_iterator oa::StringView::end()
bool oa::StringView::equals(StringView ino)
size_type oa::StringView::find(StringView inneedle, size_type inpos = 0)
size_type oa::StringView::find(char inch, size_type inpos = 0)
size_type oa::StringView::find(const char * ins, size_type inpos = 0)
size_type oa::StringView::find(const char * ins, size_type inpos, size_type incount)
char oa::StringView::front()
char oa::StringView::operator[](size_type inidx)
void oa::StringView::removePrefix(size_type inn)
void oa::StringView::removeSuffix(size_type inn)
size_type oa::StringView::rfind(char inChar, size_type inPosition = Npos)
size_type oa::StringView::size()
StringView oa::StringView::subStr(size_type inpos = 0, size_type incount = Npos)

Public Data Members

Nposconst size_typestatic

Constructor & Destructor Documentation

oa::StringView::StringView()
No public source comment is attached to this declaration.
oa::StringView::StringView( const char (&)[N] ins )
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

ins
const char (&)[N]

oa::StringView::StringView( const char * innullTerminated )
No public source comment is attached to this declaration.

Parameters

innullTerminated
const char *

oa::StringView::StringView( const char * ins, size_type inlen )
No public source comment is attached to this declaration.

Parameters

ins
const char *

inlen
size_type

Public Method Documentation

char oa::StringView::at( size_type inidx )
No public source comment is attached to this declaration.

Parameters

inidx
size_type

Returns

char

The declared return value.

char oa::StringView::back()
No public source comment is attached to this declaration.

Returns

char

The declared return value.

const_iterator oa::StringView::begin()
No public source comment is attached to this declaration.

Returns

const_iterator

The declared return value.

int oa::StringView::compare( StringView ino )
No public source comment is attached to this declaration.

Parameters

ino
StringView

Returns

int

The declared return value.

const char * oa::StringView::data()
No public source comment is attached to this declaration.

Returns

const char *

The declared return value.

bool oa::StringView::empty()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

const_iterator oa::StringView::end()
No public source comment is attached to this declaration.

Returns

const_iterator

The declared return value.

bool oa::StringView::equals( StringView ino )
No public source comment is attached to this declaration.

Parameters

ino
StringView

Returns

bool

The declared return value.

size_type oa::StringView::find( StringView inneedle, size_type inpos = 0 )
No public source comment is attached to this declaration.

Parameters

inneedle
StringView

inpos
size_type

Default: 0

Returns

size_type

The declared return value.

size_type oa::StringView::find( char inch, size_type inpos = 0 )
No public source comment is attached to this declaration.

Parameters

inch
char

inpos
size_type

Default: 0

Returns

size_type

The declared return value.

size_type oa::StringView::find( const char * ins, size_type inpos = 0 )
No public source comment is attached to this declaration.

Parameters

ins
const char *

inpos
size_type

Default: 0

Returns

size_type

The declared return value.

size_type oa::StringView::find( const char * ins, size_type inpos, size_type incount )
No public source comment is attached to this declaration.

Parameters

ins
const char *

inpos
size_type

incount
size_type

Returns

size_type

The declared return value.

char oa::StringView::front()
No public source comment is attached to this declaration.

Returns

char

The declared return value.

char oa::StringView::operator[]( size_type inidx )
No public source comment is attached to this declaration.

Parameters

inidx
size_type

Returns

char

The declared return value.

void oa::StringView::removePrefix( size_type inn )
No public source comment is attached to this declaration.

Parameters

inn
size_type

Returns

void

The declared return value.

void oa::StringView::removeSuffix( size_type inn )
No public source comment is attached to this declaration.

Parameters

inn
size_type

Returns

void

The declared return value.

size_type oa::StringView::rfind( char inChar, size_type inPosition = Npos )
No public source comment is attached to this declaration.

Parameters

inChar
char

inPosition
size_type

Default: Npos

Returns

size_type

The declared return value.

size_type oa::StringView::size()
No public source comment is attached to this declaration.

Returns

size_type

The declared return value.

StringView oa::StringView::subStr( size_type inpos = 0, size_type incount = Npos )
No public source comment is attached to this declaration.

Parameters

inpos
size_type

Default: 0

incount
size_type

Default: Npos

Returns

StringView

The declared return value.