From 53b3e04d87f1f81845716e585efcba3c9f7cf9e5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 Oct 2026 13:21:09 +0200 Subject: Misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcmap_numeric_type_string.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libcmap_numeric_type_string.c (limited to 'libcmap_numeric_type_string.c') 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; + } +} -- cgit v1.3.1