Lines Matching defs:ctype
120 const locale::category locale::ctype;
165 install(&make<std::ctype<char> >(nullptr, false, 1u));
167 install(&make<std::ctype<wchar_t> >(1u));
303 if (c & locale::ctype) {
382 if (c & locale::ctype) {
383 install_from<std::ctype<char> >(one);
385 install_from<std::ctype<wchar_t> >(one);
702 // template <> class ctype<wchar_t>;
705 constinit locale::id ctype<wchar_t>::id;
707 ctype<wchar_t>::~ctype() {}
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;
713 const wchar_t* ctype<wchar_t>::do_is(const char_type* low, const char_type* high, mask* vec) const {
715 *vec = static_cast<mask>(std::__libcpp_isascii(*low) ? ctype<char>::classic_table()[*low] : 0);
719 const wchar_t* ctype<wchar_t>::do_scan_is(mask m, const char_type* low, const char_type* high) const {
721 if (std::__libcpp_isascii(*low) && (ctype<char>::classic_table()[*low] & m))
726 const wchar_t* ctype<wchar_t>::do_scan_not(mask m, const char_type* low, const char_type* high) const {
728 if (!(std::__libcpp_isascii(*low) && (ctype<char>::classic_table()[*low] & m)))
733 wchar_t ctype<wchar_t>::do_toupper(char_type c) const {
737 return std::__libcpp_isascii(c) ? ctype<char>::__classic_upper_table()[c] : c;
743 const wchar_t* ctype<wchar_t>::do_toupper(char_type* low, const char_type* high) const {
748 *low = std::__libcpp_isascii(*low) ? ctype<char>::__classic_upper_table()[*low] : *low;
756 wchar_t ctype<wchar_t>::do_tolower(char_type c) const {
760 return std::__libcpp_isascii(c) ? ctype<char>::__classic_lower_table()[c] : c;
766 const wchar_t* ctype<wchar_t>::do_tolower(char_type* low, const char_type* high) const {
771 *low = std::__libcpp_isascii(*low) ? ctype<char>::__classic_lower_table()[*low] : *low;
778 wchar_t ctype<wchar_t>::do_widen(char c) const { return c; }
780 const char* ctype<wchar_t>::do_widen(const char* low, const char* high, char_type* dest) const {
786 char ctype<wchar_t>::do_narrow(char_type c, char dfault) const {
792 const wchar_t* ctype<wchar_t>::do_narrow(const char_type* low, const char_type* high, char dfault, char* dest) const {
802 // template <> class ctype<char>;
804 constinit locale::id ctype<char>::id;
806 const size_t ctype<char>::table_size;
808 ctype<char>::ctype(const mask* tab, bool del, size_t refs) : locale::facet(refs), __tab_(tab), __del_(del) {
813 ctype<char>::~ctype() {
818 char ctype<char>::do_toupper(char_type c) const {
830 const char* ctype<char>::do_toupper(char_type* low, const char_type* high) const {
846 char ctype<char>::do_tolower(char_type c) const {
858 const char* ctype<char>::do_tolower(char_type* low, const char_type* high) const {
874 char ctype<char>::do_widen(char c) const { return c; }
876 const char* ctype<char>::do_widen(const char* low, const char* high, char_type* dest) const {
882 char ctype<char>::do_narrow(char_type c, char dfault) const {
888 const char* ctype<char>::do_narrow(const char_type* low, const char_type* high, char dfault, char* dest) const {
904 const ctype<char>::mask* ctype<char>::classic_table() noexcept {
906 static constexpr const ctype<char>::mask builtin_table[table_size] = {
984 const ctype<char>::mask* ctype<char>::classic_table() noexcept {
1002 return const_cast<const ctype<char>::mask*>(__OBJ_DATA(__lc_ctype_a)->mask);
1004 return const_cast<const ctype<char>::mask*>(__ctypec);
1009 # warning ctype<char>::classic_table() is not implemented
1010 printf("ctype<char>::classic_table() is not implemented\n");
1018 const int* ctype<char>::__classic_lower_table() noexcept { return _LIBCPP_GET_C_LOCALE->__ctype_tolower; }
1020 const int* ctype<char>::__classic_upper_table() noexcept { return _LIBCPP_GET_C_LOCALE->__ctype_toupper; }
1022 const short* ctype<char>::__classic_lower_table() noexcept { return _C_tolower_tab_ + 1; }
1024 const short* ctype<char>::__classic_upper_table() noexcept { return _C_toupper_tab_ + 1; }
1027 const int* ctype<char>::__classic_lower_table() noexcept { return *__ctype_tolower_loc(); }
1029 const int* ctype<char>::__classic_upper_table() noexcept { return *__ctype_toupper_loc(); }
1031 const unsigned short* ctype<char>::__classic_lower_table() _NOEXCEPT {
1038 const unsigned short* ctype<char>::__classic_upper_table() _NOEXCEPT {
1050 : ctype<char>(0, false, refs), __l_(__locale::__newlocale(_LIBCPP_ALL_MASK, name, 0)) {
1060 : ctype<char>(0, false, refs), __l_(__locale::__newlocale(_LIBCPP_ALL_MASK, name.c_str(), 0)) {
1095 : ctype<wchar_t>(refs), __l_(__locale::__newlocale(_LIBCPP_ALL_MASK, name, 0)) {
1105 : ctype<wchar_t>(refs), __l_(__locale::__newlocale(_LIBCPP_ALL_MASK, name.c_str(), 0)) {
1149 *vec = static_cast<mask>(ctype<char>::classic_table()[*low]);
4460 string __time_get_storage<char>::__analyze(char fmt, const ctype<char>& ct) {
4591 wstring __time_get_storage<wchar_t>::__analyze(char fmt, const ctype<wchar_t>& ct) {
4726 void __time_get_storage<char>::init(const ctype<char>& ct) {
4760 void __time_get_storage<wchar_t>::init(const ctype<wchar_t>& ct) {