Lines Matching refs:utf8
32 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) {
33 SkASSERT(utf8);
34 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
37 int SkUTF8_CountUnichars(const char utf8[]);
39 /** This function is safe: invalid UTF8 sequences will return -1; */
40 int SkUTF8_CountUnicharsWithError(const char utf8[], size_t byteLength);
42 /** This function is safe: invalid UTF8 sequences will return 0; */
43 inline int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) {
44 return SkClampPos(SkUTF8_CountUnicharsWithError(utf8, byteLength));
47 /** This function is safe: invalid UTF8 sequences will return -1
63 SkUnichar SkUTF8_ToUnichar(const char utf8[]);
68 into a utf8 sequence. Will be 1..kMaxBytesInUTF8Sequence,
71 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
87 char utf8[] = NULL);