205
206
207
208
209
210
211
212
213
214
215
216
217
218
|
of_unichar_t c;
size_t length, oldLength;
if (s->UTF8)
index = of_string_index_to_position(s->cString, index,
s->cStringLength);
if (!(character & 0x80) && !(s->cString[index] & 0x80)) {
s->hashed = NO;
s->cString[index] = character;
return;
}
if ((length = of_string_unicode_to_utf8(character, buffer)) == 0)
|
>
>
>
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
of_unichar_t c;
size_t length, oldLength;
if (s->UTF8)
index = of_string_index_to_position(s->cString, index,
s->cStringLength);
if (index > s->cStringLength)
@throw [OFOutOfRangeException exceptionWithClass: [self class]];
if (!(character & 0x80) && !(s->cString[index] & 0x80)) {
s->hashed = NO;
s->cString[index] = character;
return;
}
if ((length = of_string_unicode_to_utf8(character, buffer)) == 0)
|