Lines Matching refs:s
74 static inline int utf8clen(const char *s) in utf8clen() argument
76 unsigned char c = *s; in utf8clen()
303 enum utf8_normalization n, unsigned char *hangul, const char *s, in utf8nlookup() argument
321 s++; in utf8nlookup()
324 if (*s & mask) { in utf8nlookup()
366 trie = utf8hangul(s - 2, hangul); in utf8nlookup()
377 enum utf8_normalization n, unsigned char *hangul, const char *s) in utf8lookup() argument
379 return utf8nlookup(um, n, hangul, s, (size_t)-1); in utf8lookup()
387 const char *s, size_t len) in utf8nlen() argument
393 while (len && *s) { in utf8nlen()
394 leaf = utf8nlookup(um, n, hangul, s, len); in utf8nlen()
399 ret += utf8clen(s); in utf8nlen()
403 ret += utf8clen(s); in utf8nlen()
404 len -= utf8clen(s); in utf8nlen()
405 s += utf8clen(s); in utf8nlen()
421 enum utf8_normalization n, const char *s, size_t len) in utf8ncursor() argument
423 if (!s) in utf8ncursor()
427 u8c->s = s; in utf8ncursor()
439 if (len > 0 && (*s & 0xC0) == 0x80) in utf8ncursor()
478 if (u8c->p && *u8c->s == '\0') { in utf8byte()
479 u8c->s = u8c->p; in utf8byte()
484 if (!u8c->p && (u8c->len == 0 || *u8c->s == '\0')) { in utf8byte()
491 } else if ((*u8c->s & 0xC0) == 0x80) { in utf8byte()
495 return (unsigned char)*u8c->s++; in utf8byte()
500 leaf = utf8lookup(u8c->um, u8c->n, u8c->hangul, u8c->s); in utf8byte()
503 u8c->s, u8c->len); in utf8byte()
516 u8c->len -= utf8clen(u8c->s); in utf8byte()
517 u8c->p = u8c->s + utf8clen(u8c->s); in utf8byte()
518 u8c->s = LEAF_STR(leaf); in utf8byte()
520 if (*u8c->s == '\0') { in utf8byte()
527 leaf = utf8lookup(u8c->um, u8c->n, u8c->hangul, u8c->s); in utf8byte()
547 return (unsigned char)*u8c->s++; in utf8byte()
561 u8c->ss = u8c->s; in utf8byte()
564 u8c->len -= utf8clen(u8c->s); in utf8byte()
565 u8c->s += utf8clen(u8c->s); in utf8byte()
569 u8c->len -= utf8clen(u8c->s); in utf8byte()
570 u8c->s += utf8clen(u8c->s); in utf8byte()
575 u8c->s = u8c->ss; in utf8byte()