17 #if U_SHOW_CPLUSPLUS_API 24 #if !UCONFIG_NO_TRANSLITERATION 36 class TransliteratorParser;
37 class NormalizationTransliterator;
38 class TransliteratorIDParser;
507 int32_t maximumContextLength;
529 #ifndef U_HIDE_INTERNAL_API 535 inline static Token integerToken(int32_t);
542 inline static Token pointerToken(
void*);
601 friend class TransliteratorParser;
602 friend class TransliteratorIDParser;
603 friend class TransliteratorAlias;
645 int32_t start, int32_t limit)
const;
652 virtual void transliterate(
Replaceable& text)
const;
768 virtual void finishTransliteration(
Replaceable& text,
874 virtual void handleTransliterate(
Replaceable& text,
876 UBool incremental)
const = 0;
890 virtual void filteredTransliterate(
Replaceable& text,
892 UBool incremental)
const;
923 virtual void filteredTransliterate(
Replaceable& text,
926 UBool rollback)
const;
943 int32_t getMaximumContextLength(
void)
const;
953 void setMaximumContextLength(int32_t maxContextLength);
1129 UBool escapeUnprintable)
const;
1143 int32_t countElements()
const;
1197 virtual void handleGetSourceSet(
UnicodeSet& result)
const;
1232 static void U_EXPORT2 registerFactory(
const UnicodeString&
id,
1257 static void U_EXPORT2 registerInstance(
Transliterator* adoptedObj);
1273 static void U_EXPORT2 registerAlias(
const UnicodeString& aliasID,
1278 #ifndef U_HIDE_INTERNAL_API 1335 static void _registerSpecialInverse(
const UnicodeString& target,
1337 UBool bidirectional);
1379 static int32_t U_EXPORT2 countAvailableSources(
void);
1390 static UnicodeString& U_EXPORT2 getAvailableSource(int32_t index,
1401 static int32_t U_EXPORT2 countAvailableTargets(
const UnicodeString& source);
1414 static UnicodeString& U_EXPORT2 getAvailableTarget(int32_t index,
1425 static int32_t U_EXPORT2 countAvailableVariants(
const UnicodeString& source,
1441 static UnicodeString& U_EXPORT2 getAvailableVariant(int32_t index,
1448 #ifndef U_HIDE_INTERNAL_API 1453 static int32_t _countAvailableSources(
void);
1466 static int32_t _countAvailableTargets(
const UnicodeString& source);
1480 static int32_t _countAvailableVariants(
const UnicodeString& source,
1515 static UClassID U_EXPORT2 getStaticClassID(
void);
1532 virtual UClassID getDynamicClassID(
void)
const = 0;
1538 #ifndef U_HIDE_OBSOLETE_API 1546 static int32_t U_EXPORT2 countAvailableIDs(
void);
1560 static const UnicodeString& U_EXPORT2 getAvailableID(int32_t index);
1564 inline int32_t Transliterator::getMaximumContextLength(
void)
const {
1565 return maximumContextLength;
1575 #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...
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.
C API: Parse Error Information.
int32_t integer
This token, interpreted as a 32-bit integer.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
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.