Class that implements functionality of the string but doesn't manage provided memory, user is responsible for correct memory management and deallocation.
More...
Creates StringView from the raw C-style string
- Parameters
-
[in] | cstr | The sequence of characters that forms the string |
[in] | length | The length of string except termination character |
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
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] | index | The index of the character |
- Returns
- The character of the string
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: