SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Constructs iterators to access the list of encoding aliases associated with a given encoding. More...

#include <rw/i18n/RWUEncodingAliasList.h>

Public Types

typedef RWUEncodingAliasListIterator const_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef RWUEncodingAliasListIterator iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 

Public Member Functions

 RWUEncodingAliasList (const RWCString &enc)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
iterator end ()
 
const_iterator end () const
 
uint16_t getCount () const
 
const RWCStringgetName () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 

Detailed Description

RWUEncodingAliasList constructs iterators that provide access to the list of encoding aliases associated with a given encoding. The list cannot be changed at run time.

The iterator types are all constant because the encoding alias list is immutable.

Example
#include <rw/i18n/RWUEncodingAliasList.h>
#include <iostream>
int main() {
// Construct a list object.
RWUEncodingAliasList list("US-ASCII");
// Iterate over the list of aliases and write them
// to std::cout.
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 RWUEncodingAliasList.
Definition RWUEncodingAliasListIterator.h:101
Constructs iterators to access the list of encoding aliases associated with a given encoding.
Definition RWUEncodingAliasList.h:93

Program output:

US-ASCII
ascii
ascii-7
ANSI_X3.4-1968
ANSI_X3.4-1986
ISO_646.irv:1991
iso646-us
us
csASCII
646
iso-ir-6
cp367
See also
RWUEncodingAliasListIterator

Member Typedef Documentation

◆ const_iterator

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

◆ const_reverse_iterator

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

◆ iterator

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

◆ reverse_iterator

typedef std::reverse_iterator<iterator> RWUEncodingAliasList::reverse_iterator

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

Constructor & Destructor Documentation

◆ RWUEncodingAliasList()

RWUEncodingAliasList::RWUEncodingAliasList ( const RWCString & enc)
inline

Constructs an encoding alias list for the specified encoding enc. Throws RWUException if the specified encoding does not exist.

Member Function Documentation

◆ begin() [1/2]

RWUEncodingAliasList::iterator RWUEncodingAliasList::begin ( )
inline

Returns an iterator instance positioned at the first alias in the encoding alias list.

◆ begin() [2/2]

RWUEncodingAliasList::const_iterator RWUEncodingAliasList::begin ( ) const
inline

Returns a const_iterator instance positioned at the first alias in the encoding alias list.

◆ cbegin()

RWUEncodingAliasList::const_iterator RWUEncodingAliasList::cbegin ( ) const
inline

Returns a const_iterator instance positioned at the first alias in the encoding alias list.

◆ cend()

RWUEncodingAliasList::const_iterator RWUEncodingAliasList::cend ( ) const
inline

Returns a const_iterator instance positioned one past the last alias in the encoding alias list.

◆ crbegin()

RWUEncodingAliasList::const_reverse_iterator RWUEncodingAliasList::crbegin ( ) const
inline

Returns a const_reverse_iterator instance positioned at the last alias in the encoding alias list.

◆ crend()

RWUEncodingAliasList::const_reverse_iterator RWUEncodingAliasList::crend ( ) const
inline

Returns a const_reverse_iterator instance positioned one prior to the first alias in the encoding alias list.

◆ end() [1/2]

RWUEncodingAliasList::iterator RWUEncodingAliasList::end ( )
inline

Returns an iterator instance positioned one past the last alias in the encoding alias list.

◆ end() [2/2]

RWUEncodingAliasList::const_iterator RWUEncodingAliasList::end ( ) const
inline

Returns a const_iterator instance positioned one past the last alias in the encoding alias list.

◆ getCount()

uint16_t RWUEncodingAliasList::getCount ( ) const
inline

Returns the number of encoding aliases contained in self.

◆ getName()

const RWCString & RWUEncodingAliasList::getName ( ) const
inline

Returns a reference to string that contains the encoding name used to create self.

◆ rbegin() [1/2]

RWUEncodingAliasList::reverse_iterator RWUEncodingAliasList::rbegin ( )
inline

Returns a reverse_iterator instance positioned at the last alias in the encoding alias list.

◆ rbegin() [2/2]

RWUEncodingAliasList::const_reverse_iterator RWUEncodingAliasList::rbegin ( ) const
inline

Returns a const_reverse_iterator instance positioned at the last alias in the encoding alias list.

◆ rend() [1/2]

RWUEncodingAliasList::reverse_iterator RWUEncodingAliasList::rend ( )
inline

Returns a reverse_iterator instance positioned one prior to the first alias in the encoding alias list.

◆ rend() [2/2]

RWUEncodingAliasList::const_reverse_iterator RWUEncodingAliasList::rend ( ) const
inline

Returns a const_reverse_iterator instance positioned one prior to the first alias in the encoding alias list.

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