X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/fbcfb25715ddbb522c8efac3faec1eca4811683d..5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d:/lib/unicode.c diff --git a/lib/unicode.c b/lib/unicode.c index 40b9854..5803926 100644 --- a/lib/unicode.c +++ b/lib/unicode.c @@ -109,6 +109,16 @@ static inline int utf32__combining_class(uint32_t c) { return utf32__unidata(c)->ccc; } +/** @brief Return the combining class of @p c + * @param c Code point + * @return Combining class of @p c + * + * @p c can be any 32-bit value, a sensible value will be returned regardless. + */ +int utf32_combining_class(uint32_t c) { + return utf32__combining_class(c); +} + /** @brief Return the General_Category value for @p c * @param c Code point * @return General_Category property value