
Module: Internationalization Module Group: Character Encoding Scheme Conversion
Does Not Inherit
#include <rw/i18n/RWUEncodingAliasList.h>
RWUEncodingAliasList constructs iterators that provide access to the list of encoding aliases associated with a given encoding. The list cannot be changed at run time.
Because the list is immutable, the begin() and end() methods return constant iterators.
#include <rw/i18n/RWUEncodingAliasList.h>
#include <iostream>
int
main()
{
// Construct a list object.
RWUEncodingAliasList list("US-ASCII");
// Iterate over the list of aliases and write them
// to std::cout.
RWUEncodingAliasListIterator iter;
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
return 0;
}
Results:
========
US-ASCII
ascii
ascii-7
ANSI_X3.4-1968
ANSI_X3.4-1986
ISO_646.irv:1991
iso646-us
us
csASCII
646
iso-ir-6
cp367
typedef RWUEncodingAliasListIterator const_iterator;
Declares a conventional Standard C++ alias for the iterator class.
RWUEncodingAliasList(const RWCString& enc);
Constructs an encoding alias list for the specified encoding enc. Throws RWUException if the specified encoding does not exist.
const_iterator begin() const;
Returns a const_iterator instance positioned at the first alias in the encoding alias list.
const_iterator end() const;
Returns a const_iterator instance positioned one past the last alias in the encoding alias list.
const RWCString& getName() const;
Returns a reference to the string that contains the encoding name used to create self.
uint16_t getCount() const;
Returns the number of encoding aliases contained in self.
©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, 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.