/dragonfly/lib/libc/string/ |
H A D | strxfrm.c | 52 wchar_t *wcs = NULL; in strxfrm_l() local 74 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL) in strxfrm_l() 77 if (mbstowcs_l(wcs, src, slen + 1, locale) == (size_t)-1) in strxfrm_l() 80 if ((xlen = _collate_sxfrm(table, wcs, dest, len)) == (size_t)-1) in strxfrm_l() 83 if (wcs) in strxfrm_l() 84 free(wcs); in strxfrm_l() 96 if (wcs) in strxfrm_l() 97 free(wcs); in strxfrm_l()
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_open_filename.c | 140 const wchar_t *wcs; in file_open() local 149 mbs = NULL; wcs = NULL; in file_open() 151 if (archive_mstring_get_wcs(a, &mine->filename, &wcs) != 0) { in file_open() 161 fullpath = __la_win_permissive_name_w(wcs); in file_open() 166 mine->fd = _wopen(wcs, flags, 0666); in file_open() 172 archive_mstring_get_wcs(a, &mine->filename, &wcs); in file_open() 174 "Can't convert '%S' to MBS", wcs); in file_open() 185 archive_set_error(a, errno, "Failed to open '%S'", wcs); in file_open() 193 archive_set_error(a, errno, "Couldn't stat '%S'", wcs); in file_open()
|
H A D | archive_string.h | 235 int archive_mstring_copy_wcs(struct archive_mstring *, const wchar_t *wcs); 237 const wchar_t *wcs, size_t);
|
H A D | archive_string.c | 600 wchar_t *wcs; in archive_wstring_append_from_mbs() local 612 wcs = dest->s + dest->length; in archive_wstring_append_from_mbs() 636 r = mbrtowc(wcs, mbs, mbs_length, &shift_state); in archive_wstring_append_from_mbs() 638 r = mbtowc(wcs, mbs, mbs_length); in archive_wstring_append_from_mbs() 646 wcs++; in archive_wstring_append_from_mbs() 651 dest->length = wcs - dest->s; in archive_wstring_append_from_mbs() 4072 archive_mstring_copy_wcs(struct archive_mstring *aes, const wchar_t *wcs) in archive_mstring_copy_wcs() argument 4074 return archive_mstring_copy_wcs_len(aes, wcs, in archive_mstring_copy_wcs() 4075 wcs == NULL ? 0 : wcslen(wcs)); in archive_mstring_copy_wcs() 4096 if (wcs == NULL) { in archive_mstring_copy_wcs_len() [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | fnmatch.c | 213 is_char_class (const wchar_t *wcs) in is_char_class() argument 222 if (*wcs < 0x20 || *wcs > 0x7e in is_char_class() 223 || *wcs == 0x24 || *wcs == 0x40 || *wcs == 0x60) in is_char_class() 226 switch (*wcs) in is_char_class() 258 *cp++ = (char) *wcs++; in is_char_class() 260 while (*wcs != L'\0'); in is_char_class()
|
H A D | regex_internal.c | 156 pstr->wcs = new_wcs; in re_string_realloc_buffers() 267 pstr->wcs[byte_idx++] = wc; in build_wcs_buffer() 270 pstr->wcs[byte_idx++] = WEOF; in build_wcs_buffer() 344 pstr->wcs[byte_idx++] = WEOF; in build_wcs_upper_buffer() 426 pstr->wcs[byte_idx] = wcu; in build_wcs_upper_buffer() 636 memmove (pstr->wcs, pstr->wcs + offset, in re_string_reconstruct() 666 pstr->wcs[low] = WEOF; in re_string_reconstruct() 680 memmove (pstr->wcs, pstr->wcs + offset, in re_string_reconstruct() 784 pstr->wcs[wcs_idx] = WEOF; in re_string_reconstruct() 917 re_free (pstr->wcs); in re_string_destruct() [all …]
|
H A D | regex_internal.h | 391 wint_t *wcs; member 450 ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF) 452 ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \ 453 || (pstr)->wcs[(idx) + 1] != WEOF)) 827 if (pstr->wcs[idx + byte_idx] != WEOF) in re_string_char_size_at() 838 return (wint_t) pstr->wcs[idx]; in re_string_wchar_at()
|
/dragonfly/contrib/gdb-7/gdb/gnulib/import/ |
H A D | fnmatch.c | 207 is_char_class (const wchar_t *wcs) in is_char_class() argument 216 if (*wcs < 0x20 || *wcs > 0x7e in is_char_class() 217 || *wcs == 0x24 || *wcs == 0x40 || *wcs == 0x60) in is_char_class() 220 switch (*wcs) in is_char_class() 252 *cp++ = (char) *wcs++; in is_char_class() 254 while (*wcs != L'\0'); in is_char_class()
|
/dragonfly/usr.bin/localedef/ |
H A D | time.c | 54 add_time_str(wchar_t *wcs) in add_time_str() argument 58 if ((str = to_mb_string(wcs)) == NULL) { in add_time_str() 62 free(wcs); in add_time_str() 110 add_time_list(wchar_t *wcs) in add_time_list() argument 114 if ((str = to_mb_string(wcs)) == NULL) { in add_time_list() 118 free(wcs); in add_time_list()
|
H A D | messages.c | 54 add_message(wchar_t *wcs) in add_message() argument 58 if ((str = to_mb_string(wcs)) == NULL) { in add_message() 62 free(wcs); in add_message()
|
H A D | numeric.c | 54 add_numeric_str(wchar_t *wcs) in add_numeric_str() argument 58 if ((str = to_mb_string(wcs)) == NULL) { in add_numeric_str() 62 free(wcs); in add_numeric_str()
|
H A D | wide.c | 608 to_mb_string(const wchar_t *wcs) in to_mb_string() argument 614 mbs = malloc((wcslen(wcs) * mb_cur_max) + 1); in to_mb_string() 620 while (*wcs) { in to_mb_string() 621 if ((len = to_mb(ptr, *wcs)) < 0) { in to_mb_string() 626 wcs++; in to_mb_string()
|
H A D | monetary.c | 54 add_monetary_str(wchar_t *wcs) in add_monetary_str() argument 58 if ((str = to_mb_string(wcs)) == NULL) { in add_monetary_str() 62 free(wcs); in add_monetary_str()
|
H A D | collate.c | 790 define_collelem(char *name, wchar_t *wcs) in define_collelem() argument 795 if (wcslen(wcs) >= COLLATE_STR_LEN) { in define_collelem() 804 e->expand = wcs; in define_collelem()
|
/dragonfly/lib/libc/locale/ |
H A D | wcsftime.c | 56 wcsftime_l(wchar_t * __restrict wcs, size_t maxsize, in wcsftime_l() argument 102 n = mbsrtowcs_l(wcs, &dstp, maxsize, &mbs, locale); in wcsftime_l() 118 wcsftime(wchar_t * __restrict wcs, size_t maxsize, in wcsftime() argument 121 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale()); in wcsftime()
|
/dragonfly/gnu/usr.bin/grep/libgreputils/ |
H A D | wchar.h | 1359 _GL_FUNCDECL_SYS (wcschr, wchar_t *, (const wchar_t *wcs, wchar_t wc) 1372 _GL_CXXALIASWARN1 (wcschr, wchar_t *, (wchar_t *wcs, wchar_t wc)); 1389 _GL_FUNCDECL_SYS (wcsrchr, wchar_t *, (const wchar_t *wcs, wchar_t wc) 1402 _GL_CXXALIASWARN1 (wcsrchr, wchar_t *, (wchar_t *wcs, wchar_t wc)); 1460 (const wchar_t *wcs, const wchar_t *accept) 1474 (wchar_t *wcs, const wchar_t *accept)); 1476 (const wchar_t *wcs, const wchar_t *accept)); 1530 (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr)); 1532 (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr)); 1536 (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr)); [all …]
|
/dragonfly/gnu/usr.bin/gdb/libgnu/ |
H A D | wchar.h | 1133 _GL_FUNCDECL_SYS (wcschr, wchar_t *, (const wchar_t *wcs, wchar_t wc) 1146 _GL_CXXALIASWARN1 (wcschr, wchar_t *, (wchar_t *wcs, wchar_t wc)); 1147 _GL_CXXALIASWARN1 (wcschr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); 1163 _GL_FUNCDECL_SYS (wcsrchr, wchar_t *, (const wchar_t *wcs, wchar_t wc) 1176 _GL_CXXALIASWARN1 (wcsrchr, wchar_t *, (wchar_t *wcs, wchar_t wc)); 1212 _GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept) 1230 (const wchar_t *wcs, const wchar_t *accept) 1244 (wchar_t *wcs, const wchar_t *accept)); 1246 (const wchar_t *wcs, const wchar_t *accept)); 1296 (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr)); [all …]
|
/dragonfly/contrib/grep/lib/ |
H A D | regex_internal.c | 156 pstr->wcs = new_wcs; in re_string_realloc_buffers() 267 pstr->wcs[byte_idx++] = wc; in build_wcs_buffer() 270 pstr->wcs[byte_idx++] = WEOF; in build_wcs_buffer() 344 pstr->wcs[byte_idx++] = WEOF; in build_wcs_upper_buffer() 426 pstr->wcs[byte_idx] = wcu; in build_wcs_upper_buffer() 636 memmove (pstr->wcs, pstr->wcs + offset, in re_string_reconstruct() 666 pstr->wcs[low] = WEOF; in re_string_reconstruct() 680 memmove (pstr->wcs, pstr->wcs + offset, in re_string_reconstruct() 782 pstr->wcs[wcs_idx] = WEOF; in re_string_reconstruct() 915 re_free (pstr->wcs); in re_string_destruct() [all …]
|
H A D | regex_internal.h | 378 wint_t *wcs; member 437 ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF) 439 ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \ 440 || (pstr)->wcs[(idx) + 1] != WEOF)) 810 if (pstr->wcs[idx + byte_idx] != WEOF) in re_string_char_size_at() 821 return (wint_t) pstr->wcs[idx]; in re_string_wchar_at()
|
/dragonfly/contrib/cvs-1.12/lib/ |
H A D | regex_internal.c | 138 pstr->wcs = new_wcs; in re_string_realloc_buffers() 249 pstr->wcs[byte_idx++] = wc; in build_wcs_buffer() 252 pstr->wcs[byte_idx++] = WEOF; in build_wcs_buffer() 327 pstr->wcs[byte_idx++] = WEOF; in build_wcs_upper_buffer() 408 pstr->wcs[byte_idx] = wcu; in build_wcs_upper_buffer() 414 pstr->wcs[byte_idx + i] = WEOF; in build_wcs_upper_buffer() 439 pstr->wcs[byte_idx++] = wcu; in build_wcs_upper_buffer() 599 memmove (pstr->wcs, pstr->wcs + offset, in re_string_reconstruct() 676 pstr->wcs[wcs_idx] = WEOF; in re_string_reconstruct() 816 re_free (pstr->wcs); in re_string_destruct() [all …]
|
H A D | regex_internal.h | 365 wint_t *wcs; member 442 ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF) 444 ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \ 445 || (pstr)->wcs[(idx) + 1] != WEOF)) 865 if (pstr->wcs[idx + byte_idx] != WEOF) in internal_function() 876 return (wint_t) pstr->wcs[idx]; in internal_function()
|
/dragonfly/usr.bin/column/ |
H A D | column.c | 307 width(const wchar_t *wcs) in width() argument 311 for (w = 0; *wcs != L'\0'; wcs++) in width() 312 if ((cw = wcwidth(*wcs)) > 0) in width()
|
/dragonfly/usr.bin/join/ |
H A D | join.c | 410 wchar_t *wcs; in towcs() local 415 if ((wcs = malloc((n + 1) * sizeof(*wcs))) == NULL) in towcs() 417 mbsrtowcs(wcs, &s, n + 1, NULL); in towcs() 418 return (wcs); in towcs()
|