Module: Internationalization Module Group: Character Encoding Scheme Conversion
Does Not Inherit
#include <rw/i18n/RWUAvailableEncodingList.h>
RWUAvailableEncodingList constructs iterators that provide access to the known list of encoding names. The list cannot be changed at run time.
The begin() and end() methods are static, because there is only one list of encoding names. These methods return constant iterators, because the list is immutable. RWUAvailableEncodingList may also be instantiated to produce an object that mimics a true collection.
#include <rw/i18n/RWUAvailableEncodingList.h> #include <iostream> int main() { // Iterate over the list of encodings and write them // to std::cout, obtaining iterators from the static // RWUAvailableEncodingList begin() and end() methods. RWUAvailableEncodingList::const_iterator iter; for (iter = RWUAvailableEncodingList::begin(); iter != RWUAvailableEncodingList::end(); ++iter) { std::cout << *iter << std::endl; } // Iterate over the list of encodings again, obtaining // iterators from an RWUAvailableEncodingList object. RWUAvailableEncodingList list; for (iter = list.begin(); iter != list.end(); ++iter) { std::cout << *iter << std::endl; } return 0; }
RWUAvailableEncodingListIterator
typedef RWUAvailableEncodingListIterator const_iterator;
Declares a conventional Standard C++ alias for the iterator class.
static const_iterator begin();
Returns a const_iterator instance positioned at the first name in the list of encoding names.
static const_iterator end();
Returns a const_iterator instance positioned one past the last name in the list of encoding names.
© 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.