C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
StringView Class Reference

Class that implements functionality of the string but doesn't manage provided memory, user is responsible for correct memory management and deallocation. More...

Class Declaration

Constructor & Destructor Documentation

StringView ( )
inline

Creates empty StringView

StringView ( const char *  cstr,
size_t  length 
)
inlineexplicit

Creates StringView from the raw C-style string

Parameters
[in]cstrThe sequence of characters that forms the string
[in]lengthThe length of string except termination character

Member Function Documentation

const char* begin ( ) const
inline

Returns pointer to the first character of the string

Returns
The constant pointer to the first character of the string
const char* c_str ( ) const
inline

Returns the content of the string as array of characters

Returns
The content of the string as array of characters
bool empty ( ) const
inline

Flag indicates that string is empty (its size is 0)

Returns
Whether the string is empty
const char* end ( ) const
inline

Returns pointer to the last + 1 character of the string

Returns
The constant pointer to the last + 1 character of the string
char operator[] ( size_t  index) const
inline

Returns the character of the string

Parameters
[in]indexThe index of the character
Returns
The character of the string
size_t size ( ) const
inline

Returns the number of characters in the string

Returns
The number of characters in the string

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

For more complete information about compiler optimizations, see our Optimization Notice.