22 #if !UCONFIG_NO_TRANSLITERATION 34 class TransliteratorParser;
35 class NormalizationTransliterator;
36 class TransliteratorIDParser;
505 int32_t maximumContextLength;
527 #ifndef U_HIDE_INTERNAL_API 533 inline static Token integerToken(int32_t);
540 inline static Token pointerToken(
void*);
599 friend class TransliteratorParser;
600 friend class TransliteratorIDParser;
601 friend class TransliteratorAlias;
643 int32_t start, int32_t limit)
const;
650 virtual void transliterate(
Replaceable& text)
const;
766 virtual void finishTransliteration(
Replaceable& text,
872 virtual void handleTransliterate(
Replaceable& text,
874 UBool incremental)
const = 0;
888 virtual void filteredTransliterate(
Replaceable& text,
890 UBool incremental)
const;
921 virtual void filteredTransliterate(
Replaceable& text,
924 UBool rollback)
const;
941 int32_t getMaximumContextLength(
void)
const;
951 void setMaximumContextLength(int32_t maxContextLength);
1127 UBool escapeUnprintable)
const;
1141 int32_t countElements()
const;
1195 virtual void handleGetSourceSet(
UnicodeSet& result)
const;
1230 static void U_EXPORT2 registerFactory(
const UnicodeString&
id,
1255 static void U_EXPORT2 registerInstance(
Transliterator* adoptedObj);
1271 static void U_EXPORT2 registerAlias(
const UnicodeString& aliasID,
1276 #ifndef U_HIDE_INTERNAL_API 1333 static void _registerSpecialInverse(
const UnicodeString& target,
1335 UBool bidirectional);
1377 static int32_t U_EXPORT2 countAvailableSources(
void);
1388 static UnicodeString& U_EXPORT2 getAvailableSource(int32_t index,
1399 static int32_t U_EXPORT2 countAvailableTargets(
const UnicodeString& source);
1412 static UnicodeString& U_EXPORT2 getAvailableTarget(int32_t index,
1423 static int32_t U_EXPORT2 countAvailableVariants(
const UnicodeString& source,
1439 static UnicodeString& U_EXPORT2 getAvailableVariant(int32_t index,
1446 #ifndef U_HIDE_INTERNAL_API 1451 static int32_t _countAvailableSources(
void);
1464 static int32_t _countAvailableTargets(
const UnicodeString& source);
1478 static int32_t _countAvailableVariants(
const UnicodeString& source,
1513 static UClassID U_EXPORT2 getStaticClassID(
void);
1530 virtual UClassID getDynamicClassID(
void)
const = 0;
1536 #ifndef U_HIDE_OBSOLETE_API 1544 static int32_t U_EXPORT2 countAvailableIDs(
void);
1558 static const UnicodeString& U_EXPORT2 getAvailableID(int32_t index);
1562 inline int32_t Transliterator::getMaximumContextLength(
void)
const {
1563 return maximumContextLength;
1573 #ifndef U_HIDE_INTERNAL_API Transliterator *(* Factory)(const UnicodeString &ID, Token context)
A function that creates and returns a Transliterator.
Position structure for utrans_transIncremental() incremental transliteration.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
Transliterator is an abstract class that transliterates text from one format to another.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
A context integer or pointer for a factory function, passed by value.
Replaceable is an abstract base class representing a string of characters that supports the replaceme...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UBool truncate(int32_t targetLength)
Truncate this UnicodeString to the targetLength.
UnicodeFilter defines a protocol for selecting a subset of the full range (U+0000 to U+10FFFF) of Uni...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UnicodeString & append(const UnicodeString &srcText, int32_t srcStart, int32_t srcLength)
Append the characters in srcText in the range [srcStart, srcStart + srcLength) to the UnicodeString o...
A mutable set of Unicode characters and multicharacter strings.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
C API: Parse Error Information.
int32_t integer
This token, interpreted as a 32-bit integer.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
C++ API: String Enumeration.
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
UTransDirection
Direction constant indicating the direction in a transliterator, e.g., the forward or reverse rules o...
int8_t UBool
The ICU boolean type.
void * pointer
This token, interpreted as a native pointer.
A Locale object represents a specific geographical, political, or cultural region.