aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap_numeric_type_string.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-10-18 13:21:09 +0200
committerMattias Andrée <m@maandree.se>2026-10-18 13:21:09 +0200
commit53b3e04d87f1f81845716e585efcba3c9f7cf9e5 (patch)
tree6daf34677c9dc5b2dbda75881a084aff0d400f88 /libcmap_numeric_type_string.c
parentAdd to codepoint data whether the codepoint is a character or not (diff)
downloadlibcmap-53b3e04d87f1f81845716e585efcba3c9f7cf9e5.tar.gz
libcmap-53b3e04d87f1f81845716e585efcba3c9f7cf9e5.tar.bz2
libcmap-53b3e04d87f1f81845716e585efcba3c9f7cf9e5.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcmap_numeric_type_string.c')
-rw-r--r--libcmap_numeric_type_string.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcmap_numeric_type_string.c b/libcmap_numeric_type_string.c
new file mode 100644
index 0000000..e9ea113
--- /dev/null
+++ b/libcmap_numeric_type_string.c
@@ -0,0 +1,15 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+const char *
+libcmap_numeric_type_string(enum libcmap_numeric_type value)
+{
+ switch (value) {
+ case LIBCMAP_NUMERIC_TYPE_NONE: return "None";
+ case LIBCMAP_NUMERIC_TYPE_DECIMAL: return "Decimal";
+ case LIBCMAP_NUMERIC_TYPE_DIGIT: return "Digit";
+ case LIBCMAP_NUMERIC_TYPE_NUMERIC: return "Numeric";
+ default: return NULL;
+ }
+}