Logo Search packages:      
Sourcecode: icu version File versions

Typedefs | Enumerations | Functions

unorm2.h File Reference

C API: New API for Unicode Normalization. More...

#include "unicode/utypes.h"
#include "unicode/localpointer.h"
#include "unicode/uset.h"
Include dependency graph for unorm2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum
UNormalizationCheckResult 
UNormalizationCheckResult
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_STABLE 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_STABLE void U_EXPORT2 unorm2_close (UNormalizer2 *norm2)
U_DRAFT int32_t U_EXPORT2 unorm2_getDecomposition (const UNormalizer2 *norm2, UChar32 c, UChar *decomposition, int32_t capacity, UErrorCode *pErrorCode)
U_STABLE const UNormalizer2
*U_EXPORT2 
unorm2_getInstance (const char *packageName, const char *name, UNormalization2Mode mode, UErrorCode *pErrorCode)
U_STABLE UBool U_EXPORT2 unorm2_hasBoundaryAfter (const UNormalizer2 *norm2, UChar32 c)
U_STABLE UBool U_EXPORT2 unorm2_hasBoundaryBefore (const UNormalizer2 *norm2, UChar32 c)
U_STABLE UBool U_EXPORT2 unorm2_isInert (const UNormalizer2 *norm2, UChar32 c)
U_STABLE UBool U_EXPORT2 unorm2_isNormalized (const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 unorm2_normalize (const UNormalizer2 *norm2, const UChar *src, int32_t length, UChar *dest, int32_t capacity, UErrorCode *pErrorCode)
U_STABLE 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_STABLE UNormalizer2 *U_EXPORT2 unorm2_openFiltered (const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode)
U_STABLE
UNormalizationCheckResult
U_EXPORT2 
unorm2_quickCheck (const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 unorm2_spanQuickCheckYes (const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode)

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.


Generated by  Doxygen 1.6.0   Back to index