Specialization for std::string class.
More...
|
static const char * | GetConstChar (const std::string *const pValue) |
| Retrieves a const char pointer (null-terminated). More...
|
|
static size_t | GetCurrentLength (const std::string *const pValue) |
| Retrieves the string size of the given pValue . More...
|
|
static tResult | SetValue (std::string *const pValue, const char *strValue) |
| Sets the given strValue to the string type implementation of the given pValue . More...
|
|
Specialization for std::string class.
Definition at line 114 of file string_intf.h.
◆ GetConstChar()
static const char* GetConstChar |
( |
const std::string *const |
pValue | ) |
|
|
inlinestatic |
Retrieves a const char pointer (null-terminated).
- Parameters
-
pValue | [in] Pointer to string implementation. |
- Returns
- the pointer to a const char* nullterminated string out of
pValue
Definition at line 117 of file string_intf.h.
◆ GetCurrentLength()
static size_t GetCurrentLength |
( |
const std::string *const |
pValue | ) |
|
|
inlinestatic |
Retrieves the string size of the given pValue
.
- Parameters
-
pValue | [in] Pointer to string implementation. |
- Returns
- size of the string (char count without null-terminated value)
Definition at line 122 of file string_intf.h.
◆ SetValue()
static tResult SetValue |
( |
std::string *const |
pValue, |
|
|
const char * |
strValue |
|
) |
| |
|
inlinestatic |
Sets the given strValue
to the string type implementation of the given pValue
.
- Parameters
-
pValue | [in] Pointer to string implementation. |
strValue | [in] value to set. |
- Returns
- Depends on implementation.
- Return values
-
ERR_ACCESS_DENIED | writing access denied, value can not be set. |
ERR_MEMORY | strValue size exceeds the buffer of pValue . |
ERR_NOERROR | Successfully set. |
Definition at line 127 of file string_intf.h.
References RETURN_NOERROR.