Listing Language Codes
Class
RWUIsoLanguageList constructs iterators that provide access to the static list of ISO-639 language codes recognized by the Internationalization Module. For example, you might use this class to display a list of language codes to an end user. The list cannot be changed at run time.
The static begin() and end() methods return standard iterators. This code constructs an iterator object, then iterates over the list of language codes and writes them to std::cout:
RWUIsoLanguageList::const_iterator iter;
for (iter = RWUIsoLanguageList::begin();
iter != RWUIsoLanguageList::end();
++iter) {
std::cout << *iter << std::endl;
}
RWUIsoLanguageList may also be instantiated to produce an object that allows easy access to the static methods:
RWUIsoLanguageList::const_iterator iter;
RWUIsoLanguageList list;
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
NOTE: The Internationalization Module does not recognize deprecated language codes.