#include <unitohex.h>
Class diagram for UnicodeToHexTransliterator:
Public Members | |||
![]() | ![]() | UnicodeToHexTransliterator (const UnicodeString& hexPrefix, bool_t isUppercase, UnicodeFilter* adoptedFilter = 0) | |
![]() | ![]() | Constructs a transliterator. More... | |
![]() | ![]() | UnicodeToHexTransliterator (UnicodeFilter* adoptedFilter = 0) | |
![]() | ![]() | Constructs a transliterator with the default prefix "\u" that outputs uppercase hex digits. More... | |
![]() | ![]() | virtual | ~UnicodeToHexTransliterator () |
![]() | ![]() | Destructor. More... | |
![]() | ![]() | UnicodeToHexTransliterator (const UnicodeToHexTransliterator&) | |
![]() | ![]() | Copy constructor. More... | |
![]() | ![]() | UnicodeToHexTransliterator& | operator= (const UnicodeToHexTransliterator&) |
![]() | ![]() | Assignment operator. More... | |
![]() | ![]() | virtual Transliterator* | clone (void) const |
![]() | ![]() | Transliterator API. More... | |
![]() | ![]() | virtual const UnicodeString& | getPrefix (void) const |
![]() | ![]() | Returns the string that precedes the four hex digits. More... | |
![]() | ![]() | virtual void | setPrefix (const UnicodeString& prefix) |
![]() | ![]() | Sets the string that precedes the four hex digits. More... | |
![]() | ![]() | virtual bool_t | isUppercase (void) const |
![]() | ![]() | Returns true if this transliterator outputs uppercase hex digits. More... | |
![]() | ![]() | virtual void | setUppercase (bool_t outputUppercase) |
![]() | ![]() | Sets if this transliterator outputs uppercase hex digits. More... | |
![]() | ![]() | virtual void | handleTransliterate (Replaceable& text, Position& offsets, bool_t isIncremental) const |
![]() | ![]() | Implements. More... |
It outputs a prefix specified in the constructor and optionally converts the hex digits to uppercase.
UnicodeToHexTransliterator::UnicodeToHexTransliterator (const UnicodeString & hexPrefix, bool_t isUppercase, UnicodeFilter * adoptedFilter = 0) |
Constructs a transliterator.
prefix | the string that will precede the four hex digits for UNICODE_HEX transliterators. Ignored if direction is HEX_UNICODE. |
uppercase | if true, the four hex digits will be converted to uppercase; otherwise they will be lowercase. Ignored if direction is HEX_UNICODE. |
UnicodeToHexTransliterator::UnicodeToHexTransliterator (UnicodeFilter * adoptedFilter = 0) |
Constructs a transliterator with the default prefix "\u" that outputs uppercase hex digits.
UnicodeToHexTransliterator::~UnicodeToHexTransliterator () [inline, virtual]
|
Destructor.
UnicodeToHexTransliterator::UnicodeToHexTransliterator (const UnicodeToHexTransliterator &) |
Copy constructor.
UnicodeToHexTransliterator & UnicodeToHexTransliterator::operator= (const UnicodeToHexTransliterator &) |
Assignment operator.
virtual Transliterator * UnicodeToHexTransliterator::clone (void) const [virtual]
|
virtual const UnicodeString & UnicodeToHexTransliterator::getPrefix (void) const [virtual]
|
Returns the string that precedes the four hex digits.
virtual void UnicodeToHexTransliterator::setPrefix (const UnicodeString & prefix) [virtual]
|
Sets the string that precedes the four hex digits.
Callers must take care if a transliterator is in use by multiple threads. The prefix should not be changed by one thread while another thread may be transliterating.
prefix | prefix string |
virtual bool_t UnicodeToHexTransliterator::isUppercase (void) const [virtual]
|
Returns true if this transliterator outputs uppercase hex digits.
virtual void UnicodeToHexTransliterator::setUppercase (bool_t outputUppercase) [virtual]
|
Sets if this transliterator outputs uppercase hex digits.
Callers must take care if a transliterator is in use by multiple threads. The uppercase mode should not be changed by one thread while another thread may be transliterating.
outputUppercase | if true, then this transliterator outputs uppercase hex digits. |
virtual void UnicodeToHexTransliterator::handleTransliterate (Replaceable & text, Position & offsets, bool_t isIncremental) const [virtual]
|