aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap_numeric_type_string.c
blob: e9ea113ff75cdd566f0024573e0fdaa9c95e6347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
	}
}