17 #ifndef __NORMALIZER2_H__
18 #define __NORMALIZER2_H__
27 #if !UCONFIG_NO_NORMALIZATION
102 getInstance(
const char *packageName,
120 normalize(src, result, errorCode);
328 norm2(n2), set(filterSet) {}
484 #endif // !UCONFIG_NO_NORMALIZATION
485 #endif // __NORMALIZER2_H__
FilteredNormalizer2(const Normalizer2 &n2, const UnicodeSet &filterSet)
Constructs a filtered normalizer wrapping any Normalizer2 instance and a filter set.
A mutable set of Unicode characters and multicharacter strings.
virtual UBool hasBoundaryAfter(UChar32 c) const =0
Tests if the character always has a normalization boundary after it, regardless of context...
virtual UNormalizationCheckResult quickCheck(const UnicodeString &s, UErrorCode &errorCode) const =0
Tests if the string is normalized.
virtual UBool isNormalized(const UnicodeString &s, UErrorCode &errorCode) const =0
Tests if the string is normalized.
Normalization filtered by a UnicodeSet.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
virtual UBool getDecomposition(UChar32 c, UnicodeString &decomposition) const =0
Gets the decomposition mapping of c.
C API: New API for Unicode Normalization.
virtual UBool hasBoundaryBefore(UChar32 c) const =0
Tests if the character always has a normalization boundary before it, regardless of context...
UnicodeString normalize(const UnicodeString &src, UErrorCode &errorCode) const
Returns the normalized form of the source string.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
virtual UnicodeString & append(UnicodeString &first, const UnicodeString &second, UErrorCode &errorCode) const =0
Appends the second string to the first string (merging them at the boundary) and returns the first st...
USetSpanCondition
Argument values for whether span() and similar functions continue while the current character is cont...
virtual UnicodeString & normalizeSecondAndAppend(UnicodeString &first, const UnicodeString &second, UErrorCode &errorCode) const =0
Appends the normalized form of the second string to the first string (merging them at the boundary) a...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UObject is the common ICU "boilerplate" class.
UNormalization2Mode
Constants for normalization modes.
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...
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
Unicode normalization functionality for standard Unicode normalization or for using custom mapping ta...
virtual UBool isInert(UChar32 c) const =0
Tests if the character is normalization-inert.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UNormalizationCheckResult
Result values for normalization quick check functions.
virtual int32_t spanQuickCheckYes(const UnicodeString &s, UErrorCode &errorCode) const =0
Returns the end of the normalized substring of the input string.
int8_t UBool
The ICU boolean type.