Class that implements functionality of the string, an object that represents a sequence of characters.
More...
◆ String() [1/2]
String |
( |
const char * |
str, |
|
|
size_t |
capacity = 0 |
|
) |
| |
Default constructor
- Parameters
-
[in] | str | The sequence of characters that forms the string |
[in] | capacity | Number of characters that will be allocated to store the string |
◆ String() [2/2]
Copy constructor
- Parameters
-
[in] | str | The sequence of characters that forms the string |
◆ ~String()
◆ add()
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 |
◆ c_str()
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
◆ get()
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
◆ length()
Returns the number of characters in the string
- Returns
- The number of characters in the string
◆ operator+()
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 |
◆ operator[]()
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
◆ __DAAL_STR_MAX_SIZE
const int __DAAL_STR_MAX_SIZE |
|
static |
Maximal length of the string
The documentation for this class was generated from the following file: