26 #include <unicode/ustring.h>
35 struct icu_casemap *casemap
36 = (
struct icu_casemap *)
xmalloc(
sizeof(
struct icu_casemap));
37 casemap->action = action;
39 switch (casemap->action)
59 struct icu_casemap * casemap
60 = (
struct icu_casemap *)
xmalloc(
sizeof(
struct icu_casemap));
61 casemap->action = old->action;
80 casemap->action, status);
86 const char *locale,
char action,
112 U_FOLD_CASE_DEFAULT, status);
115 *status = U_UNSUPPORTED_ERROR;
124 const char *locale,
char action,
127 int32_t dest16_len = 0;
132 dest16->
utf16[0] = (UChar) 0;
137 dest16_len = icu_utf16_sub(dest16, src16, locale, action, status);
140 if (*status == U_BUFFER_OVERFLOW_ERROR
144 *status = U_ZERO_ERROR;
146 icu_utf16_sub(dest16, src16, locale, action, status);
149 if (U_SUCCESS(*status) && dest16_len <= dest16->utf16_cap)
154 dest16->
utf16[0] = (UChar) 0;
Internal header for ICU utilities.
struct icu_casemap * icu_casemap_create(char action, UErrorCode *status)
struct icu_casemap * icu_casemap_clone(struct icu_casemap *old)
int icu_utf16_casemap(struct icu_buf_utf16 *dest16, struct icu_buf_utf16 *src16, const char *locale, char action, UErrorCode *status)
int icu_casemap_casemap(struct icu_casemap *casemap, struct icu_buf_utf16 *dest16, struct icu_buf_utf16 *src16, UErrorCode *status, const char *locale)
struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 *buf16, size_t capacity)
void icu_casemap_destroy(struct icu_casemap *casemap)
Header for memory handling functions.
#define xfree(x)
utility macro which calls xfree_f
#define xmalloc(x)
utility macro which calls malloc_f