Apache C++ Standard Library User's Guide
Chapter 40: Defining A Code Conversion Facet
40.1 Overview
40.2 Categories of Code Conversions
40.3 Example 1: Defining a Narrow Character Code Conversion (ASCII <-> EBCDIC)
40.3.1 Derive a New Facet Type
40.3.2 Specialize the New Facet Type and Implement the Member Functions
40.3.3 Use the New Code Conversion Facet
40.4 Error Indication in Code Conversion Facets
40.5 Example 2: Defining a Multibyte Character Code Conversion (JIS <-> Unicode)
40.5.1 Define a New Conversion State Type
40.5.2 Define a New Character Traits Type
40.5.3 Define the Code Conversion Facet
40.5.4 Use the New Code Conversion Facet