SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWUAvailableLocaleList Class Reference

Constructs iterators that provide access to the current list of locale names. More...

#include <rw/i18n/RWUAvailableLocaleList.h>

Public Types

typedef RWUAvailableLocaleListIterator const_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef RWUAvailableLocaleListIterator 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

RWUAvailableLocaleList constructs iterators that provide access to the known list of locale names. The list cannot be changed at run time.

The methods are all static, because there is only one list of locale names. The iterator types are all constant, because the list is immutable. RWUAvailableLocaleList may also be instantiated to produce an object that mimics a true collection.

Example
#include <rw/i18n/RWUAvailableLocaleList.h>
#include <iostream>
int main() {
// Iterate over the list of locales and write them to
// std::cout, obtaining iterators from the static
// RWUAvailableLocaleList begin() and end() methods.
iter != RWUAvailableLocaleList::end(); ++iter) {
std::cout << *iter << std::endl;
}
// Iterate over the list of locales again, obtaining
// iterators from an RWUAvailableLocaleList object.
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
return 0;
}
Provides a C++ Standard Library-compatible random-access iterator for class RWUAvailableLocaleList.
Definition RWUAvailableLocaleListIterator.h:97
Constructs iterators that provide access to the current list of locale names.
Definition RWUAvailableLocaleList.h:88
static iterator begin()
Definition RWUAvailableLocaleList.h:195
static iterator end()
Definition RWUAvailableLocaleList.h:200
See also
RWUAvailableLocaleListIterator

Member Typedef Documentation

◆ const_iterator

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

◆ const_reverse_iterator

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

◆ iterator

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

◆ reverse_iterator

typedef std::reverse_iterator<iterator> RWUAvailableLocaleList::reverse_iterator

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

Member Function Documentation

◆ begin()

RWUAvailableLocaleList::iterator RWUAvailableLocaleList::begin ( )
inlinestatic

Returns an iterator instance positioned at the first name in the list of locale names.

◆ cbegin()

RWUAvailableLocaleList::const_iterator RWUAvailableLocaleList::cbegin ( )
inlinestatic

Returns a const_iterator instance positioned at the first name in the list of locale names.

◆ cend()

RWUAvailableLocaleList::const_iterator RWUAvailableLocaleList::cend ( )
inlinestatic

Returns an const_iterator instance positioned one past the last name in the list of locale names.

◆ crbegin()

RWUAvailableLocaleList::const_reverse_iterator RWUAvailableLocaleList::crbegin ( )
inlinestatic

Returns a const_reverse_iterator instance positioned at the last name in the list of locale names.

◆ crend()

RWUAvailableLocaleList::const_reverse_iterator RWUAvailableLocaleList::crend ( )
inlinestatic

Returns a const_reverse_iterator instance positioned one prior to the first name in the list of locale names.

◆ end()

RWUAvailableLocaleList::iterator RWUAvailableLocaleList::end ( )
inlinestatic

Returns an iterator instance positioned one past the last name in the list of locale names.

◆ rbegin()

RWUAvailableLocaleList::reverse_iterator RWUAvailableLocaleList::rbegin ( )
inlinestatic

Returns a reverse_iterator instance positioned at the last name in the list of locale names.

◆ rend()

RWUAvailableLocaleList::reverse_iterator RWUAvailableLocaleList::rend ( )
inlinestatic

Returns a reverse_iterator instance positioned one prior to the first name in the list of locale names.

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