SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Constructs iterators for accessing the list of encoding name standards (such as MIME or IANA) used by the Internationalization Module. More...

#include <rw/i18n/RWUEncodingNameStandardList.h>

Public Types

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

RWUEncodingNameStandardList constructs iterators that provide access to the list of encoding name standards (such as MIME or IANA) that apply to any of the encoding names and aliases currently recognized by the Internationalization Module.

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

Example
#include <rw/i18n/RWUEncodingNameStandardList.h>
#include <iostream>
int main() {
// Iterate over the list of standards and write them
// to std::cout, obtaining iterators from the static
// RWUEncodingNameStandardListIterator begin() and end()
// methods.
iter != RWUEncodingNameStandardList::end(); ++iter) {
std::cout << *iter << std::endl;
}
// Iterate over the list of standards again, obtaining
// iterators from an RWUEncodingNameStandardList object.
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
return 0;
}
A C++ Standard Library-compatible random-access iterator for class RWUEncodingNameStandardList.
Definition RWUEncodingNameStandardListIterator.h:89
Constructs iterators for accessing the list of encoding name standards (such as MIME or IANA) used by...
Definition RWUEncodingNameStandardList.h:83
static iterator begin()
Definition RWUEncodingNameStandardList.h:190
static iterator end()
Definition RWUEncodingNameStandardList.h:195
See also
RWUEncodingNameStandardListIterator

Member Typedef Documentation

◆ const_iterator

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

◆ const_reverse_iterator

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

◆ iterator

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

◆ reverse_iterator

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

Member Function Documentation

◆ begin()

RWUEncodingNameStandardList::iterator RWUEncodingNameStandardList::begin ( )
inlinestatic

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

◆ cbegin()

RWUEncodingNameStandardList::const_iterator RWUEncodingNameStandardList::cbegin ( )
inlinestatic

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

◆ cend()

RWUEncodingNameStandardList::const_iterator RWUEncodingNameStandardList::cend ( )
inlinestatic

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

◆ crbegin()

RWUEncodingNameStandardList::const_reverse_iterator RWUEncodingNameStandardList::crbegin ( )
inlinestatic

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

◆ crend()

RWUEncodingNameStandardList::const_reverse_iterator RWUEncodingNameStandardList::crend ( )
inlinestatic

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

◆ end()

RWUEncodingNameStandardList::iterator RWUEncodingNameStandardList::end ( )
inlinestatic

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

◆ rbegin()

RWUEncodingNameStandardList::reverse_iterator RWUEncodingNameStandardList::rbegin ( )
inlinestatic

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

◆ rend()

RWUEncodingNameStandardList::reverse_iterator RWUEncodingNameStandardList::rend ( )
inlinestatic

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

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