NDEVR
API Documentation
StringStream< StringView >

StringStream specialization for StringView types, providing non-owning string conversion. More...

Inheritance diagram for StringStream< StringView >:
[legend]
Collaboration diagram for StringStream< StringView >:
[legend]

Static Public Member Functions

static void fromString (const StringView &string, StringView &value)
 Parses a StringView from another string view.
static const char * getValidRegex ()
 Returns a regex pattern that validates StringView input.
static void toDisplayString (const StringView &value, TranslatedString &string)
 Converts a StringView to a user-facing translated string.
static void toString (const StringView &value, StringAllocatingView &string)
 Converts a StringView to its string representation.

Detailed Description

StringStream specialization for StringView types, providing non-owning string conversion.


Definition at line 316 of file StringStream.h.

Member Function Documentation

◆ fromString()

void StringStream< StringView >::fromString ( const StringView & string,
StringView & value )
static

Parses a StringView from another string view.

Parameters
[in]stringThe string view to parse from.
[in]valueThe output StringView to populate.

◆ getValidRegex()

const char * StringStream< StringView >::getValidRegex ( )
static

Returns a regex pattern that validates StringView input.

Returns
A C-string containing the regex pattern.

◆ toDisplayString()

void StringStream< StringView >::toDisplayString ( const StringView & value,
TranslatedString & string )
static

Converts a StringView to a user-facing translated string.

Parameters
[in]valueThe StringView to convert.
[in]stringThe output translated string to write to.

◆ toString()

void StringStream< StringView >::toString ( const StringView & value,
StringAllocatingView & string )
static

Converts a StringView to its string representation.

Parameters
[in]valueThe StringView to convert.
[in]stringThe output string view to write to.

The documentation for this class was generated from the following file: