61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
if ((t = table[0][*p]) != 0)
*p = t;
return;
}
ulen = [self length];
ustr = [self allocMemoryForNItems: [self length]
withSize: ulen];
i = 0;
j = 0;
nlen = 0;
while (i < length) {
clen = of_string_utf8_to_unicode(string + i, length - i, &c);
if (clen == 0 || c > 0x10FFFF) {
[self freeMemory: ustr];
|
|
|
<
|
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
if ((t = table[0][*p]) != 0)
*p = t;
return;
}
ulen = [self length];
ustr = [self allocMemoryForNItems: ulen
withSize: sizeof(of_unichar_t)];
i = j = 0;
nlen = 0;
while (i < length) {
clen = of_string_utf8_to_unicode(string + i, length - i, &c);
if (clen == 0 || c > 0x10FFFF) {
[self freeMemory: ustr];
|