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

4.2 Character Encodings

There are hundreds of different character encodings currently in use around the world. IANA is a reliable, authoritative source for encoding names and their aliases:

http://www.iana.org/assignments/character-sets

The Internationalization Module recognizes all IANA encoding names and aliases, plus host-specific encoding names (such as cp1254, a Microsoft Windows -codepage) and other special purpose names.

The following sections describe how to access the complete list of encoding names recognized by the Internationalization Module.

4.2.1 Listing Encoding Names

The RWUAvailableEncodingList class constructs RWUAvailableEncodingListIterator instances that provide access to the recognized list of encoding names. The list cannot be changed at run time.

The static methods begin() and end() return RWUAvailableEncodingListIterator instances. For example, this code constructs an iterator object, then iterates over the list of encoding names and writes them to std::cout:

RWUAvailableEncodingList may also be instantiated to produce an object that allows easy access to the static methods:

4.2.2 Listing Encoding Name Aliases

The RWUEncodingAliasList class constructs RWUEncodingAliasListIterator instances that provide access to the list of aliases associated with a given encoding. The list cannot be changed at run time.

The methods begin() and end() return RWUEncodingAliasListIterator instances. For example, this code constructs a list of aliases for US-ASCII, then iterates over the list of aliases and writes them to std::cout:

The results are something like this:

4.2.3 Listing Encoding Name Standards

The RWUEncodingNameStandardList class constructs RWUEncodingNameStandardListIterator instances. RWUEncodingNameStandardListIterator instances provide access to the list of encoding name standards (such as MIME or IANA) that apply to any of the encoding names and aliases currently contained within the Internationalization Module's default database. The list cannot be changed at run time.

The static methods begin() and end() return instances of RWUEncodingNameStandardListI-terator. For example, this code constructs an iterator object, then iterates over the list of standards and writes them to std::cout:

RWUEncodingNameStandardList may also be instantiated to produce an object that allows easy access to the static methods:



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.