26 #include <unicode/ustring.h>
27 #include <unicode/uchar.h>
34 int32_t sortkey_len = 0;
39 sortkey_len = ucol_getSortKey(coll, src16->
utf16, src16->
utf16_len,
43 if (sortkey_len > cap)
46 sortkey_len = ucol_getSortKey(coll, src16->
utf16, src16->
utf16_len,
50 if (U_SUCCESS(*status)
Internal header for ICU utilities.
void icu_sortkey8_from_utf16(UCollator *coll, struct icu_buf_utf8 *dest8, struct icu_buf_utf16 *src16, UErrorCode *status)
struct icu_buf_utf8 * icu_buf_utf8_resize(struct icu_buf_utf8 *buf8, size_t capacity)
struct icu_buf_utf8 * icu_buf_utf8_clear(struct icu_buf_utf8 *buf8)
Header for memory handling functions.