diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-08 00:04:37 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-08 00:04:37 +0200 |
commit | 2c1631827c8875242d46054acd061244415e423f (patch) | |
tree | 44adabc5f246cda800deab543bad57541514eeb7 /common.h | |
parent | Refactor code (diff) | |
download | libnumtext-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.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |