Searched refs:wc (Results 26 - 50 of 225) sorted by relevance

123456789

/haiku/src/libs/iconv/
H A Ducs2internal.h41 ucs2internal_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
43 if (wc < 0x10000 && !(wc >= 0xd800 && wc < 0xe000)) {
45 *(unsigned short *)r = wc;
H A Dutf32.h40 ucs4_t wc = (state local
44 if (wc == 0x0000feff) {
45 } else if (wc == 0xfffe0000u) {
48 if (wc < 0x110000 && !(wc >= 0xd800 && wc < 0xe000)) {
49 *pwc = wc;
64 utf32_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
66 if (wc < 0x110000 && !(wc >
[all...]
H A Dutf16.h40 ucs4_t wc = (state ? s[0] + (s[1] << 8) : (s[0] << 8) + s[1]); local
41 if (wc == 0xfeff) {
42 } else if (wc == 0xfffe) {
44 } else if (wc >= 0xd800 && wc < 0xdc00) {
49 *pwc = 0x10000 + ((wc - 0xd800) << 10) + (wc2 - 0xdc00);
54 } else if (wc >= 0xdc00 && wc < 0xe000) {
57 *pwc = wc;
73 utf16_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, in argument
[all...]
H A Dascii.h37 ascii_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
39 if (wc < 0x0080) {
40 *r = wc;
H A Diso8859_1.h34 iso8859_1_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
36 if (wc < 0x0100) {
37 *r = wc;
H A Dbig5_2003.h200 unsigned short wc = big5_2003_2uni_pagea1[i]; local
201 if (wc != 0xfffd) {
202 *pwc = (ucs4_t) wc;
235 unsigned short wc = big5_2003_2uni_pagec6[i-63]; local
236 if (wc != 0xfffd) {
237 *pwc = (ucs4_t) wc;
271 big5_2003_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
277 ret = ascii_wctomb(conv,r,wc,n);
282 switch (wc >> 8) {
284 if (wc
[all...]
H A Dcns11643_4.h41 ucs4_t wc = 0xfffd; local
46 wc = cns11643_4a_2uni_upages[swc>>8] | (swc & 0xff);
49 wc = cns11643_4b_2uni_upages[swc>>8] | (swc & 0xff);
51 if (wc != 0xfffd) {
52 *pwc = wc;
H A Ducs2swapped.h45 ucs2swapped_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
50 if (wc < 0x10000 && !(wc >= 0xd800 && wc < 0xe000)) {
52 unsigned short x = wc;
H A Dutf8.h100 utf8_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) /* n == 0 is acceptable */ argument
103 if (wc < 0x80)
105 else if (wc < 0x800)
107 else if (wc < 0x10000)
109 else if (wc < 0x200000)
111 else if (wc < 0x4000000)
113 else if (wc <= 0x7fffffff)
120 case 6: r[5] = 0x80 | (wc & 0x3f); wc = wc >>
[all...]
H A Dcp949.h82 cp949_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
88 ret = ascii_wctomb(conv,r,wc,n);
93 if (wc != 0x327e) {
94 ret = ksc5601_wctomb(conv,buf,wc,2);
106 if (wc >= 0xac00 && wc < 0xd7a4) {
107 if (wc < 0xc8a5)
108 return uhc_1_wctomb(conv,r,wc,n);
110 return uhc_2_wctomb(conv,r,wc,n);
114 if (wc >
[all...]
H A Djava.h32 ucs4_t wc, wc2; local
44 wc = 0;
57 wc |= (ucs4_t) c << (4 * (5-i));
59 if (!(wc >= 0xd800 && wc < 0xe000)) {
60 *pwc = wc;
63 if (wc >= 0xdc00)
90 *pwc = 0x10000 + ((wc - 0xd800) << 10) + (wc2 - 0xdc00);
98 java_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
100 if (wc <
[all...]
H A Dhkscs2004.h87 ucs4_t wc = 0xfffd; local
92 wc = hkscs2004_2uni_upages[swc>>8] | (swc & 0xff);
96 wc = hkscs2004_2uni_upages[swc>>8] | (swc & 0xff);
98 if (wc != 0xfffd) {
99 *pwc = wc;
546 hkscs2004_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument
550 if (wc < 0x21a00) {
551 if (wc < 0x6e00) {
552 if (wc >= 0x3400 && wc <
[all...]
/haiku/src/system/libroot/posix/wchar/
H A Dwmemset.c10 __wmemset(wchar_t* destIn, const wchar_t wc, size_t count) argument
14 *dest++ = wc;
H A Dwmemchr.c10 __wmemchr(const wchar_t* dest, const wchar_t wc, size_t count) argument
13 if (*dest == wc)
H A Dwctomb.c10 __wctomb(char* s, wchar_t wc) argument
14 return __wcrtomb(s, wc, &internalMbState);
H A Dwcschr.c10 __wcschr(const wchar_t* wcs, wchar_t wc) argument
13 if (*wcs == wc)
H A Dwcschrnul.c10 __wcschrnul(const wchar_t* wcs, wchar_t wc) argument
12 while (*wcs != L'\0' && *wcs != wc)
H A Dbtowc.c14 wchar_t wc; local
23 int byteCount = __mbrtowc(&wc, &character, 1, &internalMbState);
29 return wc;
/haiku/src/system/libroot/posix/glibc/libio/
H A Dfputwc.c32 fputwc (wc, fp)
33 wchar_t wc;
43 result = _IO_putwc_unlocked (wc, fp);
H A Dfputwc_u.c34 fputwc_unlocked (wc, fp)
35 wchar_t wc;
41 return _IO_putwc_unlocked (wc, fp);
H A Dputwc.c23 putwc (wc, fp)
24 wchar_t wc;
31 result = _IO_putwc_unlocked (wc, fp);
H A Dputwchar.c23 putwchar (wc)
24 wchar_t wc;
30 result = _IO_putwc_unlocked (wc, _IO_stdout);
/haiku/src/tests/system/libroot/posix/
H A Dgnulib-test-mbrtowc.c32 wchar_t wc; local
46 wc = (wchar_t) 0xBADFACE;
47 ret = mbrtowc (&wc, "x", 0, &state);
59 wc = (wchar_t) 0xBADFACE;
60 ret = mbrtowc (&wc, "", 1, &state);
62 assert (wc == 0);
102 wc = (wchar_t) 0xBADFACE;
103 ret = mbrtowc (&wc, buf, 1, &state);
105 assert (wc == c);
118 wc
[all...]
H A Dtst-wcrtomb.c53 wchar_t wc; local
58 for (wc = 0; wc <= 127; ++wc) {
66 n = wcrtomb(buf, wc, &s);
68 printf("%s: '\\x%x': encoding error\n", locname, (int) wc);
71 printf("%s: '\\x%x': 0 returned\n", locname, (int) wc);
74 printf("%s: '\\x%x': not 1 returned\n", locname, (int) wc);
76 } else if (wc != (wchar_t) buf[0]) {
77 printf("%s: L'\\x%x': buf[0] != '\\x%x'\n", locname, (int) wc,
[all...]
H A Dtst-mbrtowc.c37 wchar_t wc; local
42 wc = 42; /* arbitrary number */
44 assert (mbrtowc (&wc, "\xE2", 1, &s) == (size_t) -2); /* 1st byte processed */
45 assert (mbrtowc (&wc, "\x89", 1, &s) == (size_t) -2); /* 2nd byte processed */
46 assert (wc == 42); /* no value has not been stored into &wc yet */
47 assert (mbrtowc (&wc, "\xA0", 1, &s) == 1); /* 3nd byte processed */
48 assert (wc == 0x2260); /* E2 89 A0 = U+2260 (not equal) decoded correctly */
49 assert (mbrtowc (&wc, "", 1, &s) == 0); /* test final byte processing */
50 assert (wc
72 wchar_t wc; local
107 wchar_t wc; local
189 wchar_t wc = (wchar_t) 0xffffffff; local
[all...]

Completed in 221 milliseconds

123456789