Translate
Outputs its input translated character by character.
Header File
translat.h
Description
An instance of this class is a filter object that outputs its input after
each character has been translated to another (possibly identical) character.
How each character of the input to a Translate filter is translated is
determined when the filter is constructed.
Constructors
Translate(const String &inMap, const String &outMap)
-
if inMap and outMap aren`t the same length then the
longer one is truncated to the length of the shorter. If a character
doesn`t appear in inMap it is translated to itself; if it
is the i`th character in inMap then it is translated to the
i`th character in outMap. If a character appears more than
once in inMap then the leftmost occurrence is used.
Translate(Translate::TranslationType transType)
- performs
the translation specified by transType (e.g. translation to
upper case or to lower case)
Translate(const Translate &f)
- copy constructor
Limitations
Known Bugs
Author and Copyright
Author: James MacKay
Last Updated: June 8, 1997
Copyright © 1997 James MacKay