Logo Search packages:      
Sourcecode: icu version File versions  Download package

TransliteratorAlias Class Reference

#include <transreg.h>

Inheritance diagram for TransliteratorAlias:

UMemory

List of all members.


Detailed Description

A TransliteratorAlias object is returned by get() if the given ID actually translates into something else. The caller then invokes the create() method on the alias to create the actual transliterator, and deletes the alias.

Why all the shenanigans? To prevent circular calls between the registry code and the transliterator code that deadlocks.

Definition at line 41 of file transreg.h.


Public Member Functions

Transliteratorcreate (UParseError &, UErrorCode &)
UBool isRuleBased () const
void parse (TransliteratorParser &parser, UParseError &pe, UErrorCode &ec) const
 TransliteratorAlias (const UnicodeString &theID, const UnicodeString &rules, UTransDirection dir)
 TransliteratorAlias (const UnicodeString &ID, const UnicodeString &idBlocks, UVector *adoptedTransliterators, const UnicodeSet *compoundFilter)
 TransliteratorAlias (const UnicodeString &aliasID, const UnicodeSet *compoundFilter)

Static Public Member Functions

static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Types

enum  { SIMPLE, COMPOUND, RULES }

Private Member Functions

TransliteratorAliasoperator= (const TransliteratorAlias &other)
 TransliteratorAlias (const TransliteratorAlias &other)

Private Attributes

UnicodeString aliasesOrRules
const UnicodeSetcompoundFilter
UTransDirection direction
UnicodeString ID
UVectortranses
enum TransliteratorAlias:: { ... }  type

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index