diff options
| author | Mattias Andrée <m@maandree.se> | 2026-10-18 13:21:09 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-10-18 13:21:09 +0200 |
| commit | 53b3e04d87f1f81845716e585efcba3c9f7cf9e5 (patch) | |
| tree | 6daf34677c9dc5b2dbda75881a084aff0d400f88 /libcmap_numeric_type_string.c | |
| parent | Add to codepoint data whether the codepoint is a character or not (diff) | |
| download | libcmap-master.tar.gz libcmap-master.tar.bz2 libcmap-master.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | libcmap_numeric_type_string.c | 15 |
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; + } +} |
