1 <sect1 id="manual.localization.facet.ctype" xreflabel="ctype">
2 <?dbhtml filename="ctype.html"?>
17 <sect2 id="facet.ctype.impl" xreflabel="facet.ctype.impl">
18 <title>Implementation</title>
21 <title>Specializations</title>
24 For the required specialization codecvt<wchar_t, char, mbstate_t> ,
25 conversions are made between the internal character set (always UCS4
26 on GNU/Linux) and whatever the currently selected locale for the
27 LC_CTYPE category implements.
31 The two required specializations are implemented as follows:
40 This is simple specialization. Implementing this was a piece of cake.
49 This specialization, by specifying all the template parameters, pretty
50 much ties the hands of implementors. As such, the implementation is
51 straightforward, involving mcsrtombs for the conversions between char
52 to wchar_t and wcsrtombs for conversions between wchar_t and char.
56 Neither of these two required specializations deals with Unicode
63 <sect2 id="facet.ctype.future" xreflabel="facet.ctype.future">
70 How to deal with the global locale issue?
75 How to deal with different types than char, wchar_t? </para></listitem>
78 Overlap between codecvt/ctype: narrow/widen
83 Mask typedef in codecvt_base, argument types in codecvt. what
84 is know about this type?
89 Why mask* argument in codecvt?
94 Can this be made (more) generic? is there a simple way to
95 straighten out the configure-time mess that is a by-product of
101 Get the ctype<wchar_t>::mask stuff under control. Need to
102 make some kind of static table, and not do lookup every time
103 somebody hits the do_is... functions. Too bad we can't just
104 redefine mask for ctype<wchar_t>
109 Rename abstract base class. See if just smash-overriding is a
110 better approach. Clarify, add sanity to naming.
120 <bibliography id="facet.ctype.biblio" xreflabel="facet.ctype.biblio">
121 <title>Bibliography</title>
129 <surname>McGrath</surname>
130 <firstname>Roland</firstname>
133 <surname>Drepper</surname>
134 <firstname>Ulrich</firstname>
141 <pagenums>Chapters 6 Character Set Handling and 7 Locales and Internationalization</pagenums>
151 <surname>Drepper</surname>
152 <firstname>Ulrich</firstname>
163 ISO/IEC 14882:1998 Programming languages - C++
174 ISO/IEC 9899:1999 Programming languages - C
185 System Interface Definitions, Issue 6 (IEEE Std. 1003.1-200x)
191 The Open Group/The Institute of Electrical and Electronics Engineers, Inc.</holder>
195 <ulink url="http://www.opennc.org/austin/docreg.html">
203 The C++ Programming Language, Special Edition
207 <surname>Stroustrup</surname>
208 <firstname>Bjarne</firstname>
213 <holder>Addison Wesley, Inc.</holder>
215 <pagenums>Appendix D</pagenums>
228 Standard C++ IOStreams and Locales
231 Advanced Programmer's Guide and Reference
235 <surname>Langer</surname>
236 <firstname>Angelika</firstname>
240 <surname>Kreft</surname>
241 <firstname>Klaus</firstname>
246 <holder>Addison Wesley Longman, Inc.</holder>
251 Addison Wesley Longman