Lines Matching defs:char

67     __convert_to_v(const char* __in, _Tv& __out, ios_base::iostate& __err,
73 __convert_to_v(const char*, float&, ios_base::iostate&,
78 __convert_to_v(const char*, double&, ios_base::iostate&,
83 __convert_to_v(const char*, long double&, ios_base::iostate&,
105 const char* __gbeg, size_t __gsize,
172 * as the char array. It does so by returning the value of
208 * @param lo Pointer to first char in range.
210 * @return Pointer to non-matching char if found, else @a hi.
275 * @brief Widen char to char_type
277 * This function converts the char argument to char_type using the
284 * @param c The char to convert.
288 widen(char __c) const
294 * This function converts each char in the input to char_type using the
306 const char*
307 widen(const char* __lo, const char* __hi, char_type* __to) const
311 * @brief Narrow char_type to char
313 * This function converts the char_type to char using the simplest
323 * @return The converted char.
325 char
326 narrow(char_type __c, char __dfault) const
330 * @brief Narrow array to char array
332 * This function converts each char_type in the input to char using the
349 char __dfault, char *__to) const
501 * @brief Widen char
503 * This virtual function converts the char to char_type using the
513 * @param c The char to convert.
517 do_widen(char) const = 0;
520 * @brief Widen char array
522 * This function converts each char in the input to char_type using the
537 virtual const char*
538 do_widen(const char* __lo, const char* __hi,
542 * @brief Narrow char_type to char
544 * This virtual function converts the argument to char using the
557 * @return The converted char.
559 virtual char
560 do_narrow(char_type, char __dfault) const = 0;
563 * @brief Narrow char_type array to char
566 * char using the simplest reasonable transformation and writes the
585 char __dfault, char* __dest) const = 0;
650 do_widen(char __c) const;
652 virtual const char*
653 do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
655 virtual char
656 do_narrow(char_type, char __dfault) const;
660 char __dfault, char* __dest) const;
666 // 22.2.1.3 ctype<char> specialization.
668 * @brief The ctype<char> specialization.
671 * the char type. It gets used by char streams for many I/O
672 * operations. The char specialization provides a number of
676 class ctype<char> : public locale::facet, public ctype_base
680 /// Typedef for the template parameter char.
681 typedef char char_type;
690 mutable char _M_widen_ok;
691 mutable char _M_widen[1 + static_cast<unsigned char>(-1)];
692 mutable char _M_narrow[1 + static_cast<unsigned char>(-1)];
693 mutable char _M_narrow_ok; // 0 uninitialized, 1 init,
697 /// The facet id for ctype<char>
700 static const size_t table_size = 1 + static_cast<unsigned char>(-1);
707 * @param table If non-zero, table is used as the per-char mask.
721 * @param table If non-zero, table is used as the per-char mask.
730 * @brief Test char classification.
734 * @param c The char to compare the mask of.
739 is(mask __m, char __c) const;
744 * This function finds the mask for each char in the range [lo, hi) and
746 * the char array.
753 inline const char*
754 is(const char* __lo, const char* __hi, mask* __vec) const;
757 * @brief Find char matching a mask
759 * This function searches for and returns the first char in [lo,hi) for
760 * which is(m,char) is true.
765 * @return Pointer to a matching char if found, else @a hi.
767 inline const char*
768 scan_is(mask __m, const char* __lo, const char* __hi) const;
771 * @brief Find char not matching a mask
773 * This function searches for and returns a pointer to the first char
774 * in [lo,hi) for which is(m,char) is false.
779 * @return Pointer to a non-matching char if found, else @a hi.
781 inline const char*
782 scan_not(mask __m, const char* __lo, const char* __hi) const;
787 * This function converts the char argument to uppercase if possible.
790 * toupper() acts as if it returns ctype<char>::do_toupper(c).
793 * @param c The char to convert.
794 * @return The uppercase char if convertible, else @a c.
803 * This function converts each char in the range [lo,hi) to uppercase
806 * toupper() acts as if it returns ctype<char>:: do_toupper(lo, hi).
809 * @param lo Pointer to first char in range.
820 * This function converts the char argument to lowercase if possible.
823 * tolower() acts as if it returns ctype<char>::do_tolower(c).
826 * @param c The char to convert.
827 * @return The lowercase char if convertible, else @a c.
836 * This function converts each char in the range [lo,hi) to lowercase
839 * tolower() acts as if it returns ctype<char>:: do_tolower(lo, hi).
842 * @param lo Pointer to first char in range.
851 * @brief Widen char
853 * This function converts the char to char_type using the simplest
854 * reasonable transformation. For an underived ctype<char> facet, the
857 * This function works as if it returns ctype<char>::do_widen(c).
863 * @param c The char to convert.
867 widen(char __c) const
870 return _M_widen[static_cast<unsigned char>(__c)];
876 * @brief Widen char array
878 * This function converts each char in the input to char using the
879 * simplest reasonable transformation. For an underived ctype<char>
882 * This function works as if it returns ctype<char>::do_widen(c).
888 * @param lo Pointer to first char in range.
893 const char*
894 widen(const char* __lo, const char* __hi, char_type* __to) const
907 * @brief Narrow char
909 * This function converts the char to char using the simplest
911 * returned instead. For an underived ctype<char> facet, @a c
914 * This function works as if it returns ctype<char>::do_narrow(c).
920 * @param c The char to convert.
924 char
925 narrow(char_type __c, char __dfault) const
927 if (_M_narrow[static_cast<unsigned char>(__c)])
928 return _M_narrow[static_cast<unsigned char>(__c)];
929 const char __t = do_narrow(__c, __dfault);
931 _M_narrow[static_cast<unsigned char>(__c)] = __t;
936 * @brief Narrow char array
938 * This function converts each char in the input to char using the
940 * destination array. For any char in the input that cannot be
941 * converted, @a dfault is used instead. For an underived ctype<char>
944 * This function works as if it returns ctype<char>::do_narrow(lo, hi,
959 char __dfault, char *__to) const
994 * This virtual function converts the char argument to uppercase if
1001 * @param c The char to convert.
1002 * @return The uppercase char if convertible, else @a c.
1010 * This virtual function converts each char in the range [lo,hi) to
1027 * This virtual function converts the char argument to lowercase if
1034 * @param c The char to convert.
1035 * @return The lowercase char if convertible, else @a c.
1043 * This virtual function converts each char in the range [lo,hi) to
1050 * @param lo Pointer to first char in range.
1058 * @brief Widen char
1060 * This virtual function converts the char to char using the simplest
1061 * reasonable transformation. For an underived ctype<char> facet, the
1071 * @param c The char to convert.
1075 do_widen(char __c) const
1079 * @brief Widen char array
1081 * This function converts each char in the range [lo,hi) to char using
1083 * ctype<char> facet, the argument will be copied unchanged.
1097 virtual const char*
1098 do_widen(const char* __lo, const char* __hi, char_type* __dest) const
1105 * @brief Narrow char
1107 * This virtual function converts the char to char using the simplest
1109 * returned instead. For an underived ctype<char> facet, @a c will be
1119 * @param c The char to convert.
1121 * @return The converted char.
1123 virtual char
1124 do_narrow(char_type __c, char) const
1128 * @brief Narrow char array to char array
1130 * This virtual function converts each char in the range [lo,hi) to
1131 * char using the simplest reasonable transformation and writes the
1132 * results to the destination array. For any char in the input that
1134 * ctype<char> facet, the argument will be copied unchanged.
1151 char, char* __dest) const
1161 char __tmp[sizeof(_M_widen)];
1177 char __tmp[sizeof(_M_narrow)];
1189 char __c;
1198 const ctype<char>&
1199 use_facet<ctype<char> >(const locale& __loc);
1227 char _M_narrow[128];
1228 wint_t _M_widen[1 + static_cast<unsigned char>(-1)];
1407 * @brief Widen char to wchar_t
1409 * This virtual function converts the char to wchar_t using the
1420 * @param c The char to convert.
1424 do_widen(char) const;
1427 * @brief Widen char array to wchar_t array
1429 * This function converts each char in the input to wchar_t using the
1445 virtual const char*
1446 do_widen(const char* __lo, const char* __hi, char_type* __dest) const;
1449 * @brief Narrow wchar_t to char
1451 * This virtual function converts the argument to char using
1454 * ctype<wchar_t> facet, @a c will be cast to char and
1466 * @return The converted char.
1468 virtual char
1469 do_narrow(char_type, char __dfault) const;
1472 * @brief Narrow wchar_t array to char array
1475 * char using the simplest reasonable transformation and writes the
1479 * element to char.
1496 char __dfault, char* __dest) const;
1516 ctype_byname(const char* __s, size_t __refs = 0);
1525 ctype_byname<char>::ctype_byname(const char*, size_t refs);
1528 ctype_byname<wchar_t>::ctype_byname(const char*, size_t refs);
1566 static const char* _S_atoms_out;
1570 static const char* _S_atoms_in;
1587 _S_format_float(const ios_base& __io, char* __fptr, char __mod);
1593 const char* _M_grouping;
1653 * template parameter specifying the char type. The numpunct facet is
1750 * Each char in the return string is interpret as an integer
1752 * of digits in a group. The first char in the string
1754 * group. If a char is negative, it indicates an unlimited
1756 * string are required to group a number, the last char is used
1877 numpunct<char>::~numpunct();
1881 numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);
1901 numpunct_byname(const char* __s, size_t __refs = 0)
2440 char __mod, _ValueT __v) const;
2443 _M_group_float(const char* __grouping, size_t __grouping_size,
2453 _M_group_int(const char* __grouping, size_t __grouping_size,
2606 * locales, it may replace two chars with one, change a char for
2695 collate<char>::_M_compare(const char*, const char*) const;
2699 collate<char>::_M_transform(char*, const char*, size_t) const;
2723 collate_byname(const char* __s, size_t __refs = 0)
2856 const char*
2857 __timepunct_cache<char>::_S_timezones[14];
2881 const char* _M_name_timepunct;
2904 __timepunct(__c_locale __cloc, const char* __s, size_t __refs = 0);
3020 __timepunct<char>::_M_initialize_timepunct(__c_locale __cloc);
3024 __timepunct<char>::_M_put(char*, size_t, const char*, const tm*) const;
3117 * @return Iterator to first char beyond time string.
3142 * @return Iterator to first char beyond date string.
3170 * @return Iterator to first char beyond weekday name.
3199 * @return Iterator to first char beyond month name.
3225 * @return Iterator to first char beyond year.
3263 * @return Iterator to first char beyond time string.
3282 * @return Iterator to first char beyond date string.
3301 * @return Iterator to first char beyond weekday name.
3320 * @return Iterator to first char beyond month name.
3339 * @return Iterator to first char beyond year.
3378 time_get_byname(const char*, size_t __refs = 0)
3445 * provided format char and optional modifier. The format and modifier
3453 * @param format Format char.
3454 * @param mod Optional modifier char.
3459 const tm* __tm, char __format, char __mod = 0) const
3472 * provided format char and optional modifier. This function is a hook
3480 * @param format Format char.
3481 * @param mod Optional modifier char.
3486 char __format, char __mod) const;
3502 time_put_byname(const char*, size_t __refs = 0)
3526 struct pattern { char field[4]; };
3539 static const char* _S_atoms;
3544 _S_construct_pattern(char __precedes, char __space, char __posn);
3550 const char* _M_grouping;
3671 moneypunct(__c_locale __cloc, const char* __s, size_t __refs = 0)
3708 * Each char in the return string is interpret as an integer rather
3710 * group. The first char in the string represents the number of digits
3711 * in the least significant group. If a char is negative, it indicates
3713 * string are required to group a number, the last char is used
3959 const char* __name = NULL);
3969 moneypunct<char, true>::~moneypunct();
3972 moneypunct<char, false>::~moneypunct();
3976 moneypunct<char, true>::_M_initialize_moneypunct(__c_locale, const char*);
3980 moneypunct<char, false>::_M_initialize_moneypunct(__c_locale, const char*);
3992 const char*);
3997 const char*);
4011 moneypunct_byname(const char* __s, size_t __refs = 0)
4356 * only provided for char and wchar_t instantiations.
4379 const char* _M_name_messages;
4407 messages(__c_locale __cloc, const char* __s, size_t __refs = 0);
4420 open(const basic_string<char>& __s, const locale& __loc) const
4438 open(const basic_string<char>&, const locale&, const char*) const;
4487 do_open(const basic_string<char>&, const locale&) const;
4516 // Returns a locale and codeset-converted string, given a char* message.
4517 char*
4521 return reinterpret_cast<char*>(const_cast<_CharT*>(__msg.c_str()));
4524 // Returns a locale and codeset-converted string, given a char* message.
4526 _M_convert_from_char(char*) const
4530 size_t __len = char_traits<char>::length(__msg) - 1;
4535 // Convert char* to _CharT in locale used to open catalog.
4537 // typedef typename codecvt<char, _CharT, _StateT> __codecvt_type;
4538 typedef typename codecvt<char, _CharT, mbstate_t> __codecvt_type;
4544 char* __from_next;
4572 messages<char>::do_get(catalog, int, int, const string&) const;
4589 messages_byname(const char* __s, size_t __refs = 0);