LayOut C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends 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
91 SU_RESULT SUStringRelease(SUStringRef* string_ref);
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
172 SU_RESULT SUStringGetUTF8(
173 SUStringRef string_ref, size_t char_array_length, char* out_char_array,
174 size_t* out_number_of_chars_copied);
175
193 SU_RESULT SUStringGetUTF16(
194 SUStringRef string_ref, size_t char_array_length, unichar* out_char_array,
195 size_t* out_number_of_chars_copied);
196
206 SU_RESULT SUStringTrimLeft(SUStringRef string_ref);
207
217 SU_RESULT SUStringTrimRight(SUStringRef string_ref);
218
232 SU_RESULT SUStringCompare(SUStringRef a, SUStringRef b, int* result);
233
234 #ifdef __cplusplus
235 } // extern "C" {
236 #endif
237 #pragma pack(pop)
238
239 #endif // SKETCHUP_UNICODESTRING_H_