Lines Matching +defs:c +defs:mode
105 string build_name(const string& other, const string& one, locale::category c) {
108 if (c == locale::none || other == one)
136 __imp(const __imp&, const string&, locale::category c);
137 __imp(const __imp& other, const __imp& one, locale::category c);
288 locale::__imp::__imp(const __imp& other, const string& name, locale::category c)
289 : facets_(N), name_(build_name(other.name_, name, c)) {
297 if (c & locale::collate) {
303 if (c & locale::ctype) {
321 if (c & locale::monetary) {
329 if (c & locale::numeric) {
335 if (c & locale::time) {
345 if (c & locale::messages) {
367 locale::__imp::__imp(const __imp& other, const __imp& one, locale::category c)
368 : facets_(N), name_(build_name(other.name_, one.name_, c)) {
376 if (c & locale::collate) {
382 if (c & locale::ctype) {
400 if (c & locale::monetary) {
416 if (c & locale::numeric) {
430 if (c & locale::time) {
440 if (c & locale::messages) {
543 locale::locale(const locale& other, const char* name, category c)
544 : __locale_(name ? new __imp(*other.__locale_, name, c)
549 locale::locale(const locale& other, const string& name, category c) : __locale_(new __imp(*other.__locale_, name, c)) {
553 locale::locale(const locale& other, const locale& one, category c)
554 : __locale_(new __imp(*other.__locale_, *one.__locale_, c)) {
709 bool ctype<wchar_t>::do_is(mask m, char_type c) const {
710 return std::__libcpp_isascii(c) ? (ctype<char>::classic_table()[c] & m) != 0 : false;
733 wchar_t ctype<wchar_t>::do_toupper(char_type c) const {
735 return std::__libcpp_isascii(c) ? _DefaultRuneLocale.__mapupper[c] : c;
737 return std::__libcpp_isascii(c) ? ctype<char>::__classic_upper_table()[c] : c;
739 return (std::__libcpp_isascii(c) && __locale::__iswlower(c, _LIBCPP_GET_C_LOCALE)) ? c - L'a' + L'A' : c;
756 wchar_t ctype<wchar_t>::do_tolower(char_type c) const {
758 return std::__libcpp_isascii(c) ? _DefaultRuneLocale.__maplower[c] : c;
760 return std::__libcpp_isascii(c) ? ctype<char>::__classic_lower_table()[c] : c;
762 return (std::__libcpp_isascii(c) && __locale::__isupper(c, _LIBCPP_GET_C_LOCALE)) ? c - L'A' + 'a' : c;
778 wchar_t ctype<wchar_t>::do_widen(char c) const { return c; }
786 char ctype<wchar_t>::do_narrow(char_type c, char dfault) const {
787 if (std::__libcpp_isascii(c))
788 return static_cast<char>(c);
818 char ctype<char>::do_toupper(char_type c) const {
820 return std::__libcpp_isascii(c) ? static_cast<char>(_DefaultRuneLocale.__mapupper[static_cast<ptrdiff_t>(c)]) : c;
822 return static_cast<char>(__classic_upper_table()[static_cast<unsigned char>(c)]);
824 return std::__libcpp_isascii(c) ? static_cast<char>(__classic_upper_table()[static_cast<unsigned char>(c)]) : c;
826 return (std::__libcpp_isascii(c) && __locale::__islower(c, _LIBCPP_GET_C_LOCALE)) ? c - 'a' + 'A' : c;
846 char ctype<char>::do_tolower(char_type c) const {
848 return std::__libcpp_isascii(c) ? static_cast<char>(_DefaultRuneLocale.__maplower[static_cast<ptrdiff_t>(c)]) : c;
850 return static_cast<char>(__classic_lower_table()[static_cast<unsigned char>(c)]);
852 return std::__libcpp_isascii(c) ? static_cast<char>(__classic_lower_table()[static_cast<size_t>(c)]) : c;
854 return (std::__libcpp_isascii(c) && __locale::__isupper(c, _LIBCPP_GET_C_LOCALE)) ? c - 'A' + 'a' : c;
874 char ctype<char>::do_widen(char c) const { return c; }
882 char ctype<char>::do_narrow(char_type c, char dfault) const {
883 if (std::__libcpp_isascii(c))
884 return static_cast<char>(c);
996 // Newlib has a 257-entry table in ctype_.c, where (char)0 starts at [1].
1071 char ctype_byname<char>::do_toupper(char_type c) const {
1072 return static_cast<char>(__locale::__toupper(static_cast<unsigned char>(c), __l_));
1081 char ctype_byname<char>::do_tolower(char_type c) const {
1082 return static_cast<char>(__locale::__tolower(static_cast<unsigned char>(c), __l_));
1116 bool ctype_byname<wchar_t>::do_is(mask m, char_type c) const {
1117 wint_t ch = static_cast<wint_t>(c);
1249 wchar_t ctype_byname<wchar_t>::do_toupper(char_type c) const { return __locale::__towupper(c, __l_); }
1257 wchar_t ctype_byname<wchar_t>::do_tolower(char_type c) const { return __locale::__towlower(c, __l_); }
1265 wchar_t ctype_byname<wchar_t>::do_widen(char c) const { return __locale::__btowc(c, __l_); }
1273 char ctype_byname<wchar_t>::do_narrow(char_type c, char dfault) const {
1274 int r = __locale::__wctob(c, __l_);
1557 codecvt_mode mode = codecvt_mode(0)) {
1560 if (mode & generate_header) {
1623 codecvt_mode mode = codecvt_mode(0)) {
1626 if (mode & generate_header) {
1689 codecvt_mode mode = codecvt_mode(0)) {
1692 if (mode & consume_header) {
1795 codecvt_mode mode = codecvt_mode(0)) {
1798 if (mode & consume_header) {
1898 codecvt_mode mode = codecvt_mode(0)) {
1900 if (mode & consume_header) {
1984 codecvt_mode mode = codecvt_mode(0)) {
1987 if (mode & generate_header) {
2034 codecvt_mode mode = codecvt_mode(0)) {
2037 if (mode & consume_header) {
2134 codecvt_mode mode = codecvt_mode(0)) {
2136 if (mode & consume_header) {
2218 codecvt_mode mode = codecvt_mode(0)) {
2221 if (mode & generate_header) {
2261 codecvt_mode mode = codecvt_mode(0)) {
2264 if (mode & consume_header) {
2328 codecvt_mode mode = codecvt_mode(0)) {
2330 if (mode & consume_header) {
2387 codecvt_mode mode = codecvt_mode(0)) {
2390 if (mode & generate_header) {
2427 codecvt_mode mode = codecvt_mode(0)) {
2430 if (mode & consume_header) {
2464 codecvt_mode mode = codecvt_mode(0)) {
2466 if (mode & consume_header) {
2501 codecvt_mode mode = codecvt_mode(0)) {
2504 if (mode & generate_header) {
2541 codecvt_mode mode = codecvt_mode(0)) {
2544 if (mode & consume_header) {
2578 codecvt_mode mode = codecvt_mode(0)) {
2580 if (mode & consume_header) {
2615 codecvt_mode mode = codecvt_mode(0)) {
2618 if (mode & generate_header) {
2644 codecvt_mode mode = codecvt_mode(0)) {
2647 if (mode & consume_header) {
2666 codecvt_mode mode = codecvt_mode(0)) {
2668 if (mode & consume_header) {
2689 codecvt_mode mode = codecvt_mode(0)) {
2692 if (mode & generate_header) {
2718 codecvt_mode mode = codecvt_mode(0)) {
2721 if (mode & consume_header) {
2740 codecvt_mode mode = codecvt_mode(0)) {
2743 if (mode & consume_header) {
4752 __c_ = __analyze('c', ct);
4825 __c_ = __analyze('c', ct);