summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-08 00:04:37 +0200
committerMattias Andrée <maandree@kth.se>2021-09-08 00:04:37 +0200
commit2c1631827c8875242d46054acd061244415e423f (patch)
tree44adabc5f246cda800deab543bad57541514eeb7 /common.h
parentRefactor code (diff)
downloadlibnumtext-2c1631827c8875242d46054acd061244415e423f.tar.gz
libnumtext-2c1631827c8875242d46054acd061244415e423f.tar.bz2
libnumtext-2c1631827c8875242d46054acd061244415e423f.tar.xz
Refactor
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/common.h b/common.h
index e3c9912..e23ebb7 100644
--- a/common.h
+++ b/common.h
@@ -27,4 +27,13 @@
#define IS_UTF8_CHAR_CONTINUATION(B) (((B) & 0xC0) == 0x80)
-ssize_t libnumtext_num2text_swedish__(char *outbuf, size_t outbuf_size, const char *num, size_t num_len, uint32_t flags);
+struct common_num2text_params {
+ char *outbuf;
+ size_t outbuf_size;
+ size_t sign_length;
+ size_t number_offset;
+ size_t trailing_zeroes;
+};
+
+
+ssize_t libnumtext_num2text_swedish__(struct common_num2text_params *params, const char *num, size_t num_len, uint32_t flags);