summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@alum.mit.edu>2014-12-12 18:25:07 -0500
committerSteven G. Johnson <stevenj@alum.mit.edu>2014-12-12 18:25:07 -0500
commit0f9e9796e6c2a3400e2c9149ceb483cc03111aee (patch)
treea9bb48359ac7114971aa6549841ebdd09f5fd2a6
parent1b3992ebe5c587446aaa962a314ef9244d86fb0d (diff)
downloadlibutf8proc-0f9e9796e6c2a3400e2c9149ceb483cc03111aee.tar.gz
libutf8proc-0f9e9796e6c2a3400e2c9149ceb483cc03111aee.tar.bz2
fix #15: redefine UTF8PROC_CATEGORY_CN to 0 consistent with what we actually return
-rw-r--r--mojibake.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mojibake.h b/mojibake.h
index fea87a5..fa93c8d 100644
--- a/mojibake.h
+++ b/mojibake.h
@@ -183,6 +183,7 @@ typedef struct utf8proc_property_struct {
const int32_t *casefold_mapping;
} utf8proc_property_t;
+#define UTF8PROC_CATEGORY_CN 0
#define UTF8PROC_CATEGORY_LU 1
#define UTF8PROC_CATEGORY_LL 2
#define UTF8PROC_CATEGORY_LT 3
@@ -212,7 +213,6 @@ typedef struct utf8proc_property_struct {
#define UTF8PROC_CATEGORY_CF 27
#define UTF8PROC_CATEGORY_CS 28
#define UTF8PROC_CATEGORY_CO 29
-#define UTF8PROC_CATEGORY_CN 30
#define UTF8PROC_BIDI_CLASS_L 1
#define UTF8PROC_BIDI_CLASS_LRE 2
#define UTF8PROC_BIDI_CLASS_LRO 3
@@ -293,7 +293,7 @@ DLLEXPORT const utf8proc_property_t *utf8proc_get_property(int32_t uc);
* Returns a pointer to a (constant) struct containing information about
* the unicode char with the given code point 'uc'.
* If the character is not existent a pointer to a special struct is
- * returned, where 'category' is a NULL pointer.
+ * returned, where 'category' is 0 (UTF8PROC_CATEGORY_CN).
* WARNING: The parameter 'uc' has to be in the range of 0x0000 to
* 0x10FFFF, otherwise the program might crash!
*/