22 #if !UCONFIG_NO_TRANSLITERATION 34 class CompoundTransliterator;
35 class TransliteratorParser;
36 class NormalizationTransliterator;
37 class TransliteratorIDParser;
260 int32_t maximumContextLength;
282 #ifndef U_HIDE_INTERNAL_API 288 inline static Token integerToken(int32_t);
295 inline static Token pointerToken(
void*);
354 friend class TransliteratorParser;
355 friend class TransliteratorIDParser;
356 friend class TransliteratorAlias;
398 int32_t start, int32_t limit)
const;
405 virtual void transliterate(
Replaceable& text)
const;
521 virtual void finishTransliteration(
Replaceable& text,
627 virtual void handleTransliterate(
Replaceable& text,
629 UBool incremental)
const = 0;
643 virtual void filteredTransliterate(
Replaceable& text,
645 UBool incremental)
const;
676 virtual void filteredTransliterate(
Replaceable& text,
679 UBool rollback)
const;
696 int32_t getMaximumContextLength(
void)
const;
706 void setMaximumContextLength(int32_t maxContextLength);
880 UBool escapeUnprintable)
const;
894 int32_t countElements()
const;
948 virtual void handleGetSourceSet(
UnicodeSet& result)
const;
983 static void U_EXPORT2 registerFactory(
const UnicodeString&
id,
1008 static void U_EXPORT2 registerInstance(
Transliterator* adoptedObj);
1024 static void U_EXPORT2 registerAlias(
const UnicodeString& aliasID,
1029 #ifndef U_HIDE_INTERNAL_API 1086 static void _registerSpecialInverse(
const UnicodeString& target,
1088 UBool bidirectional);
1130 static int32_t U_EXPORT2 countAvailableSources(
void);
1141 static UnicodeString& U_EXPORT2 getAvailableSource(int32_t index,
1152 static int32_t U_EXPORT2 countAvailableTargets(
const UnicodeString& source);
1165 static UnicodeString& U_EXPORT2 getAvailableTarget(int32_t index,
1176 static int32_t U_EXPORT2 countAvailableVariants(
const UnicodeString& source,
1192 static UnicodeString& U_EXPORT2 getAvailableVariant(int32_t index,
1199 #ifndef U_HIDE_INTERNAL_API 1204 static int32_t _countAvailableSources(
void);
1217 static int32_t _countAvailableTargets(
const UnicodeString& source);
1231 static int32_t _countAvailableVariants(
const UnicodeString& source,
1266 static UClassID U_EXPORT2 getStaticClassID(
void);
1289 #ifndef U_HIDE_OBSOLETE_API 1297 static int32_t U_EXPORT2 countAvailableIDs(
void);
1311 static const UnicodeString& U_EXPORT2 getAvailableID(int32_t index);
1315 inline int32_t Transliterator::getMaximumContextLength(
void)
const {
1316 return maximumContextLength;
1326 #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.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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.