chiark / gitweb /
Some minor debianization fixes
[disorder] / lib / unicode.c
index 40b98549238f6ee45b06f3ae8a6eb9ef43ba2588..5803926cdce6f124b111f7b37fdf88c32ff0fb14 100644 (file)
@@ -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