LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
unicodestring.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Inc., All rights reserved.
2 
7 #ifndef SKETCHUP_UNICODESTRING_H_
8 #define SKETCHUP_UNICODESTRING_H_
9 
10 #include <SketchUpAPI/defs.h>
11 #include <stddef.h>
12 
13 #pragma pack(push, 8)
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
36 SU_RESULT SUStringCreate(SUStringRef* out_string_ref);
37 
56 SU_RESULT SUStringCreateFromUTF8(SUStringRef* out_string_ref, const char* char_array);
57 
76 SU_RESULT SUStringCreateFromUTF16(SUStringRef* out_string_ref, const unichar* char_array);
77 
92 
109 SU_RESULT SUStringGetUTF8Length(SUStringRef string_ref, size_t* out_length);
110 
128 SU_RESULT SUStringGetUTF16Length(SUStringRef string_ref, size_t* out_length);
129 
141 SU_RESULT SUStringSetUTF8(SUStringRef string_ref, const char* char_array);
142 
154 SU_RESULT SUStringSetUTF16(SUStringRef string_ref, const unichar* char_array);
155 
173  SUStringRef string_ref, size_t char_array_length, char* out_char_array,
174  size_t* out_number_of_chars_copied);
175 
194  SUStringRef string_ref, size_t char_array_length, unichar* out_char_array,
195  size_t* out_number_of_chars_copied);
196 
207 
218 
233 
234 #ifdef __cplusplus
235 } // extern "C" {
236 #endif
237 #pragma pack(pop)
238 
239 #endif // SKETCHUP_UNICODESTRING_H_