summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-10 17:33:40 +0200
committerMattias Andrée <maandree@kth.se>2021-09-10 17:33:52 +0200
commit9279dbb2741de7bc599699a95728b1b7c2b6790a (patch)
treec09d02cdaeff78be8f6a89d49014a3640bec870c /common.h
parentAdd multicall binary (diff)
downloadlibnumtext-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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.h b/common.h
index 978103a..1404b35 100644
--- a/common.h
+++ b/common.h
@@ -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);