This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/3017
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] libstdc++/3017
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Mon, 4 Jun 2001 10:50:46 -0700
Partial fix from Brendan, quality of implemenation issue.
2001-06-04 Brendan Kehoe <brendan@zen.org>
* include/bits/locale_facets.h (ctype<_CharT>): Add declarations
for generic ctype virtuals.
Index: include/bits/locale_facets.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/locale_facets.h,v
retrieving revision 1.13
diff -c -p -r1.13 locale_facets.h
*** locale_facets.h 2001/02/19 18:52:24 1.13
--- locale_facets.h 2001/06/04 17:49:24
*************** namespace std
*** 175,180 ****
--- 175,221 ----
protected:
virtual
~ctype() { }
+
+ virtual bool
+ do_is(mask __m, char_type __c) const;
+
+ virtual const char_type*
+ do_is(const char_type* __lo, const char_type* __hi,
+ mask* __vec) const;
+
+ virtual const char_type*
+ do_scan_is(mask __m, const char_type* __lo,
+ const char_type* __hi) const;
+
+ virtual const char_type*
+ do_scan_not(mask __m, const char_type* __lo,
+ const char_type* __hi) const;
+
+ virtual char_type
+ do_toupper(char_type) const;
+
+ virtual const char_type*
+ do_toupper(char_type* __low, const char_type* __high) const;
+
+ virtual char_type
+ do_tolower(char_type) const;
+
+ virtual const char_type*
+ do_tolower(char_type* __low, const char_type* __high) const;
+
+ virtual char_type
+ do_widen(char) const;
+
+ virtual const char*
+ do_widen(const char* __low, const char* __high,
+ char_type* __dest) const;
+
+ virtual char
+ do_narrow(char_type, char __dfault) const;
+
+ virtual const char_type*
+ do_narrow(const char_type* __low, const char_type* __high,
+ char __dfault, char* __dest) const;
};
template<typename _CharT>