Listing Available Locales
Class RWUAvailableLocaleList constructs RWUAvailableLocaleListIterator instances that provide access to the recognized list of locale names. The list cannot be changed at runtime.
The static begin() and end() methods return standard RWUAvailableLocaleListIterators. For example, this code constructs an iterator object, then iterates over the list of locales and writes them to std::cout:
 
RWUAvailableLocaleList::const_iterator iter;
 
for (iter = RWUAvailableLocaleList::begin();
iter != RWUAvailableLocaleList::end();
++iter) {
std::cout << *iter << std::endl;
}
RWUAvailableLocaleList may also be instantiated to produce an object that allows easy access to the static methods:
 
RWUAvailableLocaleList::const_iterator iter;
RWUAvailableLocaleList list;
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}