19 #ifndef __UCASEMAP_H__
20 #define __UCASEMAP_H__
139 #define U_TITLECASE_NO_LOWERCASE 0x100
164 #define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
166 #if !UCONFIG_NO_BREAK_ITERATION
280 char *dest,
int32_t destCapacity,
281 const char *src,
int32_t srcLength,
309 char *dest,
int32_t destCapacity,
310 const char *src,
int32_t srcLength,
313 #if !UCONFIG_NO_BREAK_ITERATION
361 char *dest,
int32_t destCapacity,
362 const char *src,
int32_t srcLength,
397 char *dest,
int32_t destCapacity,
398 const char *src,
int32_t srcLength,
int32_t ucasemap_utf8ToTitle(UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
Titlecase a UTF-8 string.
int32_t ucasemap_utf8FoldCase(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
Case-fold the characters in a UTF-8 string.
struct UCaseMap UCaseMap
C typedef for struct UCaseMap.
void UBreakIterator
Opaque type representing an ICU Break iterator object.
unsigned int uint32_t
Define 64 bit limits.
int32_t ucasemap_toTitle(UCaseMap *csm, UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, UErrorCode *pErrorCode)
Titlecase a UTF-16 string.
void ucasemap_close(UCaseMap *csm)
Close a UCaseMap service object.
const char * ucasemap_getLocale(const UCaseMap *csm)
Get the locale ID that is used for language-dependent case mappings.
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.
UCaseMap * ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode)
Open a UCaseMap service object for a locale and a set of options.
C API: Unicode string handling functions.
const UBreakIterator * ucasemap_getBreakIterator(const UCaseMap *csm)
Get the break iterator that is used for titlecasing.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
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.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
void ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode)
Set the break iterator that is used for titlecasing.
void ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode)
Set the locale ID that is used for language-dependent case mappings.
Basic definitions for ICU, for both C and C++ APIs.
uint32_t ucasemap_getOptions(const UCaseMap *csm)
Get the options bit set that is used for case folding and string comparisons.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
void ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode)
Set the options bit set that is used for case folding and string comparisons.
signed int int32_t
Define 64 bit limits.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.