![]() |
ArcGIS Procedural Runtime
3.3.11173
|
Utilities for string encoding.
Functions | |
| char * | percentEncode (const char *utf8String, char *result, size_t *resultSize, Status *stat=0) |
| char * | toOSNarrowFromUTF16 (const wchar_t *utf16String, char *result, size_t *resultSize, Status *stat=0) |
| wchar_t * | toUTF16FromOSNarrow (const char *osString, wchar_t *result, size_t *resultSize, Status *stat=0) |
| wchar_t * | toUTF16FromUTF8 (const char *utf8String, wchar_t *result, size_t *resultSize, Status *stat=0) |
| char * | toUTF8FromUTF16 (const wchar_t *utf16String, char *result, size_t *resultSize, Status *stat=0) |
| char* prt::StringUtils::percentEncode | ( | const char * | utf8String, |
| char * | result, | ||
| size_t * | resultSize, | ||
| Status * | stat = 0 |
||
| ) |
Percent-encodes a UTF8 string.
| utf8String | The string to encode. | |
| [in,out] | result | Pointer to buffer to receive the null-terminated encoded representation. |
| [in,out] | resultSize | Pointer to size of reserved buffer; returns the size of the actual result (incl. terminating 0). Is always greater than 0. |
| [out] | stat | Optional pointer to return the status. |
| char* prt::StringUtils::toOSNarrowFromUTF16 | ( | const wchar_t * | utf16String, |
| char * | result, | ||
| size_t * | resultSize, | ||
| Status * | stat = 0 |
||
| ) |
Converts a UTF16 wide string to a narrow string with default platform encoding.
| utf16String | The string to convert. | |
| [in,out] | result | Pointer to buffer to receive the null-terminated encoded representation. |
| [in,out] | resultSize | Pointer to size of reserved buffer; returns the size of the actual result (incl. terminating 0). Is always greater than 0. |
| [out] | stat | Optional pointer to return the status. |
| wchar_t* prt::StringUtils::toUTF16FromOSNarrow | ( | const char * | osString, |
| wchar_t * | result, | ||
| size_t * | resultSize, | ||
| Status * | stat = 0 |
||
| ) |
Converts a narrow string with default platform encoding to a UTF16 wide string.
| osString | The string to convert. | |
| [in,out] | result | Pointer to buffer to receive the null-terminated encoded representation. |
| [in,out] | resultSize | Pointer to size of reserved buffer; returns the size of the actual result (incl. terminating 0). Is always greater than 0. |
| [out] | stat | Optional pointer to return the status. |
| wchar_t* prt::StringUtils::toUTF16FromUTF8 | ( | const char * | utf8String, |
| wchar_t * | result, | ||
| size_t * | resultSize, | ||
| Status * | stat = 0 |
||
| ) |
Converts a UTF8 narrow string to a UTF16 wide string.
| utf8String | The string to convert. | |
| [in,out] | result | Pointer to buffer to receive the null-terminated encoded representation. |
| [in,out] | resultSize | Pointer to size of reserved buffer; returns the size of the actual result (incl. terminating 0). Is always greater than 0. |
| [out] | stat | Optional pointer to return the status. |
| char* prt::StringUtils::toUTF8FromUTF16 | ( | const wchar_t * | utf16String, |
| char * | result, | ||
| size_t * | resultSize, | ||
| Status * | stat = 0 |
||
| ) |
Converts a UTF16 wide string to a UTF8 narrow string.
| utf16String | The string to convert. | |
| [in,out] | result | Pointer to buffer to receive the null-terminated encoded representation. |
| [in,out] | resultSize | Pointer to size of reserved buffer; returns the size of the actual result (incl. terminating 0). Is always greater than 0. |
| [out] | stat | Optional pointer to return the status. |
1.8.14