|
iDRS™ SDK 16
|
Interface for idrs_string wrapper. More...
Go to the source code of this file.
Functions | |
| idrs_string | idrs_string_idrs_Create (idrs_exception *pargException) |
| Default constructor. | |
| idrs_string | idrs_string_idrs_Create2 (const idrs_string argOther, idrs_exception *pargException) |
| Copy constructor from another idrs_string. | |
| idrs_string | idrs_string_idrs_Create3 (utf8_type const *argBuffer, idrs_exception *pargException) |
| Constructor from a null terminated char buffer. | |
| idrs_string | idrs_string_idrs_Create4 (utf8_type const *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Constructor from a char buffer and a size. | |
| idrs_string | idrs_string_idrs_Create5 (utf32_type const *argBuffer, idrs_exception *pargException) |
| Constructor from a null terminated wide char buffer. | |
| idrs_string | idrs_string_idrs_Create6 (utf32_type const *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Constructor from a wide char buffer and a size. | |
| idrs_string | idrs_string_idrs_Create7 (utf16_type const *argBuffer, idrs_exception *pargException) |
| Constructor from a null terminated wide char buffer. | |
| idrs_string | idrs_string_idrs_Create8 (utf16_type const *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Constructor from a wide char buffer and a size. | |
| idrs_string | idrs_string_idrs_Create9 (wchar_t const *argBuffer, idrs_exception *pargException) |
| Constructor from a null terminated wide char buffer. | |
| idrs_string | idrs_string_idrs_Create10 (wchar_t const *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Constructor from a wide char buffer and a size. | |
| utf8_type const * | idrs_string_c_str (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the non-modifiable array of characters. | |
| utf32_type const * | idrs_string_utf32_c_str (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the non-modifiable array of wide characters. | |
| utf16_type const * | idrs_string_utf16_c_str (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the non-modifiable array of wide characters. | |
| void | idrs_string_clear (idrs_string argidrs_string, idrs_exception *pargException) |
| Clear the string content. | |
| idrs_string | idrs_string_assign (idrs_string argidrs_string, const idrs_string argOther, idrs_exception *pargException) |
| Assignment operator taking an idrs_string. | |
| idrs_string | idrs_string_assign2 (idrs_string argidrs_string, char const *argBuffer, idrs_exception *pargException) |
| Assignment operator taking a null-terminated buffer of chars. | |
| idrs_string | idrs_string_assign3 (idrs_string argidrs_string, char const *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Assignment operator taking a buffer of chars with a size. | |
| idrs_string | idrs_string_assign4 (idrs_string argidrs_string, utf32_type const *argBuffer, idrs_exception *pargException) |
| Assignment operator taking a null-teminated buffer of wide chars. | |
| idrs_string | idrs_string_assign5 (idrs_string argidrs_string, utf32_type const *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Assignment operator taking a buffer of wide chars and a size. | |
| idrs_string | idrs_string_assign6 (idrs_string argidrs_string, utf16_type const *argBuffer, idrs_exception *pargException) |
| Assignment operator taking a null-teminated buffer of wide chars. | |
| idrs_string | idrs_string_assign7 (idrs_string argidrs_string, utf16_type *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Assignment operator taking a buffer of wide chars and a size. | |
| idrs_string | idrs_string_assign8 (idrs_string argidrs_string, wchar_t const *argBuffer, idrs_exception *pargException) |
| Assignment operator taking a null-teminated buffer of wide chars. | |
| idrs_string | idrs_string_assign9 (idrs_string argidrs_string, wchar_t *argBuffer, IDRS_UINT const uiSize, idrs_exception *pargException) |
| Assignment operator taking a buffer of wide chars and a size. | |
| IDRS_UINT | idrs_string_utf32_length (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the string length in its utf-32 representation. | |
| IDRS_UINT | idrs_string_utf16_length (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the string length in its utf-16 representation. | |
| IDRS_UINT | idrs_string_size (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the string length in its utf-8 representation. | |
| IDRS_UINT | idrs_string_utf32_size (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the string length in its utf-32 representation. | |
| IDRS_UINT | idrs_string_utf16_size (const idrs_string argidrs_string, idrs_exception *pargException) |
| Returns the string length in its utf-16 representation. | |
| IDRS_BOOL | idrs_string_empty (const idrs_string argidrs_string, idrs_exception *pargException) |
| Checks wheter the string is empty. | |
| IDRS_INT | idrs_string_compare (const idrs_string argidrs_string, const idrs_string argOther, idrs_exception *pargException) |
| Compares this string to another one. | |
| IDRS_BOOL | idrs_string_starts_with (const idrs_string argidrs_string, const idrs_string strPrefix, idrs_exception *pargException) |
| Checks if this string starts with the given prefix. | |
| IDRS_BOOL | idrs_string_ends_with (const idrs_string argidrs_string, const idrs_string strSuffix, idrs_exception *pargException) |
| Check if this string ends with the given suffix. | |
| IDRS_INT | idrs_string_find (const idrs_string argidrs_string, const idrs_string strValue, IDRS_INT const iOffset, idrs_exception *pargException) |
| Finds the position of the first occurrence of the given substring. | |
| IDRS_INT | idrs_string_find2 (const idrs_string argidrs_string, const idrs_string strValue, idrs_exception *pargException) |
| Finds the position of the first occurrence of the given substring. | |
| IDRS_INT | idrs_string_rfind (const idrs_string argidrs_string, const idrs_string strValue, IDRS_INT const iOffset, idrs_exception *pargException) |
| Finds the position of the last occurrence of the given substring. | |
| IDRS_INT | idrs_string_rfind2 (const idrs_string argidrs_string, const idrs_string strValue, idrs_exception *pargException) |
| Finds the position of the last occurrence of the given substring. | |
| idrs_string | idrs_string_substr (const idrs_string argidrs_string, IDRS_INT const iPosition, IDRS_INT const iCount, idrs_exception *pargException) |
| Returns the specified substring. | |
| idrs_string | idrs_string_substr2 (const idrs_string argidrs_string, IDRS_INT const iPosition, idrs_exception *pargException) |
| Returns the specified substring. | |
| idrs_string | idrs_string_append (idrs_string argidrs_string, const idrs_string argOther, idrs_exception *pargException) |
| Append a string to the end of this string. | |
| void | idrs_string_Destroy (idrs_string argidrs_string, idrs_exception *pargException) |
| Destroys a idrs_string handle. | |
Interface for idrs_string wrapper.
| idrs_string idrs_string_append | ( | idrs_string | argidrs_string, |
| const idrs_string | argOther, | ||
| idrs_exception * | pargException | ||
| ) |
Append a string to the end of this string.
| argidrs_string | idrs_string handle |
| argOther | The string to append |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign | ( | idrs_string | argidrs_string, |
| const idrs_string | argOther, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking an idrs_string.
| argidrs_string | idrs_string handle |
| argOther | String to assign |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign2 | ( | idrs_string | argidrs_string, |
| char const * | argBuffer, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a null-terminated buffer of chars.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the utf-8 string to assign |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign3 | ( | idrs_string | argidrs_string, |
| char const * | argBuffer, | ||
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a buffer of chars with a size.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the utf-8 string to assign |
| uiSize | Size of the buffer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign4 | ( | idrs_string | argidrs_string, |
| utf32_type const * | argBuffer, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a null-teminated buffer of wide chars.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the utf-32 string to assign |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign5 | ( | idrs_string | argidrs_string, |
| utf32_type const * | argBuffer, | ||
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a buffer of wide chars and a size.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the utf-32 string to assign |
| uiSize | Size of the buffer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign6 | ( | idrs_string | argidrs_string, |
| utf16_type const * | argBuffer, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a null-teminated buffer of wide chars.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the utf-16 string to assign |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign7 | ( | idrs_string | argidrs_string, |
| utf16_type * | argBuffer, | ||
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a buffer of wide chars and a size.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the utf-16 string to assign |
| uiSize | Size of the buffer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign8 | ( | idrs_string | argidrs_string, |
| wchar_t const * | argBuffer, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a null-teminated buffer of wide chars.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the wide char to assign |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_assign9 | ( | idrs_string | argidrs_string, |
| wchar_t * | argBuffer, | ||
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Assignment operator taking a buffer of wide chars and a size.
| argidrs_string | idrs_string handle |
| argBuffer | Buffer containing the wide char to assign |
| uiSize | Size of the buffer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| utf8_type const * idrs_string_c_str | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the non-modifiable array of characters.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void idrs_string_clear | ( | idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Clear the string content.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT idrs_string_compare | ( | const idrs_string | argidrs_string, |
| const idrs_string | argOther, | ||
| idrs_exception * | pargException | ||
| ) |
Compares this string to another one.
| argidrs_string | idrs_string handle |
| argOther | Other string to compare to. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| < | 0 This string appears first in lexicographical order |
| > | 0 This string appears second in lexicographical order |
| 0 | Both strings are equal |
| void idrs_string_Destroy | ( | idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Destroys a idrs_string handle.
| argidrs_string | idrs_string handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL idrs_string_empty | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Checks wheter the string is empty.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL idrs_string_ends_with | ( | const idrs_string | argidrs_string, |
| const idrs_string | strSuffix, | ||
| idrs_exception * | pargException | ||
| ) |
Check if this string ends with the given suffix.
| argidrs_string | idrs_string handle |
| strSuffix | Suffix to check for |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT idrs_string_find | ( | const idrs_string | argidrs_string, |
| const idrs_string | strValue, | ||
| IDRS_INT const | iOffset, | ||
| idrs_exception * | pargException | ||
| ) |
Finds the position of the first occurrence of the given substring.
| argidrs_string | idrs_string handle |
| strValue | The value to search for |
| iOffset | The index where to start searching |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT idrs_string_find2 | ( | const idrs_string | argidrs_string, |
| const idrs_string | strValue, | ||
| idrs_exception * | pargException | ||
| ) |
Finds the position of the first occurrence of the given substring.
| argidrs_string | idrs_string handle |
| strValue | The value to search for |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create | ( | idrs_exception * | pargException | ) |
Default constructor.
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create10 | ( | wchar_t const * | argBuffer, |
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Constructor from a wide char buffer and a size.
| argBuffer | Buffer containing the string |
| uiSize | Size of the string to be taken into account |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create2 | ( | const idrs_string | argOther, |
| idrs_exception * | pargException | ||
| ) |
Copy constructor from another idrs_string.
| argOther | String to copy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create3 | ( | utf8_type const * | argBuffer, |
| idrs_exception * | pargException | ||
| ) |
Constructor from a null terminated char buffer.
| argBuffer | Buffer containing the string |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create4 | ( | utf8_type const * | argBuffer, |
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Constructor from a char buffer and a size.
| argBuffer | Buffer containing the string |
| uiSize | Size of the string to be taken into account |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create5 | ( | utf32_type const * | argBuffer, |
| idrs_exception * | pargException | ||
| ) |
Constructor from a null terminated wide char buffer.
| argBuffer | Buffer containing the string |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create6 | ( | utf32_type const * | argBuffer, |
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Constructor from a wide char buffer and a size.
| argBuffer | Buffer containing the string |
| uiSize | Size of the string to be taken into account |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create7 | ( | utf16_type const * | argBuffer, |
| idrs_exception * | pargException | ||
| ) |
Constructor from a null terminated wide char buffer.
| argBuffer | Buffer containing the string |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create8 | ( | utf16_type const * | argBuffer, |
| IDRS_UINT const | uiSize, | ||
| idrs_exception * | pargException | ||
| ) |
Constructor from a wide char buffer and a size.
| argBuffer | Buffer containing the string |
| uiSize | Size of the string to be taken into account |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_idrs_Create9 | ( | wchar_t const * | argBuffer, |
| idrs_exception * | pargException | ||
| ) |
Constructor from a null terminated wide char buffer.
| argBuffer | Buffer containing the string |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT idrs_string_rfind | ( | const idrs_string | argidrs_string, |
| const idrs_string | strValue, | ||
| IDRS_INT const | iOffset, | ||
| idrs_exception * | pargException | ||
| ) |
Finds the position of the last occurrence of the given substring.
| argidrs_string | idrs_string handle |
| strValue | The value to search for |
| iOffset | The index from the start of the string where to start searching |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_INT idrs_string_rfind2 | ( | const idrs_string | argidrs_string, |
| const idrs_string | strValue, | ||
| idrs_exception * | pargException | ||
| ) |
Finds the position of the last occurrence of the given substring.
| argidrs_string | idrs_string handle |
| strValue | The value to search for |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT idrs_string_size | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the string length in its utf-8 representation.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL idrs_string_starts_with | ( | const idrs_string | argidrs_string, |
| const idrs_string | strPrefix, | ||
| idrs_exception * | pargException | ||
| ) |
Checks if this string starts with the given prefix.
| argidrs_string | idrs_string handle |
| strPrefix | Prefix to check for |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_substr | ( | const idrs_string | argidrs_string, |
| IDRS_INT const | iPosition, | ||
| IDRS_INT const | iCount, | ||
| idrs_exception * | pargException | ||
| ) |
Returns the specified substring.
| argidrs_string | idrs_string handle |
| iPosition | Position of the first character to be taken |
| iCount | Length of the substring, or idrs_string::npos to get all remaining chars |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| idrs_string idrs_string_substr2 | ( | const idrs_string | argidrs_string, |
| IDRS_INT const | iPosition, | ||
| idrs_exception * | pargException | ||
| ) |
Returns the specified substring.
| argidrs_string | idrs_string handle |
| iPosition | Position of the first character to be taken |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| utf16_type const * idrs_string_utf16_c_str | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the non-modifiable array of wide characters.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT idrs_string_utf16_length | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the string length in its utf-16 representation.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT idrs_string_utf16_size | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the string length in its utf-16 representation.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| utf32_type const * idrs_string_utf32_c_str | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the non-modifiable array of wide characters.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT idrs_string_utf32_length | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the string length in its utf-32 representation.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT idrs_string_utf32_size | ( | const idrs_string | argidrs_string, |
| idrs_exception * | pargException | ||
| ) |
Returns the string length in its utf-32 representation.
| argidrs_string | idrs_string handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |