Listing Encoding Names
The RWUAvailableEncodingList class constructs RWUAvailableEncodingListIterator instances that provide access to the recognized list of encoding names. The list cannot be changed at run time.
The static methods begin() and end() return RWUAvailableEncodingListIterator instances. For example, this code constructs an iterator object, then iterates over the list of encoding names and writes them to std::cout:
 
RWUAvailableEncodingListIterator iter;
 
for (iter = RWUAvailableEncodingList::begin();
iter != RWUAvailableEncodingList::end();
++iter){
std::cout << *iter << std::endl;
}
RWUAvailableEncodingList may also be instantiated to produce an object that allows easy access to the static methods:
 
RWUAvailableEncodingListIterator iter;
RWUAvailableEncodingList list;
 
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}