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

ucasemap.h File Reference


Detailed Description

C API: Unicode case mapping functions using a UCaseMap service object.

The service object takes care of memory allocations, data loading, and setup for the attributes, as usual.

Currently, the functionality provided here does not overlap with uchar.h and ustring.h, except for ucasemap_toTitle().

ucasemap_utf8XYZ() functions operate directly on UTF-8 strings.

Definition in file ucasemap.h.

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

Go to the source code of this file.

Defines

#define U_TITLECASE_NO_BREAK_ADJUSTMENT   0x200
#define U_TITLECASE_NO_LOWERCASE   0x100

Typedefs

typedef struct UCaseMap UCaseMap

Functions

U_STABLE void U_EXPORT2 ucasemap_close (UCaseMap *csm)
U_STABLE const UBreakIterator
*U_EXPORT2 
ucasemap_getBreakIterator (const UCaseMap *csm)
U_STABLE const char *U_EXPORT2 ucasemap_getLocale (const UCaseMap *csm)
U_STABLE uint32_t U_EXPORT2 ucasemap_getOptions (const UCaseMap *csm)
U_STABLE UCaseMap *U_EXPORT2 ucasemap_open (const char *locale, uint32_t options, UErrorCode *pErrorCode)
U_STABLE void U_EXPORT2 ucasemap_setBreakIterator (UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode)
U_STABLE void U_EXPORT2 ucasemap_setLocale (UCaseMap *csm, const char *locale, UErrorCode *pErrorCode)
U_STABLE void U_EXPORT2 ucasemap_setOptions (UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 ucasemap_toTitle (UCaseMap *csm, UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 ucasemap_utf8FoldCase (const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 ucasemap_utf8ToLower (const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 ucasemap_utf8ToTitle (UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
U_STABLE int32_t U_EXPORT2 ucasemap_utf8ToUpper (const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)


Generated by  Doxygen 1.6.0   Back to index