summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-07 23:16:18 +0200
committerMattias Andrée <maandree@kth.se>2021-09-07 23:16:18 +0200
commitd2ca51992555eedcd140a6e7e6ed5e5d2996ca67 (patch)
treed47680f9e7e840ded78eaf34fd49e0c1fda13d3c /common.h
parentRemove leftover code (diff)
downloadlibnumtext-d2ca51992555eedcd140a6e7e6ed5e5d2996ca67.tar.gz
libnumtext-d2ca51992555eedcd140a6e7e6ed5e5d2996ca67.tar.bz2
libnumtext-d2ca51992555eedcd140a6e7e6ed5e5d2996ca67.tar.xz
Simplify code
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 15801eb..e3c9912 100644
--- a/common.h
+++ b/common.h
@@ -24,5 +24,7 @@
#define UNICODE_MINUS "−"
+#define IS_UTF8_CHAR_CONTINUATION(B) (((B) & 0xC0) == 0x80)
+
ssize_t libnumtext_num2text_swedish__(char *outbuf, size_t outbuf_size, const char *num, size_t num_len, uint32_t flags);