Lines Matching refs:ret
45 char16_t *ret; in strdup8to16() local
57 ret = (char16_t *) malloc (sizeof(char16_t) * len); in strdup8to16()
59 return strcpy8to16 (ret, s, out_len); in strdup8to16()
114 uint32_t ret; in getUtf32FromUtf8() local
130 ret = (**pUtf8Ptr) & leaderMask [seq_len - 1]; in getUtf32FromUtf8()
132 if (**pUtf8Ptr == '\0') return ret; in getUtf32FromUtf8()
139 UTF8_SHIFT_AND_MASK(ret, **pUtf8Ptr); in getUtf32FromUtf8()
142 return ret; in getUtf32FromUtf8()
157 uint32_t ret; in strcpy8to16() local
159 ret = getUtf32FromUtf8(&utf8Str); in strcpy8to16()
161 if (ret <= 0xffff) { in strcpy8to16()
162 *dest++ = (char16_t) ret; in strcpy8to16()
163 } else if (ret <= UNICODE_UPPER_LIMIT) { in strcpy8to16()
167 *dest++ = 0xd800 | ((ret - 0x10000) >> 10); in strcpy8to16()
168 *dest++ = 0xdc00 | ((ret - 0x10000) & 0x3ff); in strcpy8to16()
194 uint32_t ret; in strcpylen8to16() local
196 ret = getUtf32FromUtf8(&utf8Str); in strcpylen8to16()
198 if (ret <= 0xffff) { in strcpylen8to16()
199 *dest++ = (char16_t) ret; in strcpylen8to16()
200 } else if (ret <= UNICODE_UPPER_LIMIT) { in strcpylen8to16()
204 *dest++ = 0xd800 | ((ret - 0x10000) >> 10); in strcpylen8to16()
205 *dest++ = 0xdc00 | ((ret - 0x10000) & 0x3ff); in strcpylen8to16()