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

RWUFromUnicodeConversionContext

Module:  Internationalization Module   Group:  Character Encoding Scheme Conversion


Does Not Inherit

Local Index

Members

Header File

#include <rw/i18n/RWUFromUnicodeConversionContext.h> 

Description

RWUFromUnicodeConversionContext specifies the character encoding scheme to use for subsequent implicit conversions from UTF-16 encoded Unicode strings into another encoding.

RWUFromUnicodeConversionContext uses the resource acquisition is initialization idiom to manage internal, per-thread stacks of RWUFromUnicodeConversionContext instances, each containing an RWUFromUnicodeConverter object. The RWUFromUnicodeConversionContext constructor pushes a reference to the new instance onto the context stack. The RWUFromUnicodeConversionContext destructor pops the instance off the context stack. The top-level element of each thread's stack defines the conversion required to translate implicitly a UTF-16 encoded Unicode string into another encoding.

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

RWUFromUnicodeConverter, RWUToUnicodeConversionContext, RWUConversionContext

Static Member Functions

static RWUFromUnicodeConversionContext&
getContext();

Public Constructors

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

Public Destructor

~RWUFromUnicodeConversionContext();

Public Member Functions

RWUFromUnicodeConverter&
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.