#include <SPL/Runtime/Type/String.h>
◆ rstring() [1/7]
SPL::rstring::rstring |
( |
|
) |
|
|
inlineexplicit |
◆ rstring() [2/7]
SPL::rstring::rstring |
( |
const std::string & |
str |
) |
|
|
inline |
Copy constructor
- Parameters
-
str |
string to construct from |
◆ rstring() [3/7]
SPL::rstring::rstring |
( |
const std::string & |
str, |
|
|
size_t |
pos, |
|
|
size_t |
n = npos |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
str |
string to construct from |
pos |
index within str to start copying |
n |
number of bytes to copy |
◆ rstring() [4/7]
SPL::rstring::rstring |
( |
const char * |
s, |
|
|
size_t |
n |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
s |
pointer to a character array |
n |
number of bytes to copy |
◆ rstring() [5/7]
SPL::rstring::rstring |
( |
const char * |
s |
) |
|
|
inline |
Constructor
- Parameters
-
s |
NULL terminated string to construct from |
◆ rstring() [6/7]
SPL::rstring::rstring |
( |
size_t |
n, |
|
|
char |
c |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
n |
number of bytes to use |
c |
character to initialize the bytes |
◆ rstring() [7/7]
template<class InputIterator >
SPL::rstring::rstring |
( |
InputIterator |
beginIn, |
|
|
InputIterator |
endIn |
|
) |
|
|
|
inline |
Constructor
- Parameters
-
beginIn |
begin iterator |
endIn |
end iterator |
◆ operator=()
Assignment operator
- Parameters
-
- Returns
- this
◆ hashCode()
size_t SPL::rstring::hashCode |
( |
|
) |
const |
|
inline |
Get the hash code
- Returns
- hash code
◆ getSerializedSize()
size_t SPL::rstring::getSerializedSize |
( |
|
) |
const |
|
inline |
Get the size in bytes when serialized
- Returns
- size in bytes when serialized
◆ at()
rstring SPL::rstring::at |
( |
uint32_t |
index |
) |
const |
|
inline |
Select one character from an rstring
- Parameters
-
index |
logical character position |
- Returns
- an rstring consisting of the logical character at position index
- Exceptions
-
◆ string() [1/2]
std::string& SPL::rstring::string |
( |
|
) |
|
|
inline |
Return std::string representation
- Returns
- std::string representation
◆ string() [2/2]
std::string const& SPL::rstring::string |
( |
|
) |
const |
|
inline |
Return std::string representation
- Returns
- std::string representation
◆ toString()
template<class T >
static rstring SPL::rstring::toString |
( |
T const & |
value |
) |
|
|
inlinestatic |
Convert an SPL value to string
- Parameters
-
- Returns
- rstring representation
The documentation for this class was generated from the following file: