/wcsmbs/ |
A D | tst-wcstof.c | 12 char buf[100]; in do_test() local 24 snprintf (buf, 100, "%S = %f", tmp, wcstof (tmp, NULL)); in do_test() 26 printf ("\"%s\" -> %s\n", buf, in do_test() 27 strcmp (buf, "81 = 81.000000") == 0 ? "okay" : "buggy"); in do_test() 28 result |= strcmp (buf, "81 = 81.000000") != 0; in do_test()
|
A D | tst-c32-state.c | 28 const char buf[] = "\u00ff"; in do_test() local 31 size_t ret = mbrtowc (&wc, buf, 1, NULL); in do_test() 33 ret = mbrtoc32 (&c32, buf, 1, NULL); in do_test() 35 ret = mbrtowc (&wc, buf + 1, 1, NULL); in do_test() 38 ret = mbrtoc32 (&c32, buf + 1, 1, NULL); in do_test()
|
A D | wcsmbs-tst1.c | 15 char buf[100], *pchar; in main() local 30 idx += wctomb (&buf[0], tmp[0]); in main() 31 idx += wctomb (&buf[idx], tmp[1]); in main() 32 buf[idx] = 0; in main() 34 printf ("string by wctomb %s\n", buf); in main() 47 test = wcstombs (buf, tmp1, (wcslen (tmp1) + 1) * sizeof (wchar_t)); in main() 53 printf ("char %s\n", buf); in main() 54 if (strcmp (buf, "World") != 0) in main()
|
A D | tst-c16-surrogate.c | 40 char buf[16] = { 0 }; in do_test() local 41 size_t ret_hi = c16rtomb (buf, c_hi, NULL); in do_test() 43 size_t ret_lo = c16rtomb (buf, c_lo, NULL); in do_test() 46 size_t ret_wc = mbrtowc (&wc, buf, 4, NULL); in do_test() 67 char buf[16] = { 0 }; in do_test() local 69 size_t ret_hi = c16rtomb (buf, c_hi, NULL); in do_test() 81 size_t ret_lo = c16rtomb (buf, c_lo, NULL); in do_test()
|
A D | tst-c16c32-1.c | 24 char buf[20]; in do_test() local 25 size_t n1 = c32rtomb (buf, c32, NULL); in do_test() 34 size_t n2 = mbrtoc32 (&c32out, buf, n1, NULL); in do_test() 55 size_t n3 = mbrtoc16 (&c16, buf, n1, NULL); in do_test() 75 buf[0] = '1'; in do_test() 77 size_t n4 = mbrtoc16 (&c16_2, buf, 1, NULL); in do_test() 96 buf[0] = '\0'; in do_test() 98 n3 = mbrtoc16 (&c16_nul, buf, n1, NULL); in do_test() 108 size_t n5 = c16rtomb (buf, c16, NULL); in do_test()
|
A D | tst-wcrtomb.c | 59 char buf[2 * MB_CUR_MAX]; in check_ascii() local 63 memset (buf, '\xff', sizeof (buf)); in check_ascii() 66 n = wcrtomb (buf, wc, &s); in check_ascii() 82 else if (wc != (wchar_t) buf[0]) in check_ascii()
|
A D | wctob.c | 31 unsigned char buf[MB_LEN_MAX]; in wctob() local 48 data.__outbuf = buf; in wctob() 49 data.__outbufend = buf + MB_LEN_MAX; in wctob() 77 || data.__outbuf != (unsigned char *) (buf + 1)) in wctob() 80 return buf[0]; in wctob()
|
A D | tst-mbsrtowcs.c | 26 const unsigned char buf[] = { 'a', 'b', '\0', 'c', 'd', '\0', 'e' }; in do_test() local 27 wchar_t out[sizeof (buf)]; in do_test() 33 const char *in = (const char *) buf; in do_test()
|
A D | wcsnrtombs.c | 74 unsigned char buf[256]; /* Just an arbitrary value. */ in __wcsnrtombs() local 82 data.__outbufend = buf + sizeof (buf); in __wcsnrtombs() 86 data.__outbuf = buf; in __wcsnrtombs() 93 result += data.__outbuf - buf; in __wcsnrtombs()
|
A D | wcsrtombs.c | 66 unsigned char buf[256]; /* Just an arbitrary value. */ in __wcsrtombs() local 75 data.__outbufend = buf + sizeof (buf); in __wcsrtombs() 79 data.__outbuf = buf; in __wcsrtombs() 86 result += data.__outbuf - buf; in __wcsrtombs()
|
A D | mbsnrtowcs.c | 76 wchar_t buf[64]; /* Just an arbitrary size. */ in __mbsnrtowcs() local 83 data.__outbufend = (unsigned char *) buf + sizeof (buf); in __mbsnrtowcs() 86 data.__outbuf = (unsigned char *) buf; in __mbsnrtowcs() 91 result += (wchar_t *) data.__outbuf - buf; in __mbsnrtowcs()
|
A D | mbsrtowcs_l.c | 70 wchar_t buf[64]; /* Just an arbitrary size. */ in __mbsrtowcs_l() local 78 data.__outbufend = (unsigned char *) buf + sizeof (buf); in __mbsrtowcs_l() 81 data.__outbuf = (unsigned char *) buf; in __mbsrtowcs_l() 86 result += (wchar_t *) data.__outbuf - buf; in __mbsrtowcs_l()
|
A D | mbrtowc.c | 37 wchar_t buf[1]; in __mbrtowc() local 43 unsigned char *outbuf = (unsigned char *) (pwc ?: buf); in __mbrtowc() 56 outbuf = (unsigned char *) buf; in __mbrtowc()
|
A D | wcrtomb.c | 39 char buf[MB_LEN_MAX]; in __wcrtomb() local 56 s = buf; in __wcrtomb()
|
A D | tst-mbrtowc.c | 184 char buf[MB_CUR_MAX]; in check_ascii() local 190 buf[i] = c + i; in check_ascii() 194 n = mbrtowc (&wc, buf, MB_CUR_MAX, &s); in check_ascii()
|