SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Constructs iterators to access the static list of ISO 639 language codes recognized by the Internationalization Module. More...
#include <rw/i18n/RWUIsoLanguageList.h>
Public Types | |
typedef const char *const * | const_iterator |
Static Public Member Functions | |
static const_iterator | begin () |
static const_iterator | end () |
RWUIsoLanguageList constructs iterators that provide access to the static list of ISO 639 language codes recognized by the Internationalization Module. The list of language codes may be found at http://www.loc.gov/standards/iso639-2/php/code_list.php. The Internationalization Module does not recognize deprecated codes.
The begin() and end() methods are static, because there is only one list of language codes. These methods return constant iterators, because the list is immutable. RWUIsoLanguageList may also be instantiated to produce an object that mimics a true collection.
#include <rw/i18n/RWUIsoLanguageList.h> #include <iostream> int main() { // Iterate over the list of language codes and write // them to std::cout, obtaining iterators from the // static RWUIsoLanguageList begin() and end() methods. RWUIsoLanguageList::const_iterator iter; for (iter = RWUIsoLanguageList::begin(); iter != RWUIsoLanguageList::end(); ++iter) { std::cout << *iter << std::endl; } // Iterate over the list of language codes again, obtaining // iterators from an RWUIsoLanguageList object. RWUIsoLanguageList list; for (iter = list.begin(); iter != list.end(); ++iter) { std::cout << *iter << std::endl; } return 0; }
typedef const char* const* RWUIsoLanguageList::const_iterator |
Declares a conventional Standard C++ alias for the iterator class.
RWUIsoLanguageList::const_iterator RWUIsoLanguageList::begin | ( | ) | [inline, static] |
Returns a const_iterator positioned at the first ISO 639 language code.
RWUIsoLanguageList::const_iterator RWUIsoLanguageList::end | ( | ) | [inline, static] |
Returns a const_iterator positioned one past the last ISO 639 language code.
© 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.