Lines Matching full:const

45 _LIBCPP_HIDE_FROM_ABI bool has_facet(const locale&) _NOEXCEPT;
48 _LIBCPP_HIDE_FROM_ABI const _Facet& use_facet(const locale&);
61 static const category // values assigned here are for exposition only
68 locale(const locale&) _NOEXCEPT;
69 explicit locale(const char*);
70 explicit locale(const string&);
71 locale(const locale&, const char*, category);
72 locale(const locale&, const string&, category);
74 _LIBCPP_HIDE_FROM_ABI locale(const locale&, _Facet*);
75 locale(const locale&, const locale&, category);
79 const locale& operator=(const locale&) _NOEXCEPT;
82 _LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS locale combine(const locale&) const;
85 string name() const;
86 bool operator==(const locale&) const;
88 _LIBCPP_HIDE_FROM_ABI bool operator!=(const locale& __y) const { return !(*this == __y); }
92 operator()(const basic_string<_CharT, _Traits, _Allocator>&, const basic_string<_CharT, _Traits, _Allocator>&) const;
95 static locale global(const locale&);
96 static const locale& classic();
106 void __install_ctor(const locale&, facet*, long);
108 bool has_facet(id&) const;
109 const facet* use_facet(id&) const;
112 friend bool has_facet(const locale&) _NOEXCEPT;
114 friend const _Facet& use_facet(const locale&);
123 // facet(const facet&) = delete; // effectively done in __shared_count
124 // void operator=(const facet&) = delete;
138 void operator=(const id&) = delete;
139 id(const id&) = delete;
149 inline _LIBCPP_HIDE_FROM_ABI locale::locale(const locale& __other, _Facet* __f) {
154 locale locale::combine(const locale& __other) const {
162 inline _LIBCPP_HIDE_FROM_ABI bool has_facet(const locale& __l) _NOEXCEPT {
167 inline _LIBCPP_HIDE_FROM_ABI const _Facet& use_facet(const locale& __l) {
168 return static_cast<const _Facet&>(*__l.use_facet(_Facet::id));
182 compare(const char_type* __lo1, const char_type* __hi1, const char_type* __lo2, const char_type* __hi2) const {
189 transform(const char_type* __lo, const char_type* __hi) const {
193 _LIBCPP_HIDE_FROM_ABI long hash(const char_type* __lo, const char_type* __hi) const { return do_hash(__lo, __hi); }
200 do_compare(const char_type* __lo1, const char_type* __hi1, const char_type* __lo2, const char_type* __hi2) const;
201 virtual string_type do_transform(const char_type* __lo, const char_type* __hi) const {
204 virtual long do_hash(const char_type* __lo, const char_type* __hi) const;
215 const char_type* __lo1, const char_type* __hi1, const char_type* __lo2, const char_type* __hi2) const {
226 long collate<_CharT>::do_hash(const char_type* __lo, const char_type* __hi) const {
228 const size_t __sr = __CHAR_BIT__ * sizeof(size_t) - 8;
229 const size_t __mask = size_t(0xF) << (__sr + 4);
230 for (const char_type* __p = __lo; __p != __hi; ++__p) {
256 explicit collate_byname(const char* __n, size_t __refs = 0);
257 explicit collate_byname(const string& __n, size_t __refs = 0);
262 const char_type* __lo1, const char_type* __hi1, const char_type* __lo2, const char_type* __hi2) const override;
263 string_type do_transform(const char_type* __lo, const char_type* __hi) const override;
275 explicit collate_byname(const char* __n, size_t __refs = 0);
276 explicit collate_byname(const string& __n, size_t __refs = 0);
282 const char_type* __lo1, const char_type* __hi1, const char_type* __lo2, const char_type* __hi2) const override;
283 string_type do_transform(const char_type* __lo, const char_type* __hi) const override;
288 bool locale::operator()(const basic_string<_CharT, _Traits, _Allocator>& __x,
289 const basic_string<_CharT, _Traits, _Allocator>& __y) const {
300 static const mask space = 1 << 0;
301 static const mask print = 1 << 1;
302 static const mask cntrl = 1 << 2;
303 static const mask upper = 1 << 3;
304 static const mask lower = 1 << 4;
305 static const mask alpha = 1 << 5;
306 static const mask digit = 1 << 6;
307 static const mask punct = 1 << 7;
308 static const mask xdigit = 1 << 8;
309 static const mask blank = 1 << 9;
313 static const mask __regex_word = 0x8000;
315 static const mask __regex_word = 1 << 10;
319 static const mask space = _ISspace;
320 static const mask print = _ISprint;
321 static const mask cntrl = _IScntrl;
322 static const mask upper = _ISupper;
323 static const mask lower = _ISlower;
324 static const mask alpha = _ISalpha;
325 static const mask digit = _ISdigit;
326 static const mask punct = _ISpunct;
327 static const mask xdigit = _ISxdigit;
328 static const mask blank = _ISblank;
330 static const mask __regex_word = static_cast<mask>(_ISbit(15));
332 static const mask __regex_word = 0x80;
336 static const mask space = _SPACE;
337 static const mask print = _BLANK | _PUNCT | _ALPHA | _DIGIT;
338 static const mask cntrl = _CONTROL;
339 static const mask upper = _UPPER;
340 static const mask lower = _LOWER;
341 static const mask alpha = _ALPHA;
342 static const mask digit = _DIGIT;
343 static const mask punct = _PUNCT;
344 static const mask xdigit = _HEX;
345 static const mask blank = _BLANK;
346 static const mask __regex_word = 0x4000; // 0x8000 and 0x0100 and 0x00ff are used
357 static const mask space = _CTYPE_S;
358 static const mask print = _CTYPE_R;
359 static const mask cntrl = _CTYPE_C;
360 static const mask upper = _CTYPE_U;
361 static const mask lower = _CTYPE_L;
362 static const mask alpha = _CTYPE_A;
363 static const mask digit = _CTYPE_D;
364 static const mask punct = _CTYPE_P;
365 static const mask xdigit = _CTYPE_X;
368 static const mask blank = _CTYPE_BL;
371 static const mask __regex_word = 0x8000;
373 static const mask blank = _CTYPE_B;
374 static const mask __regex_word = 0x80;
378 static const mask space = _ISSPACE;
379 static const mask print = _ISPRINT;
380 static const mask cntrl = _ISCNTRL;
381 static const mask upper = _ISUPPER;
382 static const mask lower = _ISLOWER;
383 static const mask alpha = _ISALPHA;
384 static const mask digit = _ISDIGIT;
385 static const mask punct = _ISPUNCT;
386 static const mask xdigit = _ISXDIGIT;
387 static const mask blank = _ISBLANK;
388 static const mask __regex_word = 0x8000;
394 static const mask space = static_cast<mask>(_S);
395 static const mask print = static_cast<mask>(_P | _U | _L | _N | _B);
396 static const mask cntrl = static_cast<mask>(_C);
397 static const mask upper = static_cast<mask>(_U);
398 static const mask lower = static_cast<mask>(_L);
399 static const mask alpha = static_cast<mask>(_U | _L);
400 static const mask digit = static_cast<mask>(_N);
401 static const mask punct = static_cast<mask>(_P);
402 static const mask xdigit = static_cast<mask>(_X | _N);
403 static const mask blank = static_cast<mask>(_B);
405 static const unsigned short __regex_word = 0x100;
412 static const mask space = _ISSPACE_A;
413 static const mask print = _ISPRINT_A;
414 static const mask cntrl = _ISCNTRL_A;
415 static const mask upper = _ISUPPER_A;
416 static const mask lower = _ISLOWER_A;
417 static const mask alpha = _ISALPHA_A;
418 static const mask digit = _ISDIGIT_A;
419 static const mask punct = _ISPUNCT_A;
420 static const mask xdigit = _ISXDIGIT_A;
421 static const mask blank = _ISBLANK_A;
424 static const mask space = __ISSPACE;
425 static const mask print = __ISPRINT;
426 static const mask cntrl = __ISCNTRL;
427 static const mask upper = __ISUPPER;
428 static const mask lower = __ISLOWER;
429 static const mask alpha = __ISALPHA;
430 static const mask digit = __ISDIGIT;
431 static const mask punct = __ISPUNCT;
432 static const mask xdigit = __ISXDIGIT;
433 static const mask blank = __ISBLANK;
435 static const mask __regex_word = 0x8000;
439 static const mask alnum = alpha | digit;
440 static const mask graph = alnum | punct;
460 _LIBCPP_HIDE_FROM_ABI bool is(mask __m, char_type __c) const { return do_is(__m, __c); }
462 _LIBCPP_HIDE_FROM_ABI const char_type* is(const char_type* __low, const char_type* __high, mask* __vec) const {
466 _LIBCPP_HIDE_FROM_ABI const char_type* scan_is(mask __m, const char_type* __low, const char_type* __high) const {
470 _LIBCPP_HIDE_FROM_ABI const char_type* scan_not(mask __m, const char_type* __low, const char_type* __high) const {
474 _LIBCPP_HIDE_FROM_ABI char_type toupper(char_type __c) const { return do_toupper(__c); }
476 _LIBCPP_HIDE_FROM_ABI const char_type* toupper(char_type* __low, const char_type* __high) const {
480 _LIBCPP_HIDE_FROM_ABI char_type tolower(char_type __c) const { return do_tolower(__c); }
482 _LIBCPP_HIDE_FROM_ABI const char_type* tolower(char_type* __low, const char_type* __high) const {
486 _LIBCPP_HIDE_FROM_ABI char_type widen(char __c) const { return do_widen(__c); }
488 _LIBCPP_HIDE_FROM_ABI const char* widen(const char* __low, const char* __high, char_type* __to) const {
492 _LIBCPP_HIDE_FROM_ABI char narrow(char_type __c, char __dfault) const { return do_narrow(__c, __dfault); }
494 _LIBCPP_HIDE_FROM_ABI const char_type*
495 narrow(const char_type* __low, const char_type* __high, char __dfault, char* __to) const {
503 virtual bool do_is(mask __m, char_type __c) const;
504 virtual const char_type* do_is(const char_type* __low, const char_type* __high, mask* __vec) const;
505 virtual const char_type* do_scan_is(mask __m, const char_type* __low, const char_type* __high) const;
506 virtual const char_type* do_scan_not(mask __m, const char_type* __low, const char_type* __high) const;
507 virtual char_type do_toupper(char_type) const;
508 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
509 virtual char_type do_tolower(char_type) const;
510 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
511 virtual char_type do_widen(char) const;
512 virtual const char* do_widen(const char* __low, const char* __high, char_type* __dest) const;
513 virtual char do_narrow(char_type, char __dfault) const;
514 virtual const char_type*
515 do_narrow(const char_type* __low, const char_type* __high, char __dfault, char* __dest) const;
521 const mask* __tab_;
527 explicit ctype(const mask* __tab = nullptr, bool __del = false, size_t __refs = 0);
529 _LIBCPP_HIDE_FROM_ABI bool is(mask __m, char_type __c) const {
533 _LIBCPP_HIDE_FROM_ABI const char_type* is(const char_type* __low, const char_type* __high, mask* __vec) const {
539 _LIBCPP_HIDE_FROM_ABI const char_type* scan_is(mask __m, const char_type* __low, const char_type* __high) const {
546 _LIBCPP_HIDE_FROM_ABI const char_type* scan_not(mask __m, const char_type* __low, const char_type* __high) const {
553 _LIBCPP_HIDE_FROM_ABI char_type toupper(char_type __c) const { return do_toupper(__c); }
555 _LIBCPP_HIDE_FROM_ABI const char_type* toupper(char_type* __low, const char_type* __high) const {
559 _LIBCPP_HIDE_FROM_ABI char_type tolower(char_type __c) const { return do_tolower(__c); }
561 _LIBCPP_HIDE_FROM_ABI const char_type* tolower(char_type* __low, const char_type* __high) const {
565 _LIBCPP_HIDE_FROM_ABI char_type widen(char __c) const { return do_widen(__c); }
567 _LIBCPP_HIDE_FROM_ABI const char* widen(const char* __low, const char* __high, char_type* __to) const {
571 _LIBCPP_HIDE_FROM_ABI char narrow(char_type __c, char __dfault) const { return do_narrow(__c, __dfault); }
573 _LIBCPP_HIDE_FROM_ABI const char*
574 narrow(const char_type* __low, const char_type* __high, char __dfault, char* __to) const {
581 static const size_t table_size = _CACHED_RUNES;
583 static const size_t table_size = 256; // FIXME: Don't hardcode this.
585 _LIBCPP_HIDE_FROM_ABI const mask* table() const _NOEXCEPT { return __tab_; }
586 static const mask* classic_table() _NOEXCEPT;
588 static const int* __classic_upper_table() _NOEXCEPT;
589 static const int* __classic_lower_table() _NOEXCEPT;
592 static const short* __classic_upper_table() _NOEXCEPT;
593 static const short* __classic_lower_table() _NOEXCEPT;
596 static const unsigned short* __classic_upper_table() _NOEXCEPT;
597 static const unsigned short* __classic_lower_table() _NOEXCEPT;
602 virtual char_type do_toupper(char_type __c) const;
603 virtual const char_type* do_toupper(char_type* __low, const char_type* __high) const;
604 virtual char_type do_tolower(char_type __c) const;
605 virtual const char_type* do_tolower(char_type* __low, const char_type* __high) const;
606 virtual char_type do_widen(char __c) const;
607 virtual const char* do_widen(const char* __low, const char* __high, char_type* __to) const;
608 virtual char do_narrow(char_type __c, char __dfault) const;
609 virtual const char* do_narrow(const char_type* __low, const char_type* __high, char __dfault, char* __to) const;
622 explicit ctype_byname(const char*, size_t = 0);
623 explicit ctype_byname(const string&, size_t = 0);
627 char_type do_toupper(char_type) const override;
628 const char_type* do_toupper(char_type* __low, const char_type* __high) const override;
629 char_type do_tolower(char_type) const override;
630 const char_type* do_tolower(char_type* __low, const char_type* __high) const override;
639 explicit ctype_byname(const char*, size_t = 0);
640 explicit ctype_byname(const string&, size_t = 0);
644 bool do_is(mask __m, char_type __c) const override;
645 const char_type* do_is(const char_type* __low, const char_type* __high, mask* __vec) const override;
646 const char_type* do_scan_is(mask __m, const char_type* __low, const char_type* __high) const override;
647 const char_type* do_scan_not(mask __m, const char_type* __low, const char_type* __high) const override;
648 char_type do_toupper(char_type) const override;
649 const char_type* do_toupper(char_type* __low, const char_type* __high) const override;
650 char_type do_tolower(char_type) const override;
651 const char_type* do_tolower(char_type* __low, const char_type* __high) const override;
652 char_type do_widen(char) const override;
653 const char* do_widen(const char* __low, const char* __high, char_type* __dest) const override;
654 char do_narrow(char_type, char __dfault) const override;
655 const char_type*
656 do_narrow(const char_type* __low, const char_type* __high, char __dfault, char* __dest) const override;
661 inline _LIBCPP_HIDE_FROM_ABI bool isspace(_CharT __c, const locale& __loc) {
666 inline _LIBCPP_HIDE_FROM_ABI bool isprint(_CharT __c, const locale& __loc) {
671 inline _LIBCPP_HIDE_FROM_ABI bool iscntrl(_CharT __c, const locale& __loc) {
676 inline _LIBCPP_HIDE_FROM_ABI bool isupper(_CharT __c, const locale& __loc) {
681 inline _LIBCPP_HIDE_FROM_ABI bool islower(_CharT __c, const locale& __loc) {
686 inline _LIBCPP_HIDE_FROM_ABI bool isalpha(_CharT __c, const locale& __loc) {
691 inline _LIBCPP_HIDE_FROM_ABI bool isdigit(_CharT __c, const locale& __loc) {
696 inline _LIBCPP_HIDE_FROM_ABI bool ispunct(_CharT __c, const locale& __loc) {
701 inline _LIBCPP_HIDE_FROM_ABI bool isxdigit(_CharT __c, const locale& __loc) {
706 inline _LIBCPP_HIDE_FROM_ABI bool isalnum(_CharT __c, const locale& __loc) {
711 inline _LIBCPP_HIDE_FROM_ABI bool isgraph(_CharT __c, const locale& __loc) {
716 _LIBCPP_HIDE_FROM_ABI bool isblank(_CharT __c, const locale& __loc) {
721 inline _LIBCPP_HIDE_FROM_ABI _CharT toupper(_CharT __c, const locale& __loc) {
726 inline _LIBCPP_HIDE_FROM_ABI _CharT tolower(_CharT __c, const locale& __loc) {
756 const intern_type* __frm,
757 const intern_type* __frm_end,
758 const intern_type*& __frm_nxt,
761 extern_type*& __to_nxt) const {
766 unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const {
772 const extern_type* __frm,
773 const extern_type* __frm_end,
774 const extern_type*& __frm_nxt,
777 intern_type*& __to_nxt) const {
781 _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
783 _LIBCPP_HIDE_FROM_ABI bool always_noconv() const _NOEXCEPT { return do_always_noconv(); }
786 length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const {
790 _LIBCPP_HIDE_FROM_ABI int max_length() const _NOEXCEPT { return do_max_length(); }
795 _LIBCPP_HIDE_FROM_ABI explicit codecvt(const char*, size_t __refs = 0) : locale::facet(__refs) {}
801 const intern_type* __frm,
802 const intern_type* __frm_end,
803 const intern_type*& __frm_nxt,
806 extern_type*& __to_nxt) const;
809 const extern_type* __frm,
810 const extern_type* __frm_end,
811 const extern_type*& __frm_nxt,
814 intern_type*& __to_nxt) const;
815 virtual result do_unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
816 virtual int do_encoding() const _NOEXCEPT;
817 virtual bool do_always_noconv() const _NOEXCEPT;
818 virtual int do_length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const;
819 virtual int do_max_length() const _NOEXCEPT;
838 const intern_type* __frm,
839 const intern_type* __frm_end,
840 const intern_type*& __frm_nxt,
843 extern_type*& __to_nxt) const {
848 unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const {
854 const extern_type* __frm,
855 const extern_type* __frm_end,
856 const extern_type*& __frm_nxt,
859 intern_type*& __to_nxt) const {
863 _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
865 _LIBCPP_HIDE_FROM_ABI bool always_noconv() const _NOEXCEPT { return do_always_noconv(); }
868 length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const {
872 _LIBCPP_HIDE_FROM_ABI int max_length() const _NOEXCEPT { return do_max_length(); }
877 explicit codecvt(const char*, size_t __refs = 0);
883 const intern_type* __frm,
884 const intern_type* __frm_end,
885 const intern_type*& __frm_nxt,
888 extern_type*& __to_nxt) const;
891 const extern_type* __frm,
892 const extern_type* __frm_end,
893 const extern_type*& __frm_nxt,
896 intern_type*& __to_nxt) const;
897 virtual result do_unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
898 virtual int do_encoding() const _NOEXCEPT;
899 virtual bool do_always_noconv() const _NOEXCEPT;
900 virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx) const;
901 virtual int do_max_length() const _NOEXCEPT;
919 const intern_type* __frm,
920 const intern_type* __frm_end,
921 const intern_type*& __frm_nxt,
924 extern_type*& __to_nxt) const {
929 unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const {
935 const extern_type* __frm,
936 const extern_type* __frm_end,
937 const extern_type*& __frm_nxt,
940 intern_type*& __to_nxt) const {
944 _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
946 _LIBCPP_HIDE_FROM_ABI bool always_noconv() const _NOEXCEPT { return do_always_noconv(); }
949 length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const {
953 _LIBCPP_HIDE_FROM_ABI int max_length() const _NOEXCEPT { return do_max_length(); }
958 _LIBCPP_HIDE_FROM_ABI explicit codecvt(const char*, size_t __refs = 0) : locale::facet(__refs) {}
964 const intern_type* __frm,
965 const intern_type* __frm_end,
966 const intern_type*& __frm_nxt,
969 extern_type*& __to_nxt) const;
972 const extern_type* __frm,
973 const extern_type* __frm_end,
974 const extern_type*& __frm_nxt,
977 intern_type*& __to_nxt) const;
978 virtual result do_unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
979 virtual int do_encoding() const _NOEXCEPT;
980 virtual bool do_always_noconv() const _NOEXCEPT;
981 virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx) const;
982 virtual int do_max_length() const _NOEXCEPT;
1000 const intern_type* __frm,
1001 const intern_type* __frm_end,
1002 const intern_type*& __frm_nxt,
1005 extern_type*& __to_nxt) const {
1010 unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const {
1016 const extern_type* __frm,
1017 const extern_type* __frm_end,
1018 const extern_type*& __frm_nxt,
1021 intern_type*& __to_nxt) const {
1025 _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
1027 _LIBCPP_HIDE_FROM_ABI bool always_noconv() const _NOEXCEPT { return do_always_noconv(); }
1030 length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const {
1034 _LIBCPP_HIDE_FROM_ABI int max_length() const _NOEXCEPT { return do_max_length(); }
1039 _LIBCPP_HIDE_FROM_ABI explicit codecvt(const char*, size_t __refs = 0) : locale::facet(__refs) {}
1045 const intern_type* __frm,
1046 const intern_type* __frm_end,
1047 const intern_type*& __frm_nxt,
1050 extern_type*& __to_nxt) const;
1053 const extern_type* __frm,
1054 const extern_type* __frm_end,
1055 const extern_type*& __frm_nxt,
1058 intern_type*& __to_nxt) const;
1059 virtual result do_unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1060 virtual int do_encoding() const _NOEXCEPT;
1061 virtual bool do_always_noconv() const _NOEXCEPT;
1062 virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx) const;
1063 virtual int do_max_length() const _NOEXCEPT;
1082 const intern_type* __frm,
1083 const intern_type* __frm_end,
1084 const intern_type*& __frm_nxt,
1087 extern_type*& __to_nxt) const {
1092 unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const {
1098 const extern_type* __frm,
1099 const extern_type* __frm_end,
1100 const extern_type*& __frm_nxt,
1103 intern_type*& __to_nxt) const {
1107 _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
1109 _LIBCPP_HIDE_FROM_ABI bool always_noconv() const _NOEXCEPT { return do_always_noconv(); }
1112 length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const {
1116 _LIBCPP_HIDE_FROM_ABI int max_length() const _NOEXCEPT { return do_max_length(); }
1121 _LIBCPP_HIDE_FROM_ABI explicit codecvt(const char*, size_t __refs = 0) : locale::facet(__refs) {}
1127 const intern_type* __frm,
1128 const intern_type* __frm_end,
1129 const intern_type*& __frm_nxt,
1132 extern_type*& __to_nxt) const;
1135 const extern_type* __frm,
1136 const extern_type* __frm_end,
1137 const extern_type*& __frm_nxt,
1140 intern_type*& __to_nxt) const;
1141 virtual result do_unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1142 virtual int do_encoding() const _NOEXCEPT;
1143 virtual bool do_always_noconv() const _NOEXCEPT;
1144 virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx) const;
1145 virtual int do_max_length() const _NOEXCEPT;
1163 const intern_type* __frm,
1164 const intern_type* __frm_end,
1165 const intern_type*& __frm_nxt,
1168 extern_type*& __to_nxt) const {
1173 unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const {
1179 const extern_type* __frm,
1180 const extern_type* __frm_end,
1181 const extern_type*& __frm_nxt,
1184 intern_type*& __to_nxt) const {
1188 _LIBCPP_HIDE_FROM_ABI int encoding() const _NOEXCEPT { return do_encoding(); }
1190 _LIBCPP_HIDE_FROM_ABI bool always_noconv() const _NOEXCEPT { return do_always_noconv(); }
1193 length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const {
1197 _LIBCPP_HIDE_FROM_ABI int max_length() const _NOEXCEPT { return do_max_length(); }
1202 _LIBCPP_HIDE_FROM_ABI explicit codecvt(const char*, size_t __refs = 0) : locale::facet(__refs) {}
1208 const intern_type* __frm,
1209 const intern_type* __frm_end,
1210 const intern_type*& __frm_nxt,
1213 extern_type*& __to_nxt) const;
1216 const extern_type* __frm,
1217 const extern_type* __frm_end,
1218 const extern_type*& __frm_nxt,
1221 intern_type*& __to_nxt) const;
1222 virtual result do_unshift(state_type& __st, extern_type* __to, extern_type* __to_end, extern_type*& __to_nxt) const;
1223 virtual int do_encoding() const _NOEXCEPT;
1224 virtual bool do_always_noconv() const _NOEXCEPT;
1225 virtual int do_length(state_type&, const extern_type* __frm, const extern_type* __end, size_t __mx) const;
1226 virtual int do_max_length() const _NOEXCEPT;
1236 _LIBCPP_HIDE_FROM_ABI explicit codecvt_byname(const char* __nm, size_t __refs = 0)
1238 _LIBCPP_HIDE_FROM_ABI explicit codecvt_byname(const string& __nm, size_t __refs = 0)
1266 _OutputIterator operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const;
1272 _LIBCPP_HIDE_FROM_ABI _OutputIterator operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const {
1288 _LIBCPP_HIDE_FROM_ABI _OutputIterator operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const {
1292 const int __sz = 32;
1295 const char16_t* __wn = (const char16_t*)__wb;
1296 __r = do_out(__mb, (const char16_t*)__wb, (const char16_t*)__we, __wn, __buf, __buf + __sz, __bn);
1297 if (__r == codecvt_base::error || __wn == (const char16_t*)__wb)
1299 for (const char* __p = __buf; __p < __bn; ++__p, ++__s)
1301 __wb = (const _CharT*)__wn;
1316 _LIBCPP_HIDE_FROM_ABI _OutputIterator operator()(_OutputIterator __s, const _CharT* __wb, const _CharT* __we) const {
1320 const int __sz = 32;
1323 const char32_t* __wn = (const char32_t*)__wb;
1324 __r = do_out(__mb, (const char32_t*)__wb, (const char32_t*)__we, __wn, __buf, __buf + __sz, __bn);
1325 if (__r == codecvt_base::error || __wn == (const char32_t*)__wb)
1327 for (const char* __p = __buf; __p < __bn; ++__p, ++__s)
1329 __wb = (const _CharT*)__wn;
1338 _OutputIterator operator()(_OutputIterator __s, const char* __nb, const char* __ne) const;
1344 _LIBCPP_HIDE_FROM_ABI _OutputIterator operator()(_OutputIterator __s, const char* __nb, const char* __ne) const {
1360 _LIBCPP_HIDE_FROM_ABI _OutputIterator operator()(_OutputIterator __s, const char* __nb, const char* __ne) const {
1364 const int __sz = 32;
1367 const char* __nn = __nb;
1371 for (const char16_t* __p = __buf; __p < __bn; ++__p, ++__s)
1388 _LIBCPP_HIDE_FROM_ABI _OutputIterator operator()(_OutputIterator __s, const char* __nb, const char* __ne) const {
1392 const int __sz = 32;
1395 const char* __nn = __nb;
1399 for (const char32_t* __p = __buf; __p < __bn; ++__p, ++__s)
1420 _LIBCPP_HIDE_FROM_ABI char_type decimal_point() const { return do_decimal_point(); }
1421 _LIBCPP_HIDE_FROM_ABI char_type thousands_sep() const { return do_thousands_sep(); }
1422 _LIBCPP_HIDE_FROM_ABI string grouping() const { return do_grouping(); }
1423 _LIBCPP_HIDE_FROM_ABI string_type truename() const { return do_truename(); }
1424 _LIBCPP_HIDE_FROM_ABI string_type falsename() const { return do_falsename(); }
1430 virtual char_type do_decimal_point() const;
1431 virtual char_type do_thousands_sep() const;
1432 virtual string do_grouping() const;
1433 virtual string_type do_truename() const;
1434 virtual string_type do_falsename() const;
1450 _LIBCPP_HIDE_FROM_ABI char_type decimal_point() const { return do_decimal_point(); }
1451 _LIBCPP_HIDE_FROM_ABI char_type thousands_sep() const { return do_thousands_sep(); }
1452 _LIBCPP_HIDE_FROM_ABI string grouping() const { return do_grouping(); }
1453 _LIBCPP_HIDE_FROM_ABI string_type truename() const { return do_truename(); }
1454 _LIBCPP_HIDE_FROM_ABI string_type falsename() const { return do_falsename(); }
1460 virtual char_type do_decimal_point() const;
1461 virtual char_type do_thousands_sep() const;
1462 virtual string do_grouping() const;
1463 virtual string_type do_truename() const;
1464 virtual string_type do_falsename() const;
1483 explicit numpunct_byname(const char* __nm, size_t __refs = 0);
1484 explicit numpunct_byname(const string& __nm, size_t __refs = 0);
1490 void __init(const char*);
1500 explicit numpunct_byname(const char* __nm, size_t __refs = 0);
1501 explicit numpunct_byname(const string& __nm, size_t __refs = 0);
1507 void __init(const char*);