#include <hextouni.h>
Inheritance diagram for HexToUnicodeTransliterator:
Public Methods | |
HexToUnicodeTransliterator (UnicodeFilter* adoptedFilter = 0) | |
Constructs a transliterator that recognizes the standard prefixes "\u", "\U", "u+", and "U+", each with no suffix. More... | |
HexToUnicodeTransliterator (const UnicodeString& pattern, UErrorCode& status) | |
Constructs a custom transliterator with the given pattern. More... | |
HexToUnicodeTransliterator (const UnicodeString& pattern, UnicodeFilter* adoptedFilter, UErrorCode& status) | |
Constructs a custom transliterator with the given pattern and filter. More... | |
virtual | ~HexToUnicodeTransliterator () |
Destructor. More... | |
HexToUnicodeTransliterator (const HexToUnicodeTransliterator&) | |
Copy constructor. More... | |
HexToUnicodeTransliterator& | operator= (const HexToUnicodeTransliterator&) |
Assignment operator. More... | |
Transliterator* | clone (void) const |
Transliterator API. More... | |
void | applyPattern (const UnicodeString& thePattern, UErrorCode& status) |
Set the patterns recognized by this transliterator. More... | |
const UnicodeString& | toPattern (void) const |
Return this transliterator's pattern. | |
virtual void | handleTransliterate (Replaceable& text, UTransPosition& offset, UBool isIncremental) const |
Implements. More... | |
Private Types | |
enum | { SEMICOLON = 0x003B, ZERO = 0x0030, POUND = 0x0023, BACKSLASH = 0x005C } |
Private Attributes | |
UnicodeString | pattern |
The pattern for this transliterator. More... | |
UnicodeString | affixes |
The processed pattern specification. More... | |
int32_t | affixCount |
The number of different affix sets in affixes. More... | |
Static Private Attributes | |
const char* | _ID |
ID for this transliterator. More... | |
const UnicodeString | DEFAULT_PATTERN |
The pattern used by the default constructor. More... |
For example, "U+0040" and '\u0040'. A default HexToUnicodeTransliterator recognizes the prefixes "U+", "u+", "\U", and "\u". Hex values may be upper- or lowercase. By calling the applyPattern() method, one or more custom prefix/suffix pairs may be specified. See applyPattern() for details.
Copyright © IBM Corporation 1999. All rights reserved.
Definition at line 28 of file hextouni.h.
|
Definition at line 41 of file hextouni.h. |
|
Constructs a transliterator that recognizes the standard prefixes "\u", "\U", "u+", and "U+", each with no suffix.
|
|
Constructs a custom transliterator with the given pattern.
|
|
Constructs a custom transliterator with the given pattern and filter.
|
|
Destructor.
Definition at line 155 of file hextouni.h. |
|
Copy constructor.
|
|
Set the patterns recognized by this transliterator. One or more patterns may be specified, separated by semicolons (';'). Each pattern contains zero or more prefix characters, one or more digit characters, and zero or more suffix characters. The digit characters indicates optional digits ('#') followed by required digits ('0'). The total number of digits cannot exceed 4, and must be at least 1 required digit. Use a backslash ('\') to escape any of the special characters. An empty pattern is allowed; it specifies a transliterator that does nothing.
Example: "U+0000;<###0>" specifies two patterns. The first has a prefix of "U+", exactly four digits, and no suffix. The second has a prefix of "<", between one and four digits, and a suffix of ">".
pattern := spec | ( pattern ';' spec ) spec := prefix-char* digit-spec suffix-char* digit-spec := '#'* '0'+ prefix-char := [^special-char] | '\' special-char suffix-char := [^special-char] | '\' special-char special-char := ';' | '0' | '#' | '\' |
|
Transliterator API.
Reimplemented from Transliterator. |
|
Implements. Transliterator#handleTransliterate.
Reimplemented from Transliterator. |
|
Assignment operator.
|
|
Return this transliterator's pattern.
|
|
The pattern used by the default constructor.
Definition at line 38 of file hextouni.h. |
|
ID for this transliterator.
Definition at line 33 of file hextouni.h. |
|
The number of different affix sets in affixes.
Definition at line 62 of file hextouni.h. |
|
The processed pattern specification. See applyPattern() for details. Definition at line 57 of file hextouni.h. |
|
The pattern for this transliterator.
Definition at line 51 of file hextouni.h. |