20 #if !UCONFIG_NO_TRANSLITERATION
32 class CompoundTransliterator;
33 class TransliteratorParser;
34 class NormalizationTransliterator;
35 class TransliteratorIDParser;
292 inline static Token pointerToken(
void*);
350 friend class TransliteratorParser;
351 friend class TransliteratorIDParser;
352 friend class TransliteratorAlias;
401 virtual void transliterate(
Replaceable& text)
const;
518 virtual void finishTransliteration(
Replaceable& text,
624 virtual void handleTransliterate(
Replaceable& text,
626 UBool incremental)
const = 0;
640 virtual void filteredTransliterate(
Replaceable& text,
642 UBool incremental)
const;
673 virtual void filteredTransliterate(
Replaceable& text,
676 UBool rollback)
const;
693 int32_t getMaximumContextLength(
void)
const;
703 void setMaximumContextLength(
int32_t maxContextLength);
877 UBool escapeUnprintable)
const;
945 virtual void handleGetSourceSet(
UnicodeSet& result)
const;
1073 static void _registerSpecialInverse(
const UnicodeString& target,
1075 UBool bidirectional);
1185 static int32_t _countAvailableSources(
void);
1294 return maximumContextLength;
Transliterator is an abstract class that transliterates text from one format to another.
A mutable set of Unicode characters and multicharacter strings.
Position structure for utrans_transIncremental() incremental transliteration.
Replaceable is an abstract base class representing a string of characters that supports the replaceme...
int32_t integer
This token, interpreted as a 32-bit integer.
Transliterator *(* Factory)(const UnicodeString &ID, Token context)
A function that creates and returns a Transliterator.
UBool truncate(int32_t targetLength)
Truncate this UnicodeString to the targetLength.
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...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
int32_t getMaximumContextLength(void) const
Returns the length of the longest context required by this transliterator.
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.
void setID(const UnicodeString &id)
Set the ID of this transliterators.
int32_t length(void) const
Return the length of the UnicodeString object.
A context integer or pointer for a factory function, passed by value.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Common ICU base class UObject.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
static Token pointerToken(void *)
Return a token containing a pointer.
void * pointer
This token, interpreted as a native pointer.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
UObject is the common ICU "boilerplate" class.
C API: Parse Error Information.
static Token integerToken(int32_t)
Return a token containing an integer.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Base class for 'pure' C++ implementations of uenum api.
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.
A Locale object represents a specific geographical, political, or cultural region.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UTransDirection
Direction constant indicating the direction in a transliterator, e.g., the forward or reverse rules o...
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.