Home
last modified time | relevance | path

Searched refs:ucs (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/libxo/libxo/
H A Dxo_wcwidth.h71 xo_bisearch (wchar_t ucs, const struct interval *table, int max) in xo_bisearch() argument
76 if (ucs < table[0].first || ucs > table[max].last) in xo_bisearch()
80 if (ucs > table[mid].last) in xo_bisearch()
82 else if (ucs < table[mid].first) in xo_bisearch()
125 xo_wcwidth (wchar_t ucs) in xo_wcwidth() argument
181 if (ucs == 0) in xo_wcwidth()
183 if (ucs < 32 || (ucs >= 0x7f && ucs < 0xa0)) in xo_wcwidth()
187 if (xo_bisearch(ucs, combining, in xo_wcwidth()
194 (ucs >= 0x1100 && in xo_wcwidth()
195 (ucs <= 0x115f || /* Hangul Jamo init. consonants */ in xo_wcwidth()
[all …]
/freebsd/sys/teken/
H A Dteken_wcwidth.h20 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()
[all …]
/freebsd/tools/tools/locale/tools/
H A Dconvert_map.pl24 my $ucs = shift;
27 if ($ucs <= 0x7f) {
28 $utf8 = sprintf("\\x%02X", $ucs).$utf8;
29 } elsif ($ucs <= 0x7ff) {
30 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8;
31 $ucs >>= 6;
32 $utf8 = sprintf("\\x%02X", $ucs | 0xc0).$utf8;
34 } elsif ($ucs <= 0xffff) {
35 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8;
36 $ucs >>= 6;
[all …]
/freebsd/share/i18n/esdb/UTF/
H A DUTF.alias12 16-INTERNAL ucs-2-internal
14 16-SWAPPED ucs-2-swapped
18 16BE iso-10646-ucs-2
19 16BE ucs-2
20 16BE ucs-2be
25 16LE ucs-2le
29 32-INTERNAL ucs-4-internal
31 32-SWAPPED ucs-4-swapped
34 32BE iso-10646-ucs-4
35 32BE ucs-4
[all …]
/freebsd/crypto/krb5/src/lib/krb5/unicode/
H A Ducstr.c101 krb5_ucs4 *ucs, *ucsout1, *ucsout2; in krb5int_utf8_normcmp() local
170 ucs = malloc(((norm1 || l1 > l2) ? l1 : l2) * sizeof(*ucs)); in krb5int_utf8_normcmp()
171 if (ucs == NULL) { in krb5int_utf8_normcmp()
181 if (krb5int_utf8_to_ucs4(s1 + i, &ucs[ulen]) == -1) { in krb5int_utf8_normcmp()
182 free(ucs); in krb5int_utf8_normcmp()
189 ucsout1 = ucs; in krb5int_utf8_normcmp()
191 ucs = malloc(l2 * sizeof(*ucs)); in krb5int_utf8_normcmp()
192 if (ucs == NULL) { in krb5int_utf8_normcmp()
197 uccompatdecomp(ucs, ulen, &ucsout1, &l1); in krb5int_utf8_normcmp()
203 if (krb5int_utf8_to_ucs4(s2 + i, &ucs[ulen]) == -1) { in krb5int_utf8_normcmp()
[all …]
/freebsd/contrib/ncurses/ncurses/
H A Dwcwidth.h143 bisearch(unsigned long ucs, const struct interval *table, int max) in bisearch() argument
146 if (ucs >= table[0].first && ucs <= table[max].last) { in bisearch()
153 if (ucs > table[mid].last) in bisearch()
155 else if (ucs < table[mid].first) in bisearch()
219 mk_wcwidth(uint32_t ucs) in mk_wcwidth() argument
221 unsigned long cmp = (unsigned long) ucs; in mk_wcwidth()
739 result = (wcwidth) (ucs); in mk_wcwidth()
779 mk_wcwidth_cjk(uint32_t ucs) in mk_wcwidth_cjk() argument
861 if (Lookup((unsigned long) ucs, ambiguous)) in mk_wcwidth_cjk()
864 return mk_wcwidth(ucs); in mk_wcwidth_cjk()
/freebsd/crypto/krb5/src/util/support/
H A Dt_utf8.c68 krb5_ucs4 ucs; member
123 printf("0x%08lx, %d\n", (unsigned long)t->ucs, t->len); in printtest()
141 if (krb5int_utf8_to_ucs4(t->p, &u) != 0 && t->ucs != 0 && !high4) { in test_decode()
145 if (t->ucs != u && !high4) { in test_decode()
146 printf("expected 0x%08lx, got 0x%08lx\n", (unsigned long)t->ucs, in test_decode()
160 size = krb5int_ucs4_to_utf8(t->ucs, buf); in test_encode()
197 high4 = t->ucs > 0x10ffff; in main()
203 if (t->ucs == 0) in main()
/freebsd/sys/libkern/
H A Diconv_ucs.c68 static uint32_t decode_surrogate(const u_char *ucs);
175 u_char ucs[4], *q; in iconv_ucs_conv() local
228 for (q = ucs, i = ucslen - 1 ; i >= 0 ; i--) in iconv_ucs_conv()
235 q = ucs; in iconv_ucs_conv()
245 q = ucs; in iconv_ucs_conv()
291 p = ucs; in iconv_ucs_conv()
298 code = (ucs[0] << 8) | ucs[1]; in iconv_ucs_conv()
407 KICONV_CONVERTER(ucs, sizeof(struct iconv_ucs));
531 decode_surrogate(const u_char *ucs) in decode_surrogate() argument
533 return ((((ucs[0] & 0x3) << 18) | (ucs[1] << 10) | in decode_surrogate()
[all …]
/freebsd/contrib/ncurses/ncurses/win32con/
H A Dwcwidth.c34 #define mk_wcwidth(ucs) _nc_wcwidth(ucs) argument
36 #define mk_wcwidth_cjk(ucs) _nc_wcwidth_cjk(ucs) argument
/freebsd/contrib/ncurses/include/
H A Dnc_win32.h.in150 #define wcwidth(ucs) _nc_wcwidth((wchar_t)(ucs)) argument
/freebsd/contrib/ntp/sntp/
H A DCOPYRIGHT119 34. [37]George Lindholm <lindholm@ucs.ubc.ca> SunOS 5.1 port
198 37. mailto:%20lindholm@ucs.ubc.ca
/freebsd/contrib/ntp/
H A DCOPYRIGHT119 34. [37]George Lindholm <lindholm@ucs.ubc.ca> SunOS 5.1 port
198 37. mailto:%20lindholm@ucs.ubc.ca
/freebsd/contrib/ncurses/
H A Daclocal.m41591 dnl http://www.cl.cam.ac.uk/~mgk25/ucs/scw-proposal.html