/wcsmbs/ |
A D | wmemchr.c | 30 if (s[0] == c) in __wmemchr() 31 return (wchar_t *) s; in __wmemchr() 32 if (s[1] == c) in __wmemchr() 34 if (s[2] == c) in __wmemchr() 36 if (s[3] == c) in __wmemchr() 38 s += 4; in __wmemchr() 44 if (*s == c) in __wmemchr() 46 ++s; in __wmemchr() 51 if (*s == c) in __wmemchr() 53 ++s; in __wmemchr() [all …]
|
A D | tst-mbrtowc.c | 35 mbstate_t s; in utf8_test_1() local 38 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_1() 51 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_1() 57 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_1() 69 mbstate_t s; in utf8_test_2() local 72 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_2() 77 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_2() 82 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_2() 88 memset (&s, 0, sizeof (s)); /* get s into initial state */ in utf8_test_2() 103 mbstate_t s; in utf8_test_3() local [all …]
|
A D | wcswidth.c | 23 wcswidth (const wchar_t *s, size_t n) in wcswidth() argument 27 while (n-- > 0 && *s != L'\0') in wcswidth() 29 int now = internal_wcwidth (*s); in wcswidth() 33 ++s; in wcswidth()
|
A D | wcslen.c | 26 __wcslen (const wchar_t *s) in __wcslen() argument 30 while (s[len] != L'\0') in __wcslen() 32 if (s[++len] == L'\0') in __wcslen() 34 if (s[++len] == L'\0') in __wcslen() 36 if (s[++len] == L'\0') in __wcslen()
|
A D | wcsdup.c | 25 wcsdup (const wchar_t *s) in wcsdup() argument 27 size_t len = (__wcslen (s) + 1) * sizeof (wchar_t); in wcsdup() 33 return (wchar_t *) memcpy (new, (void *) s, len); in wcsdup()
|
A D | wcsnlen.c | 26 __wcsnlen (const wchar_t *s, size_t maxlen) in __wcsnlen() argument 28 const wchar_t *ret = __wmemchr (s, L'\0', maxlen); in __wcsnlen() 30 maxlen = ret - s; in __wcsnlen()
|
A D | c32rtomb.c | 27 c32rtomb (char *s, char32_t c32, mbstate_t *ps) in c32rtomb() argument 31 return wcrtomb (s, c32, ps); in c32rtomb()
|
A D | mbrlen.c | 26 __mbrlen (const char *s, size_t n, mbstate_t *ps) in __mbrlen() argument 28 return __mbrtowc (NULL, s, n, ps ?: &internal); in __mbrlen()
|
A D | mbrtoc32.c | 27 mbrtoc32 (char32_t *pc32, const char *s, size_t n, mbstate_t *ps) in mbrtoc32() argument 31 return mbrtowc ((wchar_t *) pc32, s, n, ps); in mbrtoc32()
|
A D | wmemset.c | 25 __wmemset (wchar_t *s, wchar_t c, size_t n) in __wmemset() argument 27 wchar_t *wp = s; in __wmemset() 52 return s; in __wmemset()
|
A D | tst-fgetwc-after-eof.c | 59 #define XWRITE(fd, s, msg) do { \ argument 60 if (write (fd, s, sizeof s - 1) != sizeof s - 1) \
|
A D | wcrtomb.c | 37 __wcrtomb (char *s, wchar_t wc, mbstate_t *ps) in __wcrtomb() argument 54 if (s == NULL) in __wcrtomb() 56 s = buf; in __wcrtomb() 61 data.__outbuf = (unsigned char *) s; in __wcrtomb() 62 data.__outbufend = (unsigned char *) s + MB_CUR_MAX; in __wcrtomb() 104 result = data.__outbuf - (unsigned char *) s; in __wcrtomb()
|
A D | c16rtomb.c | 26 c16rtomb (char *s, char16_t c16, mbstate_t *ps) in c16rtomb() argument 33 if (s == NULL) in c16rtomb() 65 return wcrtomb (s, wc, ps); in c16rtomb()
|
A D | tst-wcrtomb.c | 60 mbstate_t s; in check_ascii() local 64 memset (&s, '\0', sizeof (s)); in check_ascii() 66 n = wcrtomb (buf, wc, &s); in check_ascii()
|
A D | isoc99_swscanf.c | 24 __isoc99_swscanf (const wchar_t *s, const wchar_t *format, ...) in __isoc99_swscanf() argument 30 FILE *f = _IO_strfile_readw (&sf, &wd, s); in __isoc99_swscanf()
|
A D | mbrtowc.c | 35 __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) in __mbrtowc() argument 54 if (s == NULL) in __mbrtowc() 57 s = ""; in __mbrtowc() 72 inbuf = (const unsigned char *) s; in __mbrtowc() 108 result = inbuf - (const unsigned char *) s; in __mbrtowc()
|
A D | mbrtoc16.c | 36 mbrtoc16 (char16_t *pc16, const char *s, size_t n, mbstate_t *ps) in mbrtoc16() argument 72 if (s == NULL) in mbrtoc16() 75 s = ""; in mbrtoc16() 90 inbuf = (const unsigned char *) s; in mbrtoc16() 119 result = inbuf - (const unsigned char *) s; in mbrtoc16()
|
/wcsmbs/bits/ |
A D | wchar2.h | 254 # define swprintf(s, n, ...) \ argument 255 (__glibc_objsize (s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1 \ 256 ? __swprintf_chk (s, n, __USE_FORTIFY_LEVEL - 1, \ 257 __glibc_objsize (s) / sizeof (wchar_t), __VA_ARGS__) \ 258 : swprintf (s, n, __VA_ARGS__))
|