21 #ifndef __UCASEMAP_H__ 22 #define __UCASEMAP_H__ 83 #if U_SHOW_CPLUSPLUS_API 148 #if !UCONFIG_NO_BREAK_ITERATION 231 UChar *dest, int32_t destCapacity,
232 const UChar *src, int32_t srcLength,
235 #endif // UCONFIG_NO_BREAK_ITERATION 262 char *dest, int32_t destCapacity,
263 const char *src, int32_t srcLength,
291 char *dest, int32_t destCapacity,
292 const char *src, int32_t srcLength,
295 #if !UCONFIG_NO_BREAK_ITERATION 343 char *dest, int32_t destCapacity,
344 const char *src, int32_t srcLength,
381 char *dest, int32_t destCapacity,
382 const char *src, int32_t srcLength,
struct UBreakIterator UBreakIterator
Opaque type representing an ICU Break iterator object.
int32_t ucasemap_utf8ToTitle(UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
Titlecase a UTF-8 string.
"Smart pointer" class, closes a UCaseMap via ucasemap_close().
C API: Bit set option bit constants for various string and character processing functions.
int32_t ucasemap_utf8FoldCase(const UCaseMap *csm, char *dest, int32_t destCapacity, const char *src, int32_t srcLength, UErrorCode *pErrorCode)
Case-folds the characters in a UTF-8 string.
struct UCaseMap UCaseMap
C typedef for struct UCaseMap.
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.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
const char * ucasemap_getLocale(const UCaseMap *csm)
Get the locale ID that is used for language-dependent case mappings.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
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
The base type for UTF-16 code units and pointers.
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
Standard ICU4C error code type, a substitute for exceptions.
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.
void ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode)
Set the options bit set that is used for case folding and string comparisons.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.