Public Types | |
enum | Type { RULE_BASED_PLACEHOLDER, REVERSE_RULE_BASED_PLACEHOLDER, PROTOTYPE, RBT_DATA, NONE } |
Public Methods | |
CacheEntry () | |
~CacheEntry () | |
void | adoptPrototype (Transliterator* adopted) |
Public Attributes | |
enum Transliterator::CacheEntry::Type | entryType |
UnicodeString | rbFile |
union { | |
Transliterator* prototype | |
TransliterationRuleData* data | |
} | u |
In C++ we use the following struct to achieve the same purpose. Instances of this struct can be placeholders, can represent prototype transliterators to be cloned, or can represent RuleBasedTransliterator::Data objects. We don't support storing classes in the cache because we don't have the rtti infrastructure for it. We could easily add this if there is a need for it in the future. The rbFile is the resource bundle file name for rule-based transliterators.
Definition at line 297 of file translit.h.
|
Definition at line 298 of file translit.h. |
|
|
|
|
|
|
|
Definition at line 308 of file translit.h. |
|
|
|
Definition at line 307 of file translit.h. |
|
Definition at line 305 of file translit.h. |
|
|