Home | History | Annotate | Download | only in core

Lines Matching full:utf8

179 int SkUTF8_CountUnichars(const char utf8[]) {
180 SkASSERT(utf8);
185 int c = *(const uint8_t*)utf8;
189 utf8 += SkUTF8_LeadByteToCount(c);
195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) {
196 SkASSERT(NULL != utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
201 while (utf8 < stop) {
202 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
208 SkUnichar SkUTF8_ToUnichar(const char utf8[]) {
209 SkASSERT(NULL != utf8);
211 const uint8_t* p = (const uint8_t*)utf8;
266 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[]) {
273 if (utf8) {
274 *utf8 = (char)uni;
291 if (utf8) {
293 utf8 += count;
295 *--utf8 = *p++;
297 *--utf8 = (char)(~(0xFF >> count) | uni);
300 SkASSERT(utf8 == NULL || orig == SkUTF8_ToUnichar(utf8));
399 char utf8[]) {
410 if (utf8 == NULL) { // just count
415 char* start = utf8;
417 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8);
419 size = utf8 - start;