Module: Internationalization Module Group: Character Encoding Scheme Conversion
Does Not Inherit
#include <rw/i18n/RWUEncodingNameStandardList.h>
RWUEncodingNameStandardList constructs iterators that 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 recognized by the Internationalization Module.
The begin() and end() methods are static, because there is only one list of standards. These methods return constant iterators, because the list is immutable. RWUEncodingNameStandardList may also be instantiated to produce an object that mimics a true collection.
#include <rw/i18n/RWUEncodingNameStandardList.h> #include <iostream> int main() { // Iterate over the list of standards and write them // to std::cout, obtaining iterators from the static // RWUEncodingNameStandardListIterator begin() and end() // methods. RWUEncodingNameStandardListIterator iter; for (iter = RWUEncodingNameStandardList::begin(); iter != RWUEncodingNameStandardList::end(); ++iter) { std::cout << *iter << std::endl; } // Iterate over the list of standards again, obtaining // iterators from an RWUEncodingNameStandardList object. RWUEncodingNameStandardList list; for (iter = list.begin(); iter != list.end(); ++iter) { std::cout << *iter << std::endl; } return 0; }
RWUEncodingNameStandardListIterator
typedef RWUEncodingNameStandardListIterator 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 standard name in the standard name list.
static const_iterator end();
Returns a const_iterator instance positioned one past the last standard name in the standard name list.
© 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.