/haiku/src/libs/iconv/ |
H A D | hkscs2001.h | 68 ucs4_t wc = 0xfffd; local 73 wc = hkscs2001_2uni_upages[swc>>8] | (swc & 0xff); 75 if (wc != 0xfffd) { 76 *pwc = wc; 554 hkscs2001_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 558 if (wc < 0x9f00) { 559 if (wc < 0x6900) { 560 if (wc >= 0x3500 && wc < 0x3560) 561 summary = &hkscs2001_uni2indx_page35[(wc>> [all...] |
H A D | georgian_academy.h | 80 georgian_academy_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 83 if (wc < 0x0080) { 84 *r = wc; 87 else if (wc >= 0x0080 && wc < 0x00a0) 88 c = georgian_academy_page00[wc-0x0080]; 89 else if ((wc >= 0x00a0 && wc < 0x00c0) || (wc >= 0x00e7 && wc < [all...] |
H A D | riscos1.h | 70 riscos1_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 73 if (wc < 0x0080 || wc == 0x0083 || wc == 0x0087 || (wc >= 0x00a0 && wc < 0x0100)) { 74 *r = wc; 77 else if (wc >= 0x0150 && wc < 0x0178) 78 c = riscos1_page01[wc [all...] |
H A D | gb12345.h | 51 gb12345_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 57 ret = gb12345ext_wctomb(conv,r,wc,n); 62 ret = gb2312_wctomb(conv,r,wc,n); 63 if (ret == 2 && gb12345ext_mbtowc(conv,&wc,r,2) == 2)
|
H A D | cp936ext.h | 46 unsigned short wc = 0xfffd; local 49 wc = cp936ext_2uni_pagea6[i-7189]; 52 wc = cp936ext_2uni_pagea8[i-7532]; 54 if (wc != 0xfffd) { 55 *pwc = (ucs4_t) wc; 82 cp936ext_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 86 if (wc >= 0x0140 && wc < 0x0150) 87 c = cp936ext_page01[wc-0x0140]; 88 else if (wc > [all...] |
H A D | gb18030ext.h | 55 unsigned short wc = 0xfffd; local 59 wc = 0xe766 + (i - 6376); 61 wc = 0x20ac; 63 wc = 0xe76d; 65 wc = 0xe76e + (i - 6444); 67 wc = 0xe770 + (i - 6458); 71 wc = 0xe772 + (i - 6829); 75 wc = 0xe77d + (i - 7022); 79 wc = 0xe785 + (i - 7150); 81 wc 235 gb18030ext_wctomb(conv_t conv, unsigned char *r, ucs4_t wc, int n) argument [all...] |
H A D | ucs4internal.h | 36 ucs4internal_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 39 *(unsigned int *)r = wc;
|
H A D | cp1252.h | 43 unsigned short wc = cp1252_2uni[c-0x80]; local 44 if (wc != 0xfffd) { 45 *pwc = (ucs4_t) wc; 79 cp1252_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 82 if (wc < 0x0080) { 83 *r = wc; 86 else if (wc >= 0x00a0 && wc < 0x0100) 87 c = wc; 88 else if (wc > [all...] |
H A D | euc_jisx0213.h | 70 ucs4_t wc; local 75 wc = jisx0213_to_ucs4(0x200-0x80+c2,c3^0x80); 80 wc = jisx0213_to_ucs4(0x100-0x80+c,c2^0x80); 82 if (wc) { 83 if (wc < 0x80) { 85 ucs4_t wc1 = jisx0213_to_ucs_combining[wc - 1][0]; 86 ucs4_t wc2 = jisx0213_to_ucs_combining[wc - 1][1]; 92 *pwc = wc; 147 euc_jisx0213_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 157 if (wc [all...] |
H A D | cp950ext.h | 44 unsigned short wc = 0xfffd; local 47 wc = cp950ext_2uni_pagef9[i-13932]; 49 if (wc != 0xfffd) { 50 *pwc = (ucs4_t) wc; 121 cp950ext_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 125 if (wc >= 0x2500 && wc < 0x25a0) 126 summary = &cp950ext_uni2indx_page25[(wc>>4)-0x250]; 127 else if (wc >= 0x5800 && wc < [all...] |
H A D | utf7.h | 109 unsigned int wc = 0; local 145 wc = (wc << 8) | (base64state & -4) | (i >> 4); k++; 148 wc = (wc << 8) | (base64state & -4) | (i >> 2); k++; 151 wc = (wc << 8) | (base64state & -4) | i; k++; 157 if (kmax == 2 && (wc >= 0xd800 && wc < 0xdc00)) 168 ucs4_t wc1 = wc >> 1 209 unsigned int wc = iwc; local [all...] |
H A D | cp1161.h | 69 cp1161_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 72 if (wc < 0x0080) { 73 *r = wc; 76 else if (wc >= 0x00a0 && wc < 0x00b0) 77 c = cp1161_page00[wc-0x00a0]; 78 else if (wc >= 0x0e48 && wc < 0x0e4c) 79 c = wc-0x0d60; 80 else if (wc > [all...] |
H A D | iso8859_15.h | 61 iso8859_15_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 64 if (wc < 0x00a0) { 65 *r = wc; 68 else if (wc >= 0x00a0 && wc < 0x00c0) 69 c = iso8859_15_page00[wc-0x00a0]; 70 else if (wc >= 0x00c0 && wc < 0x0100) 71 c = wc; 72 else if (wc > [all...] |
H A D | cp1258.h | 78 unsigned short wc; local 81 wc = c; 83 wc = cp1258_2uni[c-0x80]; 84 if (wc == 0xfffd) 89 if (wc >= 0x0300 && wc < 0x0340) { 90 /* See whether last_wc and wc can be combined. */ 93 switch (wc) { 138 if (wc >= 0x0041 && wc < 204 cp1258_wctomb(conv_t conv, unsigned char *r, ucs4_t wc, int n) argument [all...] |
H A D | iso8859_7.h | 55 unsigned short wc = iso8859_7_2uni[c-0xa0]; local 56 if (wc != 0xfffd) { 57 *pwc = (ucs4_t) wc; 89 iso8859_7_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 92 if (wc < 0x00a0) { 93 *r = wc; 96 else if (wc >= 0x00a0 && wc < 0x00c0) 97 c = iso8859_7_page00[wc-0x00a0]; 98 else if (wc > [all...] |
H A D | cp1133.h | 54 unsigned short wc = cp1133_2uni_1[c-0xa0]; local 55 if (wc != 0xfffd) { 56 *pwc = (ucs4_t) wc; 63 unsigned short wc = cp1133_2uni_2[c-0xf0]; local 64 if (wc != 0xfffd) { 65 *pwc = (ucs4_t) wc; 92 cp1133_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 95 if (wc < 0x00a0) { 96 *r = wc; 99 else if (wc > [all...] |
H A D | gbk.h | 112 gbk_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) argument 117 if (wc != 0x30fb && wc != 0x2015) { 118 ret = gb2312_wctomb(conv,buf,wc,2); 128 ret = gbkext_inv_wctomb(conv,buf,wc,2); 137 if (wc >= 0x2170 && wc <= 0x2179) { 139 r[1] = 0xa1 + (wc-0x2170); 142 ret = cp936ext_wctomb(conv,buf,wc,2); 151 if (wc [all...] |
/haiku/src/system/libroot/posix/wchar/ |
H A D | wcsspn.c | 13 wchar_t wc; local 14 for (; (wc = *wcPointer) != L'\0'; ++wcPointer) { 17 if (*accept == wc)
|
H A D | wcscspn.c | 13 wchar_t wc; local 14 for (; (wc = *wcPointer) != L'\0'; ++wcPointer) { 17 if (*reject == wc)
|
H A D | wcsrchr.c | 10 __wcsrchr(const wchar_t* wcsIn, wchar_t wc) argument 14 if (*wcs == wc)
|
/haiku/src/system/libroot/posix/glibc/wctype/ |
H A D | wchar-lookup.h | 27 /* Bit tables are accessed by cutting wc in four blocks of bits: 34 wc = + 32-q-p-5 | q | p | 5 | 42 - s = upper exclusive bound for wc >> (q+p+5), 52 wctype_table_lookup (const char *table, uint32_t wc) argument 55 uint32_t index1 = wc >> shift1; 64 uint32_t index2 = (wc >> shift2) & mask2; 69 uint32_t index3 = (wc >> 5) & mask3; 72 return (lookup3 >> (wc & 0x1f)) & 1; 83 wcwidth_table_lookup (const char *table, uint32_t wc) argument 86 uint32_t index1 = wc >> shift 116 wctrans_table_lookup(const char *table, uint32_t wc) argument [all...] |
/haiku/src/system/libroot/posix/glibc/locale/ |
H A D | coll-lookup.c | 29 __collidx_table_lookup (const char *table, uint32_t wc) argument 32 uint32_t index1 = wc >> shift1; 41 uint32_t index2 = (wc >> shift2) & mask2; 46 uint32_t index3 = wc & mask3; 60 __collseq_table_lookup (const char *table, uint32_t wc) argument 63 uint32_t index1 = wc >> shift1; 72 uint32_t index2 = (wc >> shift2) & mask2; 77 uint32_t index3 = wc & mask3;
|
/haiku/src/tests/system/libroot/posix/ |
H A D | gnulib-test-mbsnrtowcs.c | 34 wchar_t wc; local 60 wc = (wchar_t) 0xBADFACE; 62 ret = mbsnrtowcs(&wc, &src, 1, 0, &state); 64 assert(wc == (wchar_t) 0xBADFACE); 67 wc = (wchar_t) 0xBADFACE; 69 ret = mbsnrtowcs(&wc, &src, 1, 1, &state); 71 assert(wc == 0); 102 wc = (wchar_t) 0xBADFACE; 103 ret = mbrtowc(&wc, input, 1, &state); 105 assert(wc [all...] |
H A D | testmb.c | 39 wchar_t wc; local 42 if ((r = mbtowc(&wc, &c, MB_CUR_MAX)) <= 0) { 46 printf("wide value: 0x%04lx\n", (unsigned long) wc); 48 if ((r = wctomb(mbc, wc)) <= 0) {
|
/haiku/headers/posix/ |
H A D | uchar.h | 30 c16rtomb(char *dest, char32_t wc, mbstate_t *mbState) argument 32 wchar_t tmp = (wchar_t)wc; 45 c32rtomb(char *dest, char32_t wc, mbstate_t *mbState) argument 47 return wcrtomb(dest, (wchar_t)wc, mbState);
|