ArcGIS Procedural Runtime  3.2.10650
StringUtils.h
1 /*
2  COPYRIGHT (c) 2012-2024 Esri R&D Center Zurich
3  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
4  Unpublished material - all rights reserved under the
5  Copyright Laws of the United States and applicable international
6  laws, treaties, and conventions.
7 
8  For additional information, contact:
9  Environmental Systems Research Institute, Inc.
10  Attn: Contracts and Legal Services Department
11  380 New York Street
12  Redlands, California, 92373
13  USA
14 
15  email: contracts@esri.com
16 */
17 
18 #ifndef STRINGUTILS_H_
19 #define STRINGUTILS_H_
20 
21 #include "prt/Status.h"
22 
23 #include <cstddef>
24 #include <cstdint>
25 
26 
27 namespace prt {
28 
33 namespace StringUtils {
34 
35 
45 PRT_EXPORTS_API char* toOSNarrowFromUTF16(const wchar_t* utf16String, char* result, size_t* resultSize, Status* stat = 0);
46 
56 PRT_EXPORTS_API wchar_t* toUTF16FromOSNarrow(const char* osString, wchar_t* result, size_t* resultSize, Status* stat = 0);
57 
67 PRT_EXPORTS_API wchar_t* toUTF16FromUTF8(const char* utf8String, wchar_t* result, size_t* resultSize, Status* stat = 0);
68 
79 PRT_EXPORTS_API char* toUTF8FromUTF16(const wchar_t* utf16String, char* result, size_t* resultSize, Status* stat = 0);
80 
90 PRT_EXPORTS_API char* percentEncode(const char* utf8String, char* result, size_t* resultSize, Status* stat = 0);
91 
92 }
93 
94 
95 }
96 
97 #endif /* STRINGUTILS_H_ */
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