FreeCalypso > hg > themwi-nanp
view include/number_utils.h @ 15:a24f0794ab4d default tip
INSTALL: document the new way
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 21 May 2024 00:29:21 +0000 |
parents | 159dd90eeafe |
children |
line wrap: on
line source
/* * This header file provides function prototype declarations * for phone-number-related utility functions. */ #pragma once #include <stdint.h> #include <stdbool.h> uint16_t digits3_to_uint16(const char *numstr); uint16_t digits4_to_uint16(const char *numstr); bool is_nanp_valid_prefix(const char *numstr); int grok_number_string(const char *str, bool allow_hyphen); void dehyphen_number_string(const char *src, char *dest);