/glibc-2.36/wcsmbs/ |
D | test-mbrtoc8.c | 35 const char *mbs = ""; in test_utf8() local 39 TEST_COMPARE (mbrtoc8 (buf, mbs, 0, &s), (size_t) -2); /* no input */ in test_utf8() 45 const char *mbs = "\x00"; /* 0x00 => U+0000 */ in test_utf8() local 49 TEST_COMPARE (mbrtoc8 (buf, mbs, strlen (mbs) + 1, &s), (size_t) 0); in test_utf8() 50 mbs += 1; in test_utf8() 58 const char *mbs = "\x01"; /* 0x01 => U+0001 */ in test_utf8() local 62 TEST_COMPARE (mbrtoc8 (buf, mbs, strlen (mbs) + 1, &s), (size_t) 1); in test_utf8() 63 mbs += 1; in test_utf8() 70 const char *mbs = "\x7F"; /* 0x7F => U+007F */ in test_utf8() local 74 TEST_COMPARE (mbrtoc8 (buf, mbs, strlen (mbs) + 1, &s), (size_t) 1); in test_utf8() [all …]
|
D | tst-mbrtowc2.c | 44 mbstate_t mbs; in t() local 49 memset (&mbs, '\0', sizeof (mbstate_t)); in t() 52 n = mbrtowc (&wch, ch + i, 1, &mbs); in t() 58 memset (&mbs, '\0', sizeof (mbstate_t)); in t() 59 n = mbrtowc (&wch2, ch, nch, &mbs); in t()
|
/glibc-2.36/iconvdata/ |
D | tst-iconv-big5-hkscs-to-2ucs4.c | 71 const char *mbs = test.input; in check_conversion() local 78 ret = mbrtowc (&wc, mbs, inlen - consumed, &st); in check_conversion() 85 mbs += ret; in check_conversion() 93 ret = mbrtowc (&wc, mbs, inlen - consumed, &st); in check_conversion() 100 mbs += ret; in check_conversion() 117 ret = mbrtowc (&wc, mbs, inlen - consumed, &st); in check_conversion() 124 mbs += ret; in check_conversion() 133 mbs = test.input; in check_conversion() 137 ret = mbrtowc (&wc, mbs, 1, &st); in check_conversion() 144 mbs += 1; in check_conversion() [all …]
|
/glibc-2.36/stdio-common/ |
D | tst-printf-bz25691.c | 68 char *mbs = xmalloc (mbssize); in do_test() local 69 memset (mbs, 'a', mbssize - 1); in do_test() 70 mbs[mbssize - 1] = '\0'; in do_test() 81 ret = swprintf (result, resultsize, L"%.65537s", mbs); in do_test() 86 ret = swprintf (result, resultsize, L"%1$.65537s", mbs); in do_test() 92 mbs[mbssize - 2] = 0xff; in do_test() 94 ret = swprintf (result, resultsize, L"%.65537s", mbs); in do_test() 97 ret = swprintf (result, resultsize, L"%1$.65537s", mbs); in do_test() 100 free (mbs); in do_test()
|
D | tst-vfprintf-mbs-prec.c | 57 make_random_string (char **mbs, wchar_t **wide, size_t **length) in make_random_string() argument 90 *mbs = str_finalize (&str, NULL); in make_random_string() 91 TEST_VERIFY_EXIT (*mbs != NULL); in make_random_string() 358 test_mbs_long (const char *mbs, const wchar_t *wide, const size_t *length) in test_mbs_long() argument 371 TEST_VERIFY (memcmp (buf, mbs, length[WIDE_STRING_LENGTH]) == 0); in test_mbs_long() 377 TEST_VERIFY (memcmp (buf, mbs, length[WIDE_STRING_LENGTH]) == 0); in test_mbs_long() 388 TEST_VERIFY (memcmp (buf + padding, mbs, length[WIDE_STRING_LENGTH]) == 0); in test_mbs_long() 411 TEST_VERIFY (memcmp (buf, mbs, length[wide_characters_converted]) == 0); in test_mbs_long() 421 TEST_VERIFY (memcmp (buf, mbs, length[wide_characters_converted]) == 0); in test_mbs_long() 434 TEST_VERIFY (memcmp (buf + padding, mbs, in test_mbs_long() [all …]
|
D | Makefile | 205 tst-vfprintf-mbs-prec \ 301 $(objpfx)tst-vfprintf-mbs-prec.out: $(gen-locales)
|
/glibc-2.36/inet/ |
D | idna_name_classify.c | 28 mbstate_t mbs; in __idna_name_classify() local 29 memset (&mbs, 0, sizeof (mbs)); in __idna_name_classify() 37 size_t result = mbrtowc (&wc, p, end - p, &mbs); in __idna_name_classify()
|
/glibc-2.36/posix/ |
D | regex_internal.c | 67 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_allocate() 90 pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; in re_string_construct() 168 unsigned char *new_mbs = re_realloc (pstr->mbs, unsigned char, in re_string_realloc_buffers() 172 pstr->mbs = new_mbs; in re_string_realloc_buffers() 241 buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch]; in build_wcs_buffer() 312 pstr->mbs[byte_idx] = wcu; in build_wcs_upper_buffer() 333 memcpy (pstr->mbs + byte_idx, buf, mbclen); in build_wcs_upper_buffer() 341 memcpy (pstr->mbs + byte_idx, in build_wcs_upper_buffer() 353 pstr->mbs[byte_idx] = ch; in build_wcs_upper_buffer() 401 memcpy (pstr->mbs + byte_idx, buf, mbclen); in build_wcs_upper_buffer() [all …]
|
D | regex_internal.h | 377 unsigned char *mbs; member 435 ((pstr)->mbs[(pstr)->cur_idx + offset]) 437 ((pstr)->mbs[(pstr)->cur_idx++]) 445 #define re_string_get_buffer(pstr) ((pstr)->mbs) 447 #define re_string_byte_at(pstr,idx) ((pstr)->mbs[idx]) 802 return (wint_t) pstr->mbs[idx]; in re_string_wchar_at() 826 p = pstr->mbs + idx; in re_string_elem_size_at() 828 return p - pstr->mbs - idx; in re_string_elem_size_at()
|
D | regcomp.c | 382 mbstate_t mbs; in re_compile_fastmap_iter() local 383 memset (&mbs, 0, sizeof (mbs)); in re_compile_fastmap_iter() 384 if (__mbrtowc (NULL, (char *) &c, 1, &mbs) == (size_t) -2) in re_compile_fastmap_iter()
|
D | regexec.c | 163 static unsigned int find_collation_sequence_value (const unsigned char *mbs, 3873 find_collation_sequence_value (const unsigned char *mbs, size_t mbs_len) in find_collation_sequence_value() argument 3883 return collseq[mbs[0]]; in find_collation_sequence_value() 3906 if (extra[idx + mbs_cnt] != mbs[mbs_cnt]) in find_collation_sequence_value()
|
/glibc-2.36/locale/programs/ |
D | ld-collate.c | 103 const char *mbs; member 333 new_element (struct locale_collate_t *collate, const char *mbs, size_t mbslen, in new_element() argument 343 if (mbs != NULL) in new_element() 345 newp->mbs = obstack_copy0 (&collate->mempool, mbs, mbslen); in new_element() 350 newp->mbs = NULL; in new_element() 1042 if (elem->mbs == NULL && seq != NULL) in insert_value() 1044 elem->mbs = obstack_copy0 (&collate->mempool, in insert_value() 1125 size_t len = (startp->mbs != NULL ? startp->nmbs in handle_ellipsis() 1126 : (endp->mbs != NULL ? endp->nmbs : 0)); in handle_ellipsis() 1136 && startp->mbs != NULL && endp->mbs != NULL in handle_ellipsis() [all …]
|
/glibc-2.36/ChangeLog.old/ |
D | ChangeLog.15 | 5088 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
|
D | ChangeLog.14 | 3787 (re_string_translate_buffer): Set mbs instead of mbs_case. Set 3796 character, initialize mbs array as well if mbs_allocated.
|
D | ChangeLog.18 | 1119 * stdio-common/Makefile (tst-vfprintf-mbs-prec.out): Add locale 1151 * stdio-common/tst-vfprintf-mbs-prec.c: New file. 1152 * stdio-common/Makefile (tests): Add tst-vfprintf-mbs-prec.
|