Module: Internationalization Module Group: Localization
Does Not Inherit
#include <rw/i18n/RWUIsoCountryList.h>
RWUIsoCountryList constructs iterators that provide access to the static list of ISO 3166 country codes recognized by the Internationalization Module. The list of country codes may be found at ftp://dkuug.dk/i18n/ISO_3166. The Internationalization Module does not recognize deprecated codes.
The begin() and end() methods are static, because there is only one list of country codes. These methods return constant iterators, because the list is immutable. RWUIsoCountryList may also be instantiated to produce an object that mimics a true collection.
#include <rw/i18n/RWUIsoCountryList.h> #include <iostream> int main() { // Iterate over the list of country codes and write them // to std::cout, obtaining iterators from the static // RWUIsoCountryList begin() and end() methods. RWUIsoCountryList::const_iterator iter; for (iter = RWUIsoCountryList::begin(); iter != RWUIsoCountryList::end(); ++iter) { std::cout << *iter << std::endl; } // Iterate over the list of country codes again, obtaining // iterators from an RWUIsoCountryList object. RWUIsoCountryList list; for (iter = list.begin(); iter != list.end(); ++iter) { std::cout << *iter << std::endl; } return 0; }
typedef const char* const * 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 ISO 3166 country code in the list.
static const_iterator end();
Returns a const_iterator instance positioned one past the last ISO 3166 country code in the 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.