diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-10 17:33:40 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-10 17:33:52 +0200 |
commit | 9279dbb2741de7bc599699a95728b1b7c2b6790a (patch) | |
tree | c09d02cdaeff78be8f6a89d49014a3640bec870c /common.h | |
parent | Add multicall binary (diff) | |
download | libnumtext-9279dbb2741de7bc599699a95728b1b7c2b6790a.tar.gz libnumtext-9279dbb2741de7bc599699a95728b1b7c2b6790a.tar.bz2 libnumtext-9279dbb2741de7bc599699a95728b1b7c2b6790a.tar.xz |
m + add card2ord
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -49,10 +49,20 @@ struct common_num2text_params { }; +struct option { + const char *option_pattern; + const char *option; + uint32_t flag; + uint32_t mask; +}; + + int run(int argc, char *argv[], ssize_t (*callback)(char *outbuf, size_t outbuf_size, const char *num, size_t num_len)); int get_language(const char *arg, enum libnumtext_language *langp, int *have_langp); +void process_options(char **optss, size_t n_optss, struct option *options, uint32_t *flagsp, uint32_t *maskedp); int numtext_strip_main(int argc, char *argv[]); +int card2ord_main(int argc, char *argv[]); ssize_t libnumtext_num2text_swedish__(struct common_num2text_params *params, const char *num, size_t num_len, uint32_t flags); |