SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
unicodestring.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Navigation Ltd., All rights reserved.
2 
3 #ifndef SLAPI_UNICODESTRING_H_
4 #define SLAPI_UNICODESTRING_H_
5 
6 #include <slapi/slapi.h>
7 #include <stddef.h>
8 
9 #pragma pack(push, 8)
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
19 
20 
32 SU_RESULT SUStringCreate(SUStringRef* out_string_ref);
33 
51 SU_RESULT SUStringCreateFromUTF8(SUStringRef* out_string_ref,
52  const char* char_array);
53 
71 SU_RESULT SUStringCreateFromUTF16(SUStringRef* out_string_ref,
72  const unichar* char_array);
73 
86 SU_RESULT SUStringRelease(SUStringRef* string_ref);
87 
103 SU_RESULT SUStringGetUTF8Length(SUStringRef string_ref, size_t* out_length);
104 
121 SU_RESULT SUStringGetUTF16Length(SUStringRef string_ref, size_t* out_length);
122 
133 SU_RESULT SUStringSetUTF8(SUStringRef string_ref, const char* char_array);
134 
145 SU_RESULT SUStringSetUTF16(SUStringRef string_ref, const unichar* char_array);
146 
162 SU_RESULT SUStringGetUTF8(SUStringRef string_ref,
163  size_t char_array_length,
164  char* out_char_array,
165  size_t* out_number_of_chars_copied);
166 
183 SU_RESULT SUStringGetUTF16(SUStringRef string_ref,
184  size_t char_array_length,
185  unichar* out_char_array,
186  size_t* out_number_of_chars_copied);
187 
188 #ifdef __cplusplus
189 } // extern "C" {
190 #endif
191 #pragma pack(pop)
192 
193 #endif // SLAPI_UNICODESTRING_H_