Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library User's Guide

42.3 An Example

An example of when you would want to imbue a new locale on a stream might be the case where a file has a header that requires a different code conversion facet. The following code imbues the JIS to UNICODE conversion facet from Chapter 40 onto a stream, reads a single line, then imbues the default locale to continue processing the file:



Previous fileTop of DocumentContentsIndex pageNext file