Lines Matching refs:ucs
20 bisearch(teken_char_t ucs, const struct interval *table, int max) in bisearch() argument
25 if (ucs < table[0].first || ucs > table[max].last) in bisearch()
29 if (ucs > table[mid].last) in bisearch()
31 else if (ucs < table[mid].first) in bisearch()
41 teken_wcwidth(teken_char_t ucs) in teken_wcwidth() argument
99 if (ucs == 0) in teken_wcwidth()
101 if (ucs < 32 || (ucs >= 0x7f && ucs < 0xa0)) in teken_wcwidth()
105 if (bisearch(ucs, combining, sizeof(combining) / in teken_wcwidth()
113 (ucs >= 0x1100 && in teken_wcwidth()
114 (ucs <= 0x115f || /* Hangul Jamo init. consonants */ in teken_wcwidth()
115 ucs == 0x2329 || ucs == 0x232a || in teken_wcwidth()
116 (ucs >= 0x2e80 && ucs <= 0xa4cf && in teken_wcwidth()
117 ucs != 0x303f) || /* CJK ... Yi */ in teken_wcwidth()
118 (ucs >= 0xac00 && ucs <= 0xd7a3) || /* Hangul Syllables */ in teken_wcwidth()
119 (ucs >= 0xf900 && ucs <= 0xfaff) || /* CJK Compatibility Ideographs */ in teken_wcwidth()
120 (ucs >= 0xfe10 && ucs <= 0xfe19) || /* Vertical forms */ in teken_wcwidth()
121 (ucs >= 0xfe30 && ucs <= 0xfe6f) || /* CJK Compatibility Forms */ in teken_wcwidth()
122 (ucs >= 0xff00 && ucs <= 0xff60) || /* Fullwidth Forms */ in teken_wcwidth()
123 (ucs >= 0xffe0 && ucs <= 0xffe6) || in teken_wcwidth()
124 (ucs >= 0x20000 && ucs <= 0x2fffd) || in teken_wcwidth()
125 (ucs >= 0x30000 && ucs <= 0x3fffd)))); in teken_wcwidth()