#include "unicode/utypes.h"
#include "unicode/ustring.h"
Go to the source code of this file.
Typedefs | |
typedef UCaseMap | UCaseMap |
C typedef for struct UCaseMap. | |
Functions | |
U_DRAFT UCaseMap * | ucasemap_open (const char *locale, uint32_t options, UErrorCode *pErrorCode) |
Open a UCaseMap service object for a locale and a set of options. | |
U_DRAFT void | ucasemap_close (UCaseMap *csm) |
Close a UCaseMap service object. | |
U_DRAFT const char * | ucasemap_getLocale (const UCaseMap *csm) |
Get the locale ID that is used for language-dependent case mappings. | |
U_DRAFT uint32_t | ucasemap_getOptions (const UCaseMap *csm) |
Get the options bit set that is used for case folding and string comparisons. | |
U_DRAFT void | ucasemap_setLocale (UCaseMap *csm, const char *locale, UErrorCode *pErrorCode) |
Set the locale ID that is used for language-dependent case mappings. | |
U_DRAFT void | ucasemap_setOptions (UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode) |
Set the options bit set that is used for case folding and string comparisons. | |
U_DRAFT int32_t | ucasemap_utf8ToLower (const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) |
Lowercase the characters in a UTF-8 string. | |
U_DRAFT int32_t | ucasemap_utf8ToUpper (const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode) |
Uppercase the characters in a UTF-8 string. |
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.
ucasemap_utf8ToLower() and ucasemap_utf8ToUpper() operate directly on UTF-8 strings.
Definition in file ucasemap.h.
|
C typedef for struct UCaseMap.
Definition at line 45 of file ucasemap.h. |
|
Close a UCaseMap service object.
|
|
Get the locale ID that is used for language-dependent case mappings.
|
|
Get the options bit set that is used for case folding and string comparisons.
|
|
Open a UCaseMap service object for a locale and a set of options. The locale ID and options are preprocessed so that functions using the service object need not process them in each call.
|
|
Set the locale ID that is used for language-dependent case mappings.
|
|
Set the options bit set that is used for case folding and string comparisons.
|
|
Lowercase the characters in a UTF-8 string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original. The source string and the destination buffer must not overlap.
|
|
Uppercase the characters in a UTF-8 string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original. The source string and the destination buffer must not overlap.
|