diff options
Diffstat (limited to 'libcmap_numeric_type_string.c')
| -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; + } +} |
