• Home
  • Raw
  • Download

Lines Matching refs:const

61   __libcpp_locale_guard(__libcpp_locale_guard const&);
62 __libcpp_locale_guard& operator=(__libcpp_locale_guard const&);
98 has_facet(const locale&) _NOEXCEPT;
102 const _Facet&
103 use_facet(const locale&);
114 static const category // values assigned here are for exposition only
126 locale(const locale&) _NOEXCEPT;
127 explicit locale(const char*);
128 explicit locale(const string&);
129 locale(const locale&, const char*, category);
130 locale(const locale&, const string&, category);
132 _LIBCPP_INLINE_VISIBILITY locale(const locale&, _Facet*);
133 locale(const locale&, const locale&, category);
137 const locale& operator=(const locale&) _NOEXCEPT;
141 locale combine(const locale&) const;
144 string name() const;
145 bool operator==(const locale&) const;
146 bool operator!=(const locale& __y) const {return !(*this == __y);}
149 bool operator()(const basic_string<_CharT, _Traits, _Allocator>&,
150 const basic_string<_CharT, _Traits, _Allocator>&) const;
153 static locale global(const locale&);
154 static const locale& classic();
160 void __install_ctor(const locale&, facet*, long);
162 bool has_facet(id&) const;
163 const facet* use_facet(id&) const;
165 template <class _Facet> friend bool has_facet(const locale&) _NOEXCEPT;
166 template <class _Facet> friend const _Facet& use_facet(const locale&);
179 // facet(const facet&) = delete; // effectively done in __shared_count
180 // void operator=(const facet&) = delete;
195 void operator=(const id&); // = delete;
196 id(const id&); // = delete;
206 locale::locale(const locale& __other, _Facet* __f)
213 locale::combine(const locale& __other) const
224 has_facet(const locale& __l) _NOEXCEPT
231 const _Facet&
232 use_facet(const locale& __l)
234 return static_cast<const _Facet&>(*__l.use_facet(_Facet::id));
252 int compare(const char_type* __lo1, const char_type* __hi1,
253 const char_type* __lo2, const char_type* __hi2) const
259 string_type transform(const char_type* __lo, const char_type* __hi) const
265 long hash(const char_type* __lo, const char_type* __hi) const
274 virtual int do_compare(const char_type* __lo1, const char_type* __hi1,
275 const char_type* __lo2, const char_type* __hi2) const;
276 virtual string_type do_transform(const char_type* __lo, const char_type* __hi) const
278 virtual long do_hash(const char_type* __lo, const char_type* __hi) const;
290 collate<_CharT>::do_compare(const char_type* __lo1, const char_type* __hi1,
291 const char_type* __lo2, const char_type* __hi2) const
305 collate<_CharT>::do_hash(const char_type* __lo, const char_type* __hi) const
308 const size_t __sr = __CHAR_BIT__ * sizeof(size_t) - 8;
309 const size_t __mask = size_t(0xF) << (__sr + 4);
310 for(const char_type* __p = __lo; __p != __hi; ++__p)
335 explicit collate_byname(const char* __n, size_t __refs = 0);
336 explicit collate_byname(const string& __n, size_t __refs = 0);
340 virtual int do_compare(const char_type* __lo1, const char_type* __hi1,
341 const char_type* __lo2, const char_type* __hi2) const;
342 virtual string_type do_transform(const char_type* __lo, const char_type* __hi) const;
354 explicit collate_byname(const char* __n, size_t __refs = 0);
355 explicit collate_byname(const string& __n, size_t __refs = 0);
360 virtual int do_compare(const char_type* __lo1, const char_type* __hi1,
361 const char_type* __lo2, const char_type* __hi2) const;
362 virtual string_type do_transform(const char_type* __lo, const char_type* __hi) const;
367 locale::operator()(const basic_string<_CharT, _Traits, _Allocator>& __x,
368 const basic_string<_CharT, _Traits, _Allocator>& __y) const
382 static const mask space = _ISspace;
383 static const mask print = _ISprint;
384 static const mask cntrl = _IScntrl;
385 static const mask upper = _ISupper;
386 static const mask lower = _ISlower;
387 static const mask alpha = _ISalpha;
388 static const mask digit = _ISdigit;
389 static const mask punct = _ISpunct;
390 static const mask xdigit = _ISxdigit;
391 static const mask blank = _ISblank;
394 static const mask space = _SPACE;
395 static const mask print = _BLANK|_PUNCT|_ALPHA|_DIGIT;
396 static const mask cntrl = _CONTROL;
397 static const mask upper = _UPPER;
398 static const mask lower = _LOWER;
399 static const mask alpha = _ALPHA;
400 static const mask digit = _DIGIT;
401 static const mask punct = _PUNCT;
402 static const mask xdigit = _HEX;
403 static const mask blank = _BLANK;
413 static const mask space = _CTYPE_S;
414 static const mask print = _CTYPE_R;
415 static const mask cntrl = _CTYPE_C;
416 static const mask upper = _CTYPE_U;
417 static const mask lower = _CTYPE_L;
418 static const mask alpha = _CTYPE_A;
419 static const mask digit = _CTYPE_D;
420 static const mask punct = _CTYPE_P;
421 static const mask xdigit = _CTYPE_X;
424 static const mask blank = _CTYPE_BL;
426 static const mask blank = _CTYPE_B;
430 static const mask space = _ISSPACE;
431 static const mask print = _ISPRINT;
432 static const mask cntrl = _ISCNTRL;
433 static const mask upper = _ISUPPER;
434 static const mask lower = _ISLOWER;
435 static const mask alpha = _ISALPHA;
436 static const mask digit = _ISDIGIT;
437 static const mask punct = _ISPUNCT;
438 static const mask xdigit = _ISXDIGIT;
439 static const mask blank = _ISBLANK;
443 static const mask space = _S;
444 static const mask print = _P | _U | _L | _N | _B;
445 static const mask cntrl = _C;
446 static const mask upper = _U;
447 static const mask lower = _L;
448 static const mask alpha = _U | _L;
449 static const mask digit = _N;
450 static const mask punct = _P;
451 static const mask xdigit = _X | _N;
452 static const mask blank = _B;
458 static const mask space = 1<<0;
459 static const mask print = 1<<1;
460 static const mask cntrl = 1<<2;
461 static const mask upper = 1<<3;
462 static const mask lower = 1<<4;
463 static const mask alpha = 1<<5;
464 static const mask digit = 1<<6;
465 static const mask punct = 1<<7;
466 static const mask xdigit = 1<<8;
467 static const mask blank = 1<<9;
469 static const mask alnum = alpha | digit;
470 static const mask graph = alnum | punct;
490 bool is(mask __m, char_type __c) const
496 const char_type* is(const char_type* __low, const char_type* __high, mask* __vec) const
502 const char_type* scan_is(mask __m, const char_type* __low, const char_type* __high) const
508 const char_type* scan_not(mask __m, const char_type* __low, const char_type* __high) const
514 char_type toupper(char_type __c) const
520 const char_type* toupper(char_type* __low, const char_type* __high) const
526 char_type tolower(char_type __c) const
532 const char_type* tolower(char_type* __low, const char_type* __high) const
538 char_type widen(char __c) const
544 const char* widen(const char* __low, const char* __high, char_type* __to) const
550 char narrow(char_type __c, char __dfault) const
556const char_type* narrow(const char_type* __low, const char_type* __high, char __dfault, char* __to…
565 virtual bool do_is(mask __m, char_type __c) const;
566 …virtual const char_type* do_is(const char_type* __low, const char_type* __high, mask* __vec) const;
567 …virtual const char_type* do_scan_is(mask __m, const char_type* __low, const char_type* __high) con…
568 …virtual const char_type* do_scan_not(mask __m, const char_type* __low, const char_type* __high) co…
569 virtual char_type do_toupper(char_type) const;
570 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
571 virtual char_type do_tolower(char_type) const;
572 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
573 virtual char_type do_widen(char) const;
574 virtual const char* do_widen(const char* __low, const char* __high, char_type* __dest) const;
575 virtual char do_narrow(char_type, char __dfault) const;
576 …virtual const char_type* do_narrow(const char_type* __low, const char_type* __high, char __dfault,…
583 const mask* __tab_;
588 explicit ctype(const mask* __tab = 0, bool __del = false, size_t __refs = 0);
591 bool is(mask __m, char_type __c) const
597 const char_type* is(const char_type* __low, const char_type* __high, mask* __vec) const
605 const char_type* scan_is (mask __m, const char_type* __low, const char_type* __high) const
614 const char_type* scan_not(mask __m, const char_type* __low, const char_type* __high) const
623 char_type toupper(char_type __c) const
629 const char_type* toupper(char_type* __low, const char_type* __high) const
635 char_type tolower(char_type __c) const
641 const char_type* tolower(char_type* __low, const char_type* __high) const
647 char_type widen(char __c) const
653 const char* widen(const char* __low, const char* __high, char_type* __to) const
659 char narrow(char_type __c, char __dfault) const
665const char* narrow(const char_type* __low, const char_type* __high, char __dfault, char* __to) con…
673 static const size_t table_size = _CACHED_RUNES;
675 static const size_t table_size = 256; // FIXME: Don't hardcode this.
677 _LIBCPP_INLINE_VISIBILITY const mask* table() const _NOEXCEPT {return __tab_;}
678 static const mask* classic_table() _NOEXCEPT;
680 static const int* __classic_upper_table() _NOEXCEPT;
681 static const int* __classic_lower_table() _NOEXCEPT;
684 static const short* __classic_upper_table() _NOEXCEPT;
685 static const short* __classic_lower_table() _NOEXCEPT;
690 virtual char_type do_toupper(char_type __c) const;
691 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
692 virtual char_type do_tolower(char_type __c) const;
693 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
694 virtual char_type do_widen(char __c) const;
695 virtual const char* do_widen(const char* __low, const char* __high, char_type* __to) const;
696 virtual char do_narrow(char_type __c, char __dfault) const;
697 …virtual const char* do_narrow(const char_type* __low, const char_type* __high, char __dfault, char…
711 explicit ctype_byname(const char*, size_t = 0);
712 explicit ctype_byname(const string&, size_t = 0);
716 virtual char_type do_toupper(char_type) const;
717 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
718 virtual char_type do_tolower(char_type) const;
719 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
729 explicit ctype_byname(const char*, size_t = 0);
730 explicit ctype_byname(const string&, size_t = 0);
734 virtual bool do_is(mask __m, char_type __c) const;
735 …virtual const char_type* do_is(const char_type* __low, const char_type* __high, mask* __vec) const;
736 …virtual const char_type* do_scan_is(mask __m, const char_type* __low, const char_type* __high) con…
737 …virtual const char_type* do_scan_not(mask __m, const char_type* __low, const char_type* __high) co…
738 virtual char_type do_toupper(char_type) const;
739 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
740 virtual char_type do_tolower(char_type) const;
741 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
742 virtual char_type do_widen(char) const;
743 virtual const char* do_widen(const char* __low, const char* __high, char_type* __dest) const;
744 virtual char do_narrow(char_type, char __dfault) const;
745 …virtual const char_type* do_narrow(const char_type* __low, const char_type* __high, char __dfault,…
751 isspace(_CharT __c, const locale& __loc)
759 isprint(_CharT __c, const locale& __loc)
767 iscntrl(_CharT __c, const locale& __loc)
775 isupper(_CharT __c, const locale& __loc)
783 islower(_CharT __c, const locale& __loc)
791 isalpha(_CharT __c, const locale& __loc)
799 isdigit(_CharT __c, const locale& __loc)
807 ispunct(_CharT __c, const locale& __loc)
815 isxdigit(_CharT __c, const locale& __loc)
823 isalnum(_CharT __c, const locale& __loc)
831 isgraph(_CharT __c, const locale& __loc)
839 toupper(_CharT __c, const locale& __loc)
847 tolower(_CharT __c, const locale& __loc)
883const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
884 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
891 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
898 const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
899 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const
905 int encoding() const _NOEXCEPT
911 bool always_noconv() const _NOEXCEPT
917 …int length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const
923 int max_length() const _NOEXCEPT
932 explicit codecvt(const char*, size_t __refs = 0)
938const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
939 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
941const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
942 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const;
944 … extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
945 virtual int do_encoding() const _NOEXCEPT;
946 virtual bool do_always_noconv() const _NOEXCEPT;
947 …virtual int do_length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t…
948 virtual int do_max_length() const _NOEXCEPT;
968const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
969 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
976 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
983 const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
984 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const
990 int encoding() const _NOEXCEPT
996 bool always_noconv() const _NOEXCEPT
1002 …int length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const
1008 int max_length() const _NOEXCEPT
1016 explicit codecvt(const char*, size_t __refs = 0);
1021const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
1022 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1024const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
1025 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const;
1027 … extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1028 virtual int do_encoding() const _NOEXCEPT;
1029 virtual bool do_always_noconv() const _NOEXCEPT;
1030 …virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx…
1031 virtual int do_max_length() const _NOEXCEPT;
1052const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
1053 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
1060 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
1067 const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
1068 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const
1074 int encoding() const _NOEXCEPT
1080 bool always_noconv() const _NOEXCEPT
1086 …int length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const
1092 int max_length() const _NOEXCEPT
1101 explicit codecvt(const char*, size_t __refs = 0)
1107const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
1108 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1110const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
1111 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const;
1113 … extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1114 virtual int do_encoding() const _NOEXCEPT;
1115 virtual bool do_always_noconv() const _NOEXCEPT;
1116 …virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx…
1117 virtual int do_max_length() const _NOEXCEPT;
1138const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
1139 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
1146 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const
1153 const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
1154 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const
1160 int encoding() const _NOEXCEPT
1166 bool always_noconv() const _NOEXCEPT
1172 …int length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const
1178 int max_length() const _NOEXCEPT
1187 explicit codecvt(const char*, size_t __refs = 0)
1193const intern_type* __frm, const intern_type* __frm_end, const intern_type*& __frm_nxt,
1194 extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1196const extern_type* __frm, const extern_type* __frm_end, const extern_type*& __frm_nxt,
1197 intern_type* __to, intern_type* __to_end, intern_type*& __to_nxt) const;
1199 … extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1200 virtual int do_encoding() const _NOEXCEPT;
1201 virtual bool do_always_noconv() const _NOEXCEPT;
1202 …virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx…
1203 virtual int do_max_length() const _NOEXCEPT;
1214 explicit codecvt_byname(const char* __nm, size_t __refs = 0)
1217 explicit codecvt_byname(const string& __nm, size_t __refs = 0)
1233 _LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const char*);
1240 operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const;
1249 operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const
1269 operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const
1275 const int __sz = 32;
1278 const char16_t* __wn = (const char16_t*)__wb;
1279 __r = do_out(__mb, (const char16_t*)__wb, (const char16_t*)__we, __wn,
1281 if (__r == codecvt_base::error || __wn == (const char16_t*)__wb)
1283 for (const char* __p = __buf; __p < __bn; ++__p, ++__s)
1285 __wb = (const _CharT*)__wn;
1303 operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const
1309 const int __sz = 32;
1312 const char32_t* __wn = (const char32_t*)__wb;
1313 __r = do_out(__mb, (const char32_t*)__wb, (const char32_t*)__we, __wn,
1315 if (__r == codecvt_base::error || __wn == (const char32_t*)__wb)
1317 for (const char* __p = __buf; __p < __bn; ++__p, ++__s)
1319 __wb = (const _CharT*)__wn;
1330 operator()(_OutputIterator __s, const char* __nb, const char* __ne) const;
1339 operator()(_OutputIterator __s, const char* __nb, const char* __ne) const
1359 operator()(_OutputIterator __s, const char* __nb, const char* __ne) const
1365 const int __sz = 32;
1368 const char* __nn = __nb;
1373 for (const char16_t* __p = __buf; __p < __bn; ++__p, ++__s)
1393 operator()(_OutputIterator __s, const char* __nb, const char* __ne) const
1399 const int __sz = 32;
1402 const char* __nn = __nb;
1407 for (const char32_t* __p = __buf; __p < __bn; ++__p, ++__s)
1429 _LIBCPP_INLINE_VISIBILITY char_type decimal_point() const {return do_decimal_point();}
1430 _LIBCPP_INLINE_VISIBILITY char_type thousands_sep() const {return do_thousands_sep();}
1431 _LIBCPP_INLINE_VISIBILITY string grouping() const {return do_grouping();}
1432 _LIBCPP_INLINE_VISIBILITY string_type truename() const {return do_truename();}
1433 _LIBCPP_INLINE_VISIBILITY string_type falsename() const {return do_falsename();}
1439 virtual char_type do_decimal_point() const;
1440 virtual char_type do_thousands_sep() const;
1441 virtual string do_grouping() const;
1442 virtual string_type do_truename() const;
1443 virtual string_type do_falsename() const;
1460 _LIBCPP_INLINE_VISIBILITY char_type decimal_point() const {return do_decimal_point();}
1461 _LIBCPP_INLINE_VISIBILITY char_type thousands_sep() const {return do_thousands_sep();}
1462 _LIBCPP_INLINE_VISIBILITY string grouping() const {return do_grouping();}
1463 _LIBCPP_INLINE_VISIBILITY string_type truename() const {return do_truename();}
1464 _LIBCPP_INLINE_VISIBILITY string_type falsename() const {return do_falsename();}
1470 virtual char_type do_decimal_point() const;
1471 virtual char_type do_thousands_sep() const;
1472 virtual string do_grouping() const;
1473 virtual string_type do_truename() const;
1474 virtual string_type do_falsename() const;
1493 explicit numpunct_byname(const char* __nm, size_t __refs = 0);
1494 explicit numpunct_byname(const string& __nm, size_t __refs = 0);
1500 void __init(const char*);
1511 explicit numpunct_byname(const char* __nm, size_t __refs = 0);
1512 explicit numpunct_byname(const string& __nm, size_t __refs = 0);
1518 void __init(const char*);