121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
}
@implementation OFMutableString
- setToCString: (const char*)str
{
size_t len;
if (string != NULL)
[self freeMemory: string];
len = strlen(str);
switch (of_string_check_utf8(str, len)) {
case 0:
is_utf8 = NO;
break;
|
<
|
|
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
}
@implementation OFMutableString
- setToCString: (const char*)str
{
size_t len;
[self freeMemory: string];
len = strlen(str);
switch (of_string_check_utf8(str, len)) {
case 0:
is_utf8 = NO;
break;
|