SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWUIsoLanguageList Class Reference

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
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef const char *const * iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 

Static Public Member Functions

static iterator begin ()
 
static const_iterator cbegin ()
 
static const_iterator cend ()
 
static const_reverse_iterator crbegin ()
 
static const_reverse_iterator crend ()
 
static iterator end ()
 
static reverse_iterator rbegin ()
 
static reverse_iterator rend ()
 

Detailed Description

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 methods are all static, because there is only one list of language codes. The iterator types are all constant, because the list is immutable. RWUIsoLanguageList may also be instantiated to produce an object that mimics a true collection.

Example
#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.
iter != RWUIsoLanguageList::end(); ++iter) {
std::cout << *iter << std::endl;
}
// Iterate over the list of language codes again, obtaining
// iterators from an RWUIsoLanguageList object.
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
return 0;
}
Constructs iterators to access the static list of ISO 639 language codes recognized by the Internatio...
Definition RWUIsoLanguageList.h:87
static iterator end()
Definition RWUIsoLanguageList.h:200
static iterator begin()
Definition RWUIsoLanguageList.h:196
const char *const * const_iterator
Definition RWUIsoLanguageList.h:99

Member Typedef Documentation

◆ const_iterator

typedef const char* const* RWUIsoLanguageList::const_iterator

A type that provides a const random-access iterator over the elements in the language list.

◆ const_reverse_iterator

A type that provides a const random-access, reverse-order iterator over the elements in the language list.

◆ iterator

typedef const char* const* RWUIsoLanguageList::iterator

A type that provides a random-access iterator over the elements in the language list.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> RWUIsoLanguageList::reverse_iterator

A type that provides a random-access, reverse-order iterator over the elements in the language list.

Member Function Documentation

◆ begin()

RWUIsoLanguageList::iterator RWUIsoLanguageList::begin ( )
inlinestatic

Returns an iterator instance positioned at the first name in the list of language codes.

◆ cbegin()

RWUIsoLanguageList::const_iterator RWUIsoLanguageList::cbegin ( )
inlinestatic

Returns a const_iterator instance positioned at the first name in the list of language codes.

◆ cend()

RWUIsoLanguageList::const_iterator RWUIsoLanguageList::cend ( )
inlinestatic

Returns a const_iterator instance positioned one past the last name in the list of language codes.

◆ crbegin()

RWUIsoLanguageList::const_reverse_iterator RWUIsoLanguageList::crbegin ( )
inlinestatic

Returns a const_reverse_iterator instance positioned at the last name in the list of language codes.

◆ crend()

RWUIsoLanguageList::const_reverse_iterator RWUIsoLanguageList::crend ( )
inlinestatic

Returns a const_reverse_iterator instance positioned one prior to the first name in the list of language codes.

◆ end()

RWUIsoLanguageList::iterator RWUIsoLanguageList::end ( )
inlinestatic

Returns an iterator instance positioned one past the last name in the list of language codes.

◆ rbegin()

RWUIsoLanguageList::reverse_iterator RWUIsoLanguageList::rbegin ( )
inlinestatic

Returns a reverse_iterator instance positioned at the last name in the list of language codes.

◆ rend()

RWUIsoLanguageList::reverse_iterator RWUIsoLanguageList::rend ( )
inlinestatic

Returns a reverse_iterator instance positioned one prior to the first name in the list of language codes.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.