comparison include/number_utils.h @ 0:159dd90eeafe

beginning, libnumutil compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 12 Dec 2023 23:52:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:159dd90eeafe
1 /*
2 * This header file provides function prototype declarations
3 * for phone-number-related utility functions.
4 */
5
6 #pragma once
7
8 #include <stdint.h>
9 #include <stdbool.h>
10
11 uint16_t digits3_to_uint16(const char *numstr);
12 uint16_t digits4_to_uint16(const char *numstr);
13
14 bool is_nanp_valid_prefix(const char *numstr);
15
16 int grok_number_string(const char *str, bool allow_hyphen);
17 void dehyphen_number_string(const char *src, char *dest);