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

RWUToUnicodeConversionContext

Module:  Internationalization Module   Group:  Character Encoding Scheme Conversion


Does Not Inherit

Local Index

Members

Header File

#include <rw/i18n/RWUToUnicodeConversionContext.h> 

Description

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

RWUToUnicodeConversionContext uses the resource acquisition is initialization idiom to manage an internal, per-thread stack of RWUToUnicodeConversionContext instances, each containing an RWUToUnicodeConverter object.

The top-level element of the stack defines the conversion required to translate implicitly a narrow character string into an equivalent UTF-16 encoded Unicode string.

Each RWUToUnicodeConversionContext instance contains an RWUToUnicodeConverter instance used for all relevant implicit conversions.

The RWUToUnicodeConversionContext constructor pushes a reference to the new instance onto the context stack. The RWUToUnicodeConversionContext destructor pops the instance off the context stack.

Instances of this class 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

RWUToUnicodeConverter, RWUFromUnicodeConversionContext, RWUConversionContext

Static Member Functions

static RWUToUnicodeConversionContext&
getContext();

Public Constructors

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

Public Destructor

~RWUToUnicodeConversionContext();

Public Member Functions

RWUToUnicodeConverter&
getConverter();


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.