Logo Search packages:      
Sourcecode: icu version File versions  Download package

unorm2.h File Reference


Detailed Description

C API: New API for Unicode Normalization.

Unicode normalization functionality for standard Unicode normalization or for using custom mapping tables. All instances of UNormalizer2 are unmodifiable/immutable. Instances returned by unorm2_getInstance() are singletons that must not be deleted by the caller. For more details see the Normalizer2 C++ class.

Definition in file unorm2.h.

#include "unicode/utypes.h"
#include "unicode/localpointer.h"
#include "unicode/uset.h"

Go to the source code of this file.

Typedefs

typedef struct UNormalizer2 UNormalizer2

Enumerations

enum  UNormalization2Mode { UNORM2_COMPOSE, UNORM2_DECOMPOSE, UNORM2_FCD, UNORM2_COMPOSE_CONTIGUOUS }
enum  UNormalizationCheckResult { UNORM_NO, UNORM_YES, UNORM_MAYBE }

Functions

U_DRAFT int32_t U_EXPORT2 unorm2_append (const UNormalizer2 *norm2, UChar *first, int32_t firstLength, int32_t firstCapacity, const UChar *second, int32_t secondLength, UErrorCode *pErrorCode)
U_DRAFT void U_EXPORT2 unorm2_close (UNormalizer2 *norm2)
U_DRAFT const UNormalizer2
*U_EXPORT2 
unorm2_getInstance (const char *packageName, const char *name, UNormalization2Mode mode, UErrorCode *pErrorCode)
U_DRAFT UBool U_EXPORT2 unorm2_hasBoundaryAfter (const UNormalizer2 *norm2, UChar32 c)
U_DRAFT UBool U_EXPORT2 unorm2_hasBoundaryBefore (const UNormalizer2 *norm2, UChar32 c)
U_DRAFT UBool U_EXPORT2 unorm2_isInert (const UNormalizer2 *norm2, UChar32 c)
U_DRAFT UBool U_EXPORT2 unorm2_isNormalized (const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 unorm2_normalize (const UNormalizer2 *norm2, const UChar *src, int32_t length, UChar *dest, int32_t capacity, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 unorm2_normalizeSecondAndAppend (const UNormalizer2 *norm2, UChar *first, int32_t firstLength, int32_t firstCapacity, const UChar *second, int32_t secondLength, UErrorCode *pErrorCode)
U_DRAFT UNormalizer2 *U_EXPORT2 unorm2_openFiltered (const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode)
U_DRAFT
UNormalizationCheckResult
U_EXPORT2 
unorm2_quickCheck (const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode)
U_DRAFT int32_t U_EXPORT2 unorm2_spanQuickCheckYes (const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode)


Generated by  Doxygen 1.6.0   Back to index