Lines Matching refs:wch
45 static bool utf8_decode (struct linereader *lr, uint8_t ch1, uint32_t *wch);
334 uint32_t wch; in lr_token() local
335 if (!utf8_decode (lr, ch, &wch)) in lr_token()
341 lr->token.val.ucs4 = wch; in lr_token()
620 uint32_t wch, struct lr_buffer *lrb) in translate_unicode_codepoint() argument
624 snprintf (utmp, sizeof (utmp), "U%08X", wch); in translate_unicode_codepoint()
634 const char *symbol = repertoire_find_symbol (repertoire, wch); in translate_unicode_codepoint()
659 && ((translit = find_translit (locale, charmap, wch)) in translate_unicode_codepoint()
724 utf8_decode (struct linereader *lr, uint8_t ch1, uint32_t *wch) in utf8_decode() argument
739 *wch = result; in utf8_decode()
754 *wch = result; in utf8_decode()
768 *wch = result; in utf8_decode()
827 uint32_t wch; in get_string() local
848 wch = ch; in get_string()
852 wch = ch; in get_string()
857 if (!utf8_decode (lr, ch, &wch)) in get_string()
863 repertoire, wch, &lrb)) in get_string()
874 ADDWC (wch); in get_string()
915 wch = strtoul (lrb.buf + startidx + 1, NULL, 16); in get_string()
921 ADDWC (wch); in get_string()
924 repertoire, wch, &lrb)) in get_string()
949 wch = seq->ucs4; in get_string()
952 wch = repertoire_find_value (repertoire, &lrb.buf[startidx], in get_string()
955 seq->ucs4 = wch; in get_string()
958 if (wch == ILLEGAL_CHAR_VALUE) in get_string()
966 ADDWC (wch); in get_string()