Class that implements functionality of the string, an object that represents a sequence of characters.
More...
String |
( |
size_t |
length, |
|
|
char |
placeholder = '\0' |
|
) |
| |
|
explicit |
Constructs string of specified length filled with placeholder
- Parameters
-
[in] | length | The length of the string |
[in] | placeholder | The character to be used as placeholder |
DAAL_DEPRECATED String |
( |
const char * |
begin, |
|
|
const char * |
end |
|
) |
| |
|
explicit |
Range constructor
- Parameters
-
[in] | begin | Pointer to the first character of the string |
[in] | end | Pointer 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
-
- Deprecated:
- This item will be removed in a future release.
String |
( |
const char * |
str, |
|
|
size_t |
capacity = 0 |
|
) |
| |
Default constructor
- Parameters
-
[in] | str | The sequence of characters that forms the string |
[in] | capacity | Unused |
Copy constructor
- Parameters
-
[in] | str | The sequence of characters that forms the string |
void add |
( |
const String & |
str | ) |
|
Extends the string by appending additional characters at the end of its current value
- Parameters
-
[in] | str | A 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] | index | Index of the character |
- Returns
- Pointer to the character of the string
Returns the number of characters in the string
- Returns
- The number of characters in the string
Extends the string by appending additional characters at the end of its current value
- Parameters
-
[in] | str | A string object whose values are copied at the end |
char operator[] |
( |
size_t |
index | ) |
const |
Returns the pointer to a character of the string
- Parameters
-
[in] | index | Index of the character |
- Returns
- Pointer to the character of the string
const int __DAAL_STR_MAX_SIZE |
|
static |
Maximal length of the string
The documentation for this class was generated from the following file: