SourcePro® API Reference Guide

 
List of all members | Public Types | Public Member Functions

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;
}

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

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

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

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

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 ( 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

RWUEncodingAliasList::iterator RWUEncodingAliasList::begin ( )
inline

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

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

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

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

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

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

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

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

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

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.

RWUEncodingAliasList::iterator RWUEncodingAliasList::end ( )
inline

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

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

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

uint16_t RWUEncodingAliasList::getCount ( ) const
inline

Returns the number of encoding aliases contained in self.

const RWCString & RWUEncodingAliasList::getName ( ) const
inline

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

RWUEncodingAliasList::reverse_iterator RWUEncodingAliasList::rbegin ( )
inline

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

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

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

RWUEncodingAliasList::reverse_iterator RWUEncodingAliasList::rend ( )
inline

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

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 © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.