19 #if !UCONFIG_NO_NORMALIZATION
513 void setIndexOnly(
int32_t index);
546 int32_t startIndex(
void)
const;
691 void setText(
const UChar* newText,
726 UBool nextNormalize();
727 UBool previousNormalize();
730 void clearBuffer(
void);
744 int32_t currentIndex, nextIndex;
781 mode, options, &status);
805 mode, options, &status);
UBool operator==(const Normalizer &that) const
Returns TRUE when both iterators refer to the same character in the same input text.
UNormalizationCheckResult unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength, UNormalizationMode mode, int32_t options, UErrorCode *pErrorCode)
Performing quick check on a string; same as unorm_quickCheck but takes an extra options parameter lik...
UBool operator!=(const Normalizer &that) const
Returns FALSE when both iterators refer to the same character in the same input text.
The Normalizer class supports the standard normalization forms described in Unicode Standard Annex #1...
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...
#define U_FAILURE(x)
Does the error code indicate a failure?
UNormalizationMode
Constants for normalization modes.
C API for code unit iteration.
unsigned int uint32_t
Define 64 bit limits.
UNormalizationCheckResult unorm_quickCheck(const UChar *source, int32_t sourcelength, UNormalizationMode mode, UErrorCode *status)
Performing quick check on a string, to quickly determine if the string is in a particular normalizati...
Abstract class that defines an API for iteration on text objects.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
static int32_t compare(const UnicodeString &s1, const UnicodeString &s2, uint32_t options, UErrorCode &errorCode)
Compare two strings for canonical equivalence.
UBool unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength, UNormalizationMode mode, int32_t options, UErrorCode *pErrorCode)
Test if a string is in a given normalization form; same as unorm_isNormalized but takes an extra opti...
C API: Unicode Normalization.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UBool unorm_isNormalized(const UChar *src, int32_t srcLength, UNormalizationMode mode, UErrorCode *pErrorCode)
Test if a string is in a given normalization form.
int32_t length(void) const
Return the length of the UnicodeString object.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
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.
Indicates that string cannot be determined if it is in the normalized format without further thorough...
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
#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.
static UBool isNormalized(const UnicodeString &src, UNormalizationMode mode, UErrorCode &errorCode)
Test if a string is in a given normalization form.
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...
UChar * getBuffer(int32_t minCapacity)
Get a read/write pointer to the internal buffer.
Basic definitions for ICU, for both C and C++ APIs.
#define FALSE
The FALSE value of a UBool.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
C++ API: Character Iterator.
UNormalizationCheckResult
Result values for unorm_quickCheck().
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.