1 <section xmlns="http://docbook.org/ns/docbook" version="5.0"
2 xml:id="std.localization.facet.ctype" xreflabel="ctype">
3 <?dbhtml filename="ctype.html"?>
5 <info><title>ctype</title>
7 <keyword>ISO C++</keyword>
8 <keyword>ctype</keyword>
14 <section xml:id="facet.ctype.impl"><info><title>Implementation</title></info>
17 <section><info><title>Specializations</title></info>
21 For the required specialization codecvt<wchar_t, char, mbstate_t> ,
22 conversions are made between the internal character set (always UCS4
23 on GNU/Linux) and whatever the currently selected locale for the
24 LC_CTYPE category implements.
28 The two required specializations are implemented as follows:
37 This is simple specialization. Implementing this was a piece of cake.
46 This specialization, by specifying all the template parameters, pretty
47 much ties the hands of implementors. As such, the implementation is
48 straightforward, involving mcsrtombs for the conversions between char
49 to wchar_t and wcsrtombs for conversions between wchar_t and char.
53 Neither of these two required specializations deals with Unicode
60 <section xml:id="facet.ctype.future"><info><title>Future</title></info>
67 How to deal with the global locale issue?
72 How to deal with different types than char, wchar_t? </para></listitem>
75 Overlap between codecvt/ctype: narrow/widen
80 Mask typedef in codecvt_base, argument types in codecvt. what
81 is know about this type?
86 Why mask* argument in codecvt?
91 Can this be made (more) generic? is there a simple way to
92 straighten out the configure-time mess that is a by-product of
98 Get the ctype<wchar_t>::mask stuff under control. Need to
99 make some kind of static table, and not do lookup every time
100 somebody hits the do_is... functions. Too bad we can't just
101 redefine mask for ctype<wchar_t>
106 Rename abstract base class. See if just smash-overriding is a
107 better approach. Clarify, add sanity to naming.
117 <bibliography xml:id="facet.ctype.biblio"><info><title>Bibliography</title></info>
124 <author><personname><surname>McGrath</surname><firstname>Roland</firstname></personname></author>
125 <author><personname><surname>Drepper</surname><firstname>Ulrich</firstname></personname></author>
130 <pagenums>Chapters 6 Character Set Handling and 7 Locales and Internationalization</pagenums>
137 <author><personname><surname>Drepper</surname><firstname>Ulrich</firstname></personname></author>
146 ISO/IEC 14882:1998 Programming languages - C++
156 ISO/IEC 9899:1999 Programming languages - C
166 <link xmlns:xlink="http://www.w3.org/1999/xlink"
167 xlink:href="http://www.unix.org/version3/ieee_std.html">
168 The Open Group Base Specifications, Issue 6 (IEEE Std. 1003.1-2004)
175 The Open Group/The Institute of Electrical and Electronics Engineers, Inc.</holder>
181 The C++ Programming Language, Special Edition
183 <author><personname><surname>Stroustrup</surname><firstname>Bjarne</firstname></personname></author>
186 <holder>Addison Wesley, Inc.</holder>
188 <pagenums>Appendix D</pagenums>
198 Standard C++ IOStreams and Locales
201 Advanced Programmer's Guide and Reference
203 <author><personname><surname>Langer</surname><firstname>Angelika</firstname></personname></author>
204 <author><personname><surname>Kreft</surname><firstname>Klaus</firstname></personname></author>
207 <holder>Addison Wesley Longman, Inc.</holder>
211 Addison Wesley Longman