19 #if !UCONFIG_NO_NORMALIZATION
235 UBool compat, int32_t options,
257 UBool compat, int32_t options,
440 static inline int32_t
520 void setIndexOnly(int32_t index);
543 int32_t getIndex(
void)
const;
553 int32_t startIndex(
void)
const;
565 int32_t endIndex(
void)
const;
601 int32_t hashCode(
void)
const;
652 void setOption(int32_t option,
665 UBool getOption(int32_t option)
const;
698 void setText(
const UChar* newText,
714 static UClassID U_EXPORT2 getStaticClassID();
733 UBool nextNormalize();
734 UBool previousNormalize();
737 void clearBuffer(
void);
753 int32_t currentIndex, nextIndex;
772 return quickCheck(source, mode, 0, status);
779 return isNormalized(source, mode, 0, status);
UNormalizationMode
Constants for normalization modes.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
C++ API: New API for Unicode Normalization.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UChar * getBuffer(int32_t minCapacity)
Get a read/write pointer to the internal buffer.
Unicode normalization functionality for standard Unicode normalization or for using custom mapping ta...
Abstract class that defines an API for iteration on text objects.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
C API: Unicode Normalization.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
The Normalizer class supports the standard normalization forms described in Unicode Standard Annex #1...
int32_t unorm_compare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode)
Compare two strings for canonical equivalence.
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.
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...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Character Iterator.
UObject is the common ICU "boilerplate" class.
Normalization filtered by a UnicodeSet.
UNormalizationCheckResult
Result values for normalization quick check functions.
int32_t length(void) const
Return the length of the UnicodeString object.
int8_t UBool
The ICU boolean type.