25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
* Since constant strings don't have s_store, they have to malloc it on
* the first access. Strings created at runtime just set the pointer to
* &s_store.
*/
struct of_string_utf8_ivars {
char *cString;
size_t cStringLength;
BOOL UTF8;
size_t length;
BOOL hashed;
uint32_t hash;
char *freeWhenDone;
} *restrict s;
struct of_string_utf8_ivars s_store;
}
- OF_initWithUTF8String: (const char*)UTF8String
length: (size_t)UTF8StringLength
storage: (char*)storage;
@end
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
* Since constant strings don't have s_store, they have to malloc it on
* the first access. Strings created at runtime just set the pointer to
* &s_store.
*/
struct of_string_utf8_ivars {
char *cString;
size_t cStringLength;
BOOL isUTF8;
size_t length;
BOOL hashed;
uint32_t hash;
char *freeWhenDone;
} *restrict s;
struct of_string_utf8_ivars s_store;
}
- OF_initWithUTF8String: (const char*)UTF8String
length: (size_t)UTF8StringLength
storage: (char*)storage;
@end
|