63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
*p = t;
return;
}
unicodeLen = [self length];
unicodeString = [self allocMemoryForNItems: unicodeLen
withSize: sizeof(of_unichar_t)];
i = j = 0;
newCStringLength = 0;
while (i < s->cStringLength) {
cLen = of_string_utf8_to_unicode(s->cString + i,
s->cStringLength - i, &c);
|
|
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
*p = t;
return;
}
unicodeLen = [self length];
unicodeString = [self allocMemoryForNItems: unicodeLen
ofSize: sizeof(of_unichar_t)];
i = j = 0;
newCStringLength = 0;
while (i < s->cStringLength) {
cLen = of_string_utf8_to_unicode(s->cString + i,
s->cStringLength - i, &c);
|