Lines Matching refs:stra
247 static INTN utf8_to_16(const CHAR8 *stra, CHAR16 *c) { in utf8_to_16() argument
251 assert(stra); in utf8_to_16()
254 if (!(stra[0] & 0x80)) in utf8_to_16()
256 else if ((stra[0] & 0xe0) == 0xc0) in utf8_to_16()
258 else if ((stra[0] & 0xf0) == 0xe0) in utf8_to_16()
260 else if ((stra[0] & 0xf8) == 0xf0) in utf8_to_16()
262 else if ((stra[0] & 0xfc) == 0xf8) in utf8_to_16()
264 else if ((stra[0] & 0xfe) == 0xfc) in utf8_to_16()
271 unichar = stra[0]; in utf8_to_16()
274 unichar = stra[0] & 0x1f; in utf8_to_16()
277 unichar = stra[0] & 0x0f; in utf8_to_16()
280 unichar = stra[0] & 0x07; in utf8_to_16()
283 unichar = stra[0] & 0x03; in utf8_to_16()
286 unichar = stra[0] & 0x01; in utf8_to_16()
291 if ((stra[i] & 0xc0) != 0x80) in utf8_to_16()
294 unichar |= stra[i] & 0x3f; in utf8_to_16()
301 CHAR16 *xstra_to_str(const CHAR8 *stra) { in xstra_to_str() argument
307 assert(stra); in xstra_to_str()
309 len = strlena(stra); in xstra_to_str()
317 utf8len = utf8_to_16(stra + i, str + strlen); in xstra_to_str()
331 CHAR16 *xstra_to_path(const CHAR8 *stra) { in xstra_to_path() argument
337 assert(stra); in xstra_to_path()
339 len = strlena(stra); in xstra_to_path()
348 utf8len = utf8_to_16(stra + i, str + strlen); in xstra_to_path()