20 #if !UCONFIG_NO_TRANSLITERATION
32 class CompoundTransliterator;
33 class TransliteratorParser;
34 class NormalizationTransliterator;
35 class TransliteratorIDParser;
258 int32_t maximumContextLength;
280 #ifndef U_HIDE_INTERNAL_API
286 inline static Token integerToken(int32_t);
293 inline static Token pointerToken(
void*);
352 friend class TransliteratorParser;
353 friend class TransliteratorIDParser;
354 friend class TransliteratorAlias;
396 int32_t start, int32_t limit)
const;
403 virtual void transliterate(
Replaceable& text)
const;
519 virtual void finishTransliteration(
Replaceable& text,
625 virtual void handleTransliterate(
Replaceable& text,
627 UBool incremental)
const = 0;
641 virtual void filteredTransliterate(
Replaceable& text,
643 UBool incremental)
const;
674 virtual void filteredTransliterate(
Replaceable& text,
677 UBool rollback)
const;
694 int32_t getMaximumContextLength(
void)
const;
704 void setMaximumContextLength(int32_t maxContextLength);
878 UBool escapeUnprintable)
const;
892 int32_t countElements()
const;
946 virtual void handleGetSourceSet(
UnicodeSet& result)
const;
976 static void U_EXPORT2 registerFactory(
const UnicodeString&
id,
997 static void U_EXPORT2 registerInstance(
Transliterator* adoptedObj);
1013 static void U_EXPORT2 registerAlias(
const UnicodeString& aliasID,
1018 #ifndef U_HIDE_INTERNAL_API
1075 static void _registerSpecialInverse(
const UnicodeString& target,
1077 UBool bidirectional);
1115 static int32_t U_EXPORT2 countAvailableSources(
void);
1126 static UnicodeString& U_EXPORT2 getAvailableSource(int32_t index,
1137 static int32_t U_EXPORT2 countAvailableTargets(
const UnicodeString& source);
1150 static UnicodeString& U_EXPORT2 getAvailableTarget(int32_t index,
1161 static int32_t U_EXPORT2 countAvailableVariants(
const UnicodeString& source,
1177 static UnicodeString& U_EXPORT2 getAvailableVariant(int32_t index,
1184 #ifndef U_HIDE_INTERNAL_API
1189 static int32_t _countAvailableSources(
void);
1202 static int32_t _countAvailableTargets(
const UnicodeString& source);
1216 static int32_t _countAvailableVariants(
const UnicodeString& source,
1251 static UClassID U_EXPORT2 getStaticClassID(
void);
1274 #ifndef U_HIDE_OBSOLETE_API
1282 static int32_t U_EXPORT2 countAvailableIDs(
void);
1296 static const UnicodeString& U_EXPORT2 getAvailableID(int32_t index);
1300 inline int32_t Transliterator::getMaximumContextLength(
void)
const {
1301 return maximumContextLength;
1311 #ifndef U_HIDE_INTERNAL_API
Position structure for utrans_transIncremental() incremental transliteration.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
Transliterator *(* Factory)(const UnicodeString &ID, Token context)
A function that creates and returns a Transliterator.
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.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#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.