16 #if U_SHOW_CPLUSPLUS_API 23 #if !UCONFIG_NO_NORMALIZATION 138 #ifndef U_HIDE_DEPRECATED_API 206 #ifndef U_HIDE_DEPRECATED_API 244 UBool compat, int32_t options,
266 UBool compat, int32_t options,
450 static inline int32_t
455 #ifndef U_HIDE_DEPRECATED_API 531 void setIndexOnly(int32_t index);
554 int32_t getIndex(
void)
const;
564 int32_t startIndex(
void)
const;
576 int32_t endIndex(
void)
const;
612 int32_t hashCode(
void)
const;
663 void setOption(int32_t option,
676 UBool getOption(int32_t option)
const;
725 static UClassID U_EXPORT2 getStaticClassID();
745 UBool nextNormalize();
746 UBool previousNormalize();
749 void clearBuffer(
void);
765 int32_t currentIndex, nextIndex;
776 #ifndef U_HIDE_DEPRECATED_API 785 return quickCheck(source, mode, 0, status);
792 return isNormalized(source, mode, 0, status);
static UBool isNormalized(const UnicodeString &src, UNormalizationMode mode, UErrorCode &errorCode)
Test if a string is in a given normalization form.
static UNormalizationCheckResult quickCheck(const UnicodeString &source, UNormalizationMode mode, UErrorCode &status)
Performing quick check on a string, to quickly determine if the string is in a particular normalizati...
int32_t unorm_compare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode)
Compares two strings for canonical equivalence.
static int32_t compare(const UnicodeString &s1, const UnicodeString &s2, uint32_t options, UErrorCode &errorCode)
Compare two strings for canonical equivalence.
UNormalizationMode
Constants for normalization modes.
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.
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.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
const UChar * toUCharPtr(const char16_t *p)
Converts from const char16_t * to const UChar *.
Old Unicode normalization API.
C++ API: Common ICU base class UObject.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
int32_t length(void) const
Return the length of the UnicodeString object.
const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types...
char16_t * getBuffer(int32_t minCapacity)
Get a read/write pointer to the internal buffer.
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.
UBool operator!=(const Normalizer &that) const
Returns FALSE when both iterators refer to the same character in the same input text.
UObject is the common ICU "boilerplate" class.
Normalization filtered by a UnicodeSet.
UNormalizationCheckResult
Result values for normalization quick check functions.
int8_t UBool
The ICU boolean type.