Home
last modified time | relevance | path

Searched refs:pUtf8Ptr (Results 1 – 1 of 1) sorted by relevance

/system/core/libcutils/
Dstrdup8to16.c112 static inline uint32_t getUtf32FromUtf8(const char** pUtf8Ptr) in getUtf32FromUtf8() argument
122 if (((**pUtf8Ptr) & 0xc0) == 0x80) { in getUtf32FromUtf8()
123 (*pUtf8Ptr)++; in getUtf32FromUtf8()
128 seq_len = UTF8_SEQ_LENGTH(**pUtf8Ptr); in getUtf32FromUtf8()
130 ret = (**pUtf8Ptr) & leaderMask [seq_len - 1]; in getUtf32FromUtf8()
132 if (**pUtf8Ptr == '\0') return ret; in getUtf32FromUtf8()
134 (*pUtf8Ptr)++; in getUtf32FromUtf8()
135 for (i = 1; i < seq_len ; i++, (*pUtf8Ptr)++) { in getUtf32FromUtf8()
136 if ((**pUtf8Ptr) == '\0') return UTF16_REPLACEMENT_CHAR; in getUtf32FromUtf8()
137 if (((**pUtf8Ptr) & 0xc0) != 0x80) return UTF16_REPLACEMENT_CHAR; in getUtf32FromUtf8()
[all …]