NDEVR
API Documentation
StringSplitter

Logic for splitting a string into two. More...

Static Public Member Functions

static const char * begin (const StringView &s)
 Returns a pointer to the beginning of the string data.
static const char * end (const StringView &s)
 Returns a pointer to the end of the string data.
static StringViewBuffer split (const StringView &s, char split)
 Splits a string into parts using the given delimiter character.

Detailed Description

Logic for splitting a string into two.


Definition at line 54 of file StringStream.h.

Member Function Documentation

◆ begin()

const char * StringSplitter::begin ( const StringView & s)
static

Returns a pointer to the beginning of the string data.

Parameters
[in]sThe string view to get the beginning of.
Returns
A pointer to the first character in the string.

Referenced by StringStream< Vector< t_dims, t_type > >::fromString().

◆ end()

const char * StringSplitter::end ( const StringView & s)
static

Returns a pointer to the end of the string data.

Parameters
[in]sThe string view to get the end of.
Returns
A pointer past the last character in the string.

Referenced by StringStream< Vector< t_dims, t_type > >::fromString().

◆ split()

StringViewBuffer StringSplitter::split ( const StringView & s,
char split )
static

Splits a string into parts using the given delimiter character.

Parameters
[in]sThe string view to split.
[in]splitThe delimiter character to split on.
Returns
A buffer of string views representing the split parts.

References split().

Referenced by StringStream< Bounds< t_dims, t_type > >::fromString(), StringStream< Buffer< t_type, t_memory_manager > >::fromString(), StringStream< Matrix< t_type, t_row_dims, t_col_dims > >::fromString(), StringStream< Vector< t_dims, t_type > >::fromString(), and split().


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