X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/c85b702265244a34b1f977c9bf22f913689b906f..0d0253c93a64d2b5206e902c648e1e2c6bc5d510:/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