Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internationalization Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWUConversionContext

Module:  Internationalization Module   Group:  Character Encoding Scheme Conversion


RWUToUnicodeConversionContext RWUConversionContext RWUFromUnicodeConversionContext

Local Index

Members

Header File

#include <rw/i18n/RWUConversionContext.h> 

Description

RWUConversionContext specifies the default character encoding scheme to use for subsequent implicit conversions between narrow character strings and UTF-16 encoded Unicode strings.

RWUConversionContext combines the functionality provided by the RWUToUnicodeConversionContext and RWUFromUnicodeConversionContext to provide a single convenient means for specifying the encoding for conversions to and from Unicode.

RWUConversionContext uses the resource acquisition is initialization idiom to manage two internal, per-thread stacks of RWUFromUnicodeConversionContext instances and RWUToUnicodeConversionContext.


NOTE -- Instances of RWUConversionContext can only be constructed with static or automatic storage duration; dynamic allocation is not allowed. Do not create unnamed, temporary instances. The destructors for such objects pop the context off the context stack prematurely.

Example

Related Classes

RWUToUnicodeConversionContext, RWUFromUnicodeConversionContext

Public Constructors

RWUConversionContext(const char* encoding = 
                 RWUConverterBase::getDefaultEncodingName());

Public Destructor

~RWUConversionContext();


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.