18 #ifndef STRINGUTILS_H_ 19 #define STRINGUTILS_H_ 21 #include "prt/Status.h" 33 namespace StringUtils {
45 PRT_EXPORTS_API
char*
toOSNarrowFromUTF16(
const wchar_t* utf16String,
char* result,
size_t* resultSize,
Status* stat = 0);
56 PRT_EXPORTS_API
wchar_t*
toUTF16FromOSNarrow(
const char* osString,
wchar_t* result,
size_t* resultSize,
Status* stat = 0);
67 PRT_EXPORTS_API
wchar_t*
toUTF16FromUTF8(
const char* utf8String,
wchar_t* result,
size_t* resultSize,
Status* stat = 0);
79 PRT_EXPORTS_API
char*
toUTF8FromUTF16(
const wchar_t* utf16String,
char* result,
size_t* resultSize,
Status* stat = 0);
90 PRT_EXPORTS_API
char*
percentEncode(
const char* utf8String,
char* result,
size_t* resultSize,
Status* stat = 0);
char * toUTF8FromUTF16(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)
Status
Definition: Status.h:31
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)
The Procedural Runtime API namespace. The prt namespace contains the top level entry points into the ...
Definition: Annotation.h:24