| /freebsd-12.1/contrib/libstdc++/include/bits/ |
| H A D | locale_classes.h | 66 class locale in _GLIBCXX_BEGIN_NAMESPACE() 123 locale() throw(); in _GLIBCXX_BEGIN_NAMESPACE() 132 locale(const locale& __other) throw(); in _GLIBCXX_BEGIN_NAMESPACE() 157 locale(const locale& __base, const char* __s, category __cat); in _GLIBCXX_BEGIN_NAMESPACE() 170 locale(const locale& __base, const locale& __add, category __cat); in _GLIBCXX_BEGIN_NAMESPACE() 183 locale(const locale& __other, _Facet* __f); in _GLIBCXX_BEGIN_NAMESPACE() 196 const locale& in _GLIBCXX_BEGIN_NAMESPACE() 212 locale in _GLIBCXX_BEGIN_NAMESPACE() 274 static locale in _GLIBCXX_BEGIN_NAMESPACE() 433 class locale::id [all …]
|
| H A D | localefwd.h | 53 class locale; 58 isspace(_CharT, const locale&); 62 isprint(_CharT, const locale&); 66 iscntrl(_CharT, const locale&); 70 isupper(_CharT, const locale&); 74 islower(_CharT, const locale&); 78 isalpha(_CharT, const locale&); 82 isdigit(_CharT, const locale&); 86 ispunct(_CharT, const locale&); 94 isalnum(_CharT, const locale&); [all …]
|
| H A D | locale_facets.tcc | 50 locale in _GLIBCXX_BEGIN_NAMESPACE() 51 locale::combine(const locale& __other) const in _GLIBCXX_BEGIN_NAMESPACE() 63 return locale(__tmp); in _GLIBCXX_BEGIN_NAMESPACE() 90 has_facet(const locale& __loc) throw() in has_facet() 112 use_facet(const locale& __loc) in use_facet() 136 operator() (const locale& __loc) const in operator ()() 523 const locale& __loc = __io._M_getloc(); in _M_extract_int() 992 const locale& __loc = __io._M_getloc(); in _M_insert_int() 1112 const locale& __loc = __io._M_getloc(); in _M_insert_float() 1342 const locale& __loc = __io._M_getloc(); in _M_extract() [all …]
|
| /freebsd-12.1/contrib/libstdc++/src/ |
| H A D | locale.cc | 60 const locale::category locale::none; 61 const locale::category locale::ctype; 62 const locale::category locale::numeric; 63 const locale::category locale::collate; 64 const locale::category locale::time; 65 const locale::category locale::monetary; 66 const locale::category locale::messages; 67 const locale::category locale::all; 71 locale::_Impl* locale::_S_global; 77 locale::locale(const locale& __other) throw() in locale() function in locale [all …]
|
| H A D | locale_init.cc | 212 locale::locale() throw() : _M_impl(0) in _GLIBCXX_BEGIN_NAMESPACE() 220 locale 221 locale::global(const locale& __other) in global() 240 return locale(__old); in global() 243 const locale& 244 locale::classic() in classic() 261 locale::_S_initialize() in _S_initialize() 272 const locale::id* const 284 const locale::id* const 298 const locale::id* const [all …]
|
| H A D | compatibility-ldbl.cc | 46 template const num_put<C>& use_facet<num_put<C> >(const locale&); 47 template const num_get<C>& use_facet<num_get<C> >(const locale&); 50 template bool has_facet<num_put<C> >(const locale&); 51 template bool has_facet<num_get<C> >(const locale&); 52 template bool has_facet<money_put<C> >(const locale&); 53 template bool has_facet<money_get<C> >(const locale&); 61 template const num_put<C>& use_facet<num_put<C> >(const locale&); 65 template bool has_facet<num_put<C> >(const locale&); 66 template bool has_facet<num_get<C> >(const locale&); 67 template bool has_facet<money_put<C> >(const locale&); [all …]
|
| H A D | locale-inst.cc | 202 use_facet<collate<C> >(const locale&); 206 use_facet<numpunct<C> >(const locale&); 210 use_facet<num_put<C> >(const locale&); 214 use_facet<num_get<C> >(const locale&); 238 use_facet<time_put<C> >(const locale&); 242 use_facet<time_get<C> >(const locale&); 246 use_facet<messages<C> >(const locale&); 251 has_facet<ctype<C> >(const locale&); 259 has_facet<collate<C> >(const locale&); 267 has_facet<num_put<C> >(const locale&); [all …]
|
| H A D | localename.cc | 37 locale::locale(const char* __s) : _M_impl(0) in locale() function in locale 146 locale::locale(const locale& __base, const char* __s, category __cat) in locale() function in locale 152 locale __add(__s); in locale() 156 locale::locale(const locale& __base, const locale& __add, category __cat) in locale() function in locale 161 locale::_M_coalesce(const locale& __base, const locale& __add, in _M_coalesce() 177 locale::_Impl:: 185 locale::facet::_S_create_c_locale(__cloc, __s); in _Impl() 253 locale::facet::_S_destroy_c_locale(__cloc); in _Impl() 257 locale::facet::_S_destroy_c_locale(__cloc); in _Impl() 264 locale::_Impl::
|
| /freebsd-12.1/lib/libc/stdtime/ |
| H A D | strptime.c | 89 locale_t locale) in _strptime() argument 114 if (isspace_l((unsigned char)c, locale)) in _strptime() 141 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime() 244 isspace_l((unsigned char)*buf, locale)) in _strptime() 333 len, locale) == 0) in _strptime() 337 len, locale) == 0) in _strptime() 400 isspace_l((unsigned char)*buf, locale)) in _strptime() 440 len, locale) == 0) in _strptime() 446 len, locale) == 0) in _strptime() 458 len, locale) == 0) in _strptime() [all …]
|
| /freebsd-12.1/lib/libc/stdio/ |
| H A D | vfwscanf.c | 185 locale_t locale) in convert_ccl() argument 213 locale_t locale) in convert_wccl() argument 305 locale_t locale) in parseint() argument 315 c = __fgetwc(fp, locale); in parseint() 431 FIX_LOCALE(locale); in vfwscanf_l() 673 locale); in __vfwscanf() 676 locale); in __vfwscanf() 689 &ccl, locale); in __vfwscanf() 692 &ccl, locale); in __vfwscanf() 708 width, locale); in __vfwscanf() [all …]
|
| H A D | vfwprintf.c | 97 get_decpt(locale_t locale) in get_decpt() argument 111 get_thousep(locale_t locale) in get_thousep() argument 135 gs->thousands_sep = get_thousep(locale); in grouping_init() 203 if (__xfputwc(p[i], fp, locale) == WEOF) in __sprint() 263 return (__fputwc(wc, fp, locale)); in __xfputwc() 360 FIX_LOCALE(locale); in vfwprintf_l() 365 ret = __sbprintf(fp, locale, fmt0, ap); in vfwprintf_l() 367 ret = __vfwprintf(fp, locale, fmt0, ap); in vfwprintf_l() 468 if (io_flush(&io, locale)) \ in __vfwprintf() 553 decimal_point = get_decpt(locale); in __vfwprintf() [all …]
|
| H A D | printfcommon.h | 89 io_print(struct io_state *iop, const CHAR * __restrict ptr, int len, locale_t locale) in io_print() argument 96 return (__sprint(iop->fp, &iop->uio, locale)); in io_print() 118 locale_t locale) in io_pad() argument 124 if (io_print(iop, with, n, locale)) in io_pad() 137 int len, const CHAR * __restrict with, locale_t locale) in io_printandpad() argument 145 if (io_print(iop, p, p_len, locale)) in io_printandpad() 150 return (io_pad(iop, len - p_len, with, locale)); in io_printandpad() 154 io_flush(struct io_state *iop, locale_t locale) in io_flush() argument 157 return (__sprint(iop->fp, &iop->uio, locale)); in io_flush()
|
| /freebsd-12.1/lib/libc/string/ |
| H A D | strcasecmp.c | 48 strcasecmp_l(const char *s1, const char *s2, locale_t locale) in strcasecmp_l() argument 53 FIX_LOCALE(locale); in strcasecmp_l() 55 while (tolower_l(*us1, locale) == tolower_l(*us2++, locale)) in strcasecmp_l() 58 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strcasecmp_l() 67 strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale) in strncasecmp_l() argument 69 FIX_LOCALE(locale); in strncasecmp_l() 76 if (tolower_l(*us1, locale) != tolower_l(*us2++, locale)) in strncasecmp_l() 77 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strncasecmp_l()
|
| /freebsd-12.1/lib/libc/locale/ |
| H A D | DESIGN.xlocale | 10 - Locale-aware functions taking an explicit locale argument (Darwin) 19 locale code. A lot of the existing locale code originates with 4BSD or earlier 25 called without a locale. This approach was taken, rather than adding _l 27 global-locale versions to slip in. 45 `setinvalidrune()` function that can modify the rune locale. 57 All locales and locale components are reference counted. The global locale, 59 malloc() memory is required when using a single locale. 61 This means that threads using the global locale are subject to the same 63 in threads using the global locale, while modifying the global locale, have 67 global locale, rather than alias them. [all …]
|
| H A D | setlocale.c | 103 setlocale(int category, const char *locale) in setlocale() argument 112 if (locale == NULL) in setlocale() 125 if (!*locale) { in setlocale() 144 if (strlen(locale) > ENCODING_LEN) { in setlocale() 150 if ((r = strchr(locale, '/')) == NULL) { in setlocale() 151 if (strlen(locale) > ENCODING_LEN) { in setlocale() 156 (void)strcpy(new_categories[i], locale); in setlocale() 167 if ((len = r - locale) > ENCODING_LEN) { in setlocale() 171 (void)strlcpy(new_categories[i], locale, in setlocale() 176 locale = r; in setlocale() [all …]
|
| H A D | runetype.c | 50 ___runetype_l(__ct_rune_t c, locale_t locale) in ___runetype_l() argument 53 FIX_LOCALE(locale); in ___runetype_l() 54 _RuneRange *rr = &(XLOCALE_CTYPE(locale)->runes->__runetype_ext); in ___runetype_l() 87 int ___mb_cur_max_l(locale_t locale) in ___mb_cur_max_l() argument 89 FIX_LOCALE(locale); in ___mb_cur_max_l() 90 return XLOCALE_CTYPE(locale)->__mb_cur_max; in ___mb_cur_max_l()
|
| H A D | wcstod.c | 53 locale_t locale) in wcstod_l() argument 62 FIX_LOCALE(locale); in wcstod_l() 66 while (iswspace_l(*wcp, locale)) { in wcstod_l() 82 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstod_l() 93 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstod_l() 96 val = strtod_l(buf, &end, locale); in wcstod_l()
|
| H A D | wcstof.c | 47 locale_t locale) in wcstof_l() argument 56 FIX_LOCALE(locale); in wcstof_l() 60 while (iswspace_l(*wcp, locale)) { in wcstof_l() 66 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstof_l() 77 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstof_l() 79 val = strtof_l(buf, &end, locale); in wcstof_l()
|
| H A D | wcstold.c | 47 locale_t locale) in wcstold_l() argument 56 FIX_LOCALE(locale); in wcstold_l() 60 while (iswspace_l(*wcp, locale)) { in wcstold_l() 66 if ((len = wcsrtombs_l(NULL, &wcp, 0, &mbs, locale)) == (size_t)-1) { in wcstold_l() 77 wcsrtombs_l(buf, &wcp, len + 1, &mbs, locale); in wcstold_l() 79 val = strtold_l(buf, &end, locale); in wcstold_l()
|
| /freebsd-12.1/contrib/libc++/src/ |
| H A D | ios.cpp | 137 locale 141 locale& loc_storage = *reinterpret_cast<locale*>(&__loc_); in imbue() 148 locale 151 const locale& loc_storage = *reinterpret_cast<const locale*>(&__loc_); in getloc() 253 locale& loc_storage = *reinterpret_cast<locale*>(&__loc_); in ~ios_base() 254 loc_storage.~locale(); in ~ios_base() 347 locale& lhs_loc = *reinterpret_cast<locale*>(&__loc_); in copyfmt() 348 const locale& rhs_loc = *reinterpret_cast<const locale*>(&rhs.__loc_); in copyfmt() 391 locale& rhs_loc = *reinterpret_cast<locale*>(&rhs.__loc_); in move() 423 locale& lhs_loc = *reinterpret_cast<locale*>(&__loc_); in swap() [all …]
|
| /freebsd-12.1/contrib/diff/lib/ |
| H A D | hard-locale.c | 50 char *locale = malloc (strlen (p) + 1); in hard_locale() 51 if (locale) in hard_locale() 53 strcpy (locale, p); in hard_locale() 59 && strcmp (p, locale) == 0) in hard_locale() 61 && strcmp (p, locale) == 0)) in hard_locale() 65 setlocale (category, locale); in hard_locale() 66 free (locale); in hard_locale()
|
| /freebsd-12.1/contrib/libc++/include/ |
| H A D | __locale | 126 locale(const locale&) _NOEXCEPT; 129 locale(const locale&, const char*, category); 130 locale(const locale&, const string&, category); 133 locale(const locale&, const locale&, category); 135 ~locale(); 137 const locale& operator=(const locale&) _NOEXCEPT; 141 locale combine(const locale&) const; 153 static locale global(const locale&); 206 locale::locale(const locale& __other, _Facet* __f) 212 locale [all …]
|
| /freebsd-12.1/tools/build/mk/ |
| H A D | OptionalObsoleteFiles.inc | 2192 OLD_FILES+=usr/include/c++/4.2/locale 4588 OLD_FILES+=usr/include/c++/v1/locale 4589 OLD_FILES+=usr/include/c++/v1/locale.h 4795 OLD_DIRS+=usr/share/locale 4810 OLD_DIRS+=usr/share/locale/af_ZA.UTF-8 4817 OLD_DIRS+=usr/share/locale/am_ET.UTF-8 4824 OLD_DIRS+=usr/share/locale/ar_AE.UTF-8 4831 OLD_DIRS+=usr/share/locale/ar_EG.UTF-8 5664 OLD_DIRS+=usr/share/locale/ja_JP.SJIS 6098 OLD_DIRS+=usr/share/locale/zh_CN.GBK [all …]
|
| /freebsd-12.1/usr.bin/locale/tests/ |
| H A D | locale_test.sh | 41 locale -k \ 66 locale -k \ 73 locale -k \ 91 locale -k \ 108 locale \ 133 locale \ 140 locale \ 158 locale \
|
| /freebsd-12.1/usr.sbin/mfiutil/ |
| H A D | mfi_evt.c | 149 *locale = MFI_EVT_LOCALE_LD; in parse_locale() 153 *locale = MFI_EVT_LOCALE_PD; in parse_locale() 157 *locale = MFI_EVT_LOCALE_ENCL; in parse_locale() 162 *locale = MFI_EVT_LOCALE_BBU; in parse_locale() 166 *locale = MFI_EVT_LOCALE_SAS; in parse_locale() 182 *locale = MFI_EVT_LOCALE_ALL; in parse_locale() 190 *locale = val; in parse_locale() 273 format_locale(uint16_t locale) in format_locale() argument 277 switch (locale) { in format_locale() 545 uint16_t locale; in show_events() local [all …]
|