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

Static Public Attributes | List of all members
String Class Reference

Class that implements functionality of the string, an object that represents a sequence of characters. More...

Static Public Attributes

static const int __DAAL_STR_MAX_SIZE
 

Class Declaration

Constructor & Destructor Documentation

String ( )

Default constructor

String ( size_t  length,
char  placeholder = '\0' 
)
explicit

Constructs string of specified length filled with placeholder

Parameters
[in]lengthThe length of the string
[in]placeholderThe character to be used as placeholder
DAAL_DEPRECATED String ( const char *  begin,
const char *  end 
)
explicit

Range constructor

Parameters
[in]beginPointer to the first character of the string
[in]endPointer to the last character + 1
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED String ( const std::string &  str)
inline

Constructor from STL string

Parameters
[in]strThe STL string
Deprecated:
This item will be removed in a future release.
String ( const char *  str,
size_t  capacity = 0 
)

Default constructor

Parameters
[in]strThe sequence of characters that forms the string
[in]capacityUnused
String ( const String str)

Copy constructor

Parameters
[in]strThe sequence of characters that forms the string
~String ( )

Destructor

Member Function Documentation

void add ( const String str)

Extends the string by appending additional characters at the end of its current value

Parameters
[in]strA string object whose values are copied at the end
const char* c_str ( ) const

Returns the content of the string as array of characters

Returns
The content of the string as array of characters
char get ( size_t  index) const

Returns the pointer to a character of the string

Parameters
[in]indexIndex of the character
Returns
Pointer to the character of the string
size_t length ( ) const

Returns the number of characters in the string

Returns
The number of characters in the string
String& operator+ ( const String str)

Extends the string by appending additional characters at the end of its current value

Parameters
[in]strA string object whose values are copied at the end
String& operator= ( const String other)

Assigment operator

char operator[] ( size_t  index) const

Returns the pointer to a character of the string

Parameters
[in]indexIndex of the character
Returns
Pointer to the character of the string

Member Data Documentation

const int __DAAL_STR_MAX_SIZE
static

Maximal length of the string


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

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