| /dragonfly/lib/libc/string/ |
| HD | 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/ |
| HD | 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()
|
| HD | archive_string.h | 235 int archive_mstring_copy_wcs(struct archive_mstring *, const wchar_t *wcs); 237 const wchar_t *wcs, size_t);
|
| HD | 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() 4093 archive_mstring_copy_wcs_len(struct archive_mstring *aes, const wchar_t *wcs, in archive_mstring_copy_wcs_len() argument [all …]
|
| /dragonfly/contrib/gdb-7/gdb/gnulib/import/ |
| HD | 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/ |
| HD | 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()
|
| HD | 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()
|
| HD | 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()
|
| HD | 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()
|
| HD | 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()
|
| HD | 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/ |
| HD | 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/ |
| HD | 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)); 1373 _GL_CXXALIASWARN1 (wcschr, const wchar_t *, (const 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)); 1403 _GL_CXXALIASWARN1 (wcsrchr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); 1420 _GL_FUNCDECL_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject) 1423 _GL_CXXALIAS_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject)); 1440 _GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept) 1443 _GL_CXXALIAS_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept)); [all …]
|
| /dragonfly/gnu/usr.bin/gdb/libgnu/ |
| HD | 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)); 1177 _GL_CXXALIASWARN1 (wcsrchr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); 1194 _GL_FUNCDECL_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject) 1197 _GL_CXXALIAS_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject)); 1212 _GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept) 1215 _GL_CXXALIAS_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept)); [all …]
|
| /dragonfly/contrib/grep/lib/ |
| HD | regex_internal.c | 153 new_wcs = re_realloc (pstr->wcs, wint_t, new_buf_len); in re_string_realloc_buffers() 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() 312 pstr->wcs[byte_idx] = (wchar_t) pstr->mbs[byte_idx]; in build_wcs_upper_buffer() 341 pstr->wcs[byte_idx++] = wcu; in build_wcs_upper_buffer() 344 pstr->wcs[byte_idx++] = WEOF; in build_wcs_upper_buffer() 354 pstr->wcs[byte_idx++] = (wchar_t) ch; in build_wcs_upper_buffer() 426 pstr->wcs[byte_idx] = wcu; in build_wcs_upper_buffer() 432 pstr->wcs[byte_idx + i] = WEOF; in build_wcs_upper_buffer() [all …]
|
| HD | 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/ |
| HD | regex_internal.c | 135 wint_t *new_wcs = re_xrealloc (pstr->wcs, wint_t, new_buf_len); in re_string_realloc_buffers() 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() 294 pstr->wcs[byte_idx] = (wchar_t) pstr->mbs[byte_idx]; in build_wcs_upper_buffer() 324 pstr->wcs[byte_idx++] = wcu; in build_wcs_upper_buffer() 327 pstr->wcs[byte_idx++] = WEOF; in build_wcs_upper_buffer() 335 pstr->wcs[byte_idx++] = (wchar_t) ch; 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() [all …]
|
| HD | 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/ |
| HD | 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/ |
| HD | 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()
|