SourcePro® API Reference Guide

 
List of all members | Public Types | Static Public Member Functions

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

#include <rw/i18n/RWUAvailableEncodingList.h>

Public Types

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

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

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

Example
#include <rw/i18n/RWUAvailableEncodingList.h>
#include <iostream>
int
main()
{
// Iterate over the list of encodings and write them
// to std::cout, obtaining iterators from the static
// RWUAvailableEncodingList begin() and end() methods.
++iter)
{
std::cout << *iter << std::endl;
}
// Iterate over the list of encodings again, obtaining
// iterators from an RWUAvailableEncodingList object.
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
return 0;
}
See also
RWUAvailableEncodingListIterator

Member Typedef Documentation

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

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

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

typedef std::reverse_iterator<iterator> RWUAvailableEncodingList::reverse_iterator

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

Member Function Documentation

RWUAvailableEncodingList::iterator RWUAvailableEncodingList::begin ( )
inlinestatic

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

RWUAvailableEncodingList::const_iterator RWUAvailableEncodingList::cbegin ( )
inlinestatic

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

RWUAvailableEncodingList::const_iterator RWUAvailableEncodingList::cend ( )
inlinestatic

Returns a const_iterator instance positioned one past the last name in the list of encoding names.

RWUAvailableEncodingList::const_reverse_iterator RWUAvailableEncodingList::crbegin ( )
inlinestatic

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

RWUAvailableEncodingList::const_reverse_iterator RWUAvailableEncodingList::crend ( )
inlinestatic

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

RWUAvailableEncodingList::iterator RWUAvailableEncodingList::end ( )
inlinestatic

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

RWUAvailableEncodingList::reverse_iterator RWUAvailableEncodingList::rbegin ( )
inlinestatic

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

RWUAvailableEncodingList::reverse_iterator RWUAvailableEncodingList::rend ( )
inlinestatic

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

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