/picolibc-3.7.0-3.6.0/newlib/libc/stdio/ |
D | fputwc.c | 132 wchar_t wc, in __fputwc() argument 138 if (MB_CUR_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) in __fputwc() 145 *buf = (unsigned char)wc; in __fputwc() 150 if ((len = wcrtomb (buf, wc, &fp->_mbstate)) == (size_t) -1) in __fputwc() 161 return (wint_t) wc; in __fputwc() 166 wchar_t wc, in fputwc() argument 172 r = __fputwc(wc, fp); in fputwc()
|
D | ungetwc.c | 78 wint_t wc, in ungetwc() argument 86 if (wc == WEOF) in ungetwc() 87 wc = WEOF; in ungetwc() 88 else if ((len = wcrtomb(buf, wc, &fp->_mbstate)) == (size_t)-1) in ungetwc() 91 wc = WEOF; in ungetwc() 97 wc = WEOF; in ungetwc() 101 return wc; in ungetwc()
|
D | fgetwc.c | 131 wchar_t wc; in __fgetwc() local 139 wc = *fp->_p++; in __fgetwc() 141 return (wc); in __fgetwc() 145 nconv = mbrtowc (&wc, (char *) fp->_p, fp->_r, &fp->_mbstate); in __fgetwc() 164 return (wc); in __fgetwc()
|
D | fputwc_u.c | 35 wchar_t wc, in fputwc_unlocked() argument 38 return __fputwc(wc, fp); in fputwc_unlocked()
|
D | putwc.c | 40 putwc (wchar_t wc, in putwc() argument 43 return fputwc (wc, fp); in putwc()
|
D | putwchar.c | 93 putwchar (wchar_t wc) in putwchar() argument 96 return fputwc (wc, stdout); in putwchar()
|
D | putwc_u.c | 41 putwc_unlocked (wchar_t wc, in putwc_unlocked() argument 44 return fputwc_unlocked (wc, fp); in putwc_unlocked()
|
D | putwchar_u.c | 40 putwchar_unlocked (wchar_t wc) in putwchar_unlocked() argument 43 return fputwc_unlocked (wc, stdout); in putwchar_unlocked()
|
D | vfscanf.c | 365 __wctob (wint_t wc) in __wctob() argument 370 if (wc == WEOF) in __wctob() 373 return __WCTOMB ((char *) pmb, wc, &mbs) == 1 ? (int) pmb[0] : 0; in __wctob() 402 wchar_t wc; /* wchar to use to read format string */ in _SVFSCANF() local 586 wc = *fmt; in _SVFSCANF() 588 nbytes = __MBTOWC (&wc, (char *) fmt, MB_CUR_MAX, &state); in _SVFSCANF() 590 wc = 0xFFFD; /* Unicode replacement character */ in _SVFSCANF() 597 if (wc == 0) in _SVFSCANF() 599 if (nbytes == 1 && isspace (wc)) in _SVFSCANF() 609 if (wc != '%') in _SVFSCANF() [all …]
|
D | vfwscanf.c | 242 wint_t wc, in sungetwc() argument 245 if (wc == WEOF) in sungetwc() 260 return wc; in sungetwc() 269 wchar_t wc; in sfgetwc() local 273 wc = *(wchar_t *) fp->_p; in sfgetwc() 276 return (wc); in sfgetwc()
|
D | vfprintf.c | 453 wchar_t wc; in VFPRINTF() local 658 while ((n = __MBTOWC (&wc, fmt, MB_CUR_MAX, in VFPRINTF() 665 else if (wc == '%') in VFPRINTF() 1815 wchar_t wc; in get_arg() local 1833 while ((nbytes = __MBTOWC (data, &wc, fmt, MB_CUR_MAX, &wc_state)) > 0) in get_arg() 1836 if (wc == '%') in get_arg()
|
D | vfwprintf.c | 885 wint_t wc = btowc ((int) GET_ARG (N, ap, int)); in VFWPRINTF() local 886 if (wc == WEOF) { in VFWPRINTF() 890 cp[0] = (wchar_t) wc; in VFWPRINTF()
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | wctob.c | 11 wctob (wint_t wc) in wctob() argument 16 if (wc == WEOF) in wctob() 22 return __WCTOMB ((char *) pmb, wc, &mbs) == 1 ? (int) pmb[0] : EOF; in wctob()
|
D | wcrtomb.c | 14 wchar_t wc, in wcrtomb() argument 31 retval = __WCTOMB (s, wc, ps); in wcrtomb()
|
D | mprec.c | 361 int k, wa, wb, wc; in mult() local 380 wc = wa + wb; in mult() 381 if (wc > a->_maxwds) in mult() 386 for (x = c->_x, xa = x + wc; x < xa; x++) in mult() 449 for (xc0 = c->_x, xc = xc0 + wc; wc > 0 && !*--xc; --wc); in mult() 450 c->_wds = wc; in mult()
|
/picolibc-3.7.0-3.6.0/newlib/libc/ctype/ |
D | tolower.c | 100 wchar_t wc; in tolower() local 101 if (mbtowc (&wc, s, 1) >= 0 in tolower() 102 && wctomb (s, (wchar_t) towlower ((wint_t) wc)) == 1) in tolower()
|
D | toupper.c | 100 wchar_t wc; in toupper() local 101 if (mbtowc (&wc, s, 1) >= 0 in toupper() 102 && wctomb (s, (wchar_t) towupper ((wint_t) wc)) == 1) in toupper()
|
D | tolower_l.c | 26 wchar_t wc; in tolower_l() local 30 if (locale->mbtowc (_REENT, &wc, s, 1, &state) >= 0 in tolower_l() 32 (wchar_t) towlower_l ((wint_t) wc, locale), in tolower_l()
|
D | toupper_l.c | 28 wchar_t wc; in toupper_l() local 32 if (locale->mbtowc (_REENT, &wc, s, 1, &state) >= 0 in toupper_l() 34 (wchar_t) towupper_l ((wint_t) wc, locale), in toupper_l()
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/ |
D | wchar.h | 232 wint_t ungetwc (wint_t wc, __FILE *); 274 #define putwc(wc,fp) fputwc((wc), (fp)) argument 276 #define putwchar(wc) fputwc((wc), stdout) argument 280 #define putwc_unlocked(wc,fp) fputwc_unlocked((wc), (fp)) argument 282 #define putwchar_unlocked(wc) fputwc_unlocked((wc), stdout) argument
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | fgetwc.c | 36 wchar_t wc; in fgetwc() member 56 return (wint_t) u.wc; in fgetwc()
|
D | fputwc.c | 36 wchar_t wc; in fputwc() member 45 u.wc = c; in fputwc()
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | wcwidth.c | 236 wcwidth (const wchar_t wc) in wcwidth() argument 238 wint_t wi = wc; in wcwidth()
|
/picolibc-3.7.0-3.6.0/test/ |
D | testcases.c | 720 wchar_t wc = 0x1234; variable 724 result |= testw(__LINE__, wb, L"%lc", wc); 728 result |= testw(__LINE__, wb, L"%c", wc);
|
/picolibc-3.7.0-3.6.0/newlib/ |
D | ChangeLog-2015 | 4846 wc. Check wc for WEOF instead of for EOF. Return first byte of pmb if
|