summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-08 21:07:39 +0200
committerMattias Andrée <maandree@kth.se>2021-09-08 21:09:07 +0200
commitd4fa67be4b172654f7b866c11d695123099baaac (patch)
tree4e425c0d11f369173099f8b543e38888e941cfd8
parentTest DENOM|ORD (diff)
downloadlibnumtext-d4fa67be4b172654f7b866c11d695123099baaac.tar.gz
libnumtext-d4fa67be4b172654f7b866c11d695123099baaac.tar.bz2
libnumtext-d4fa67be4b172654f7b866c11d695123099baaac.tar.xz
m + add TODO
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--TODO5
-rw-r--r--libnumtext.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..0217292
--- /dev/null
+++ b/TODO
@@ -0,0 +1,5 @@
+Add [libnumtext_]text2num: text to digits, with analysis (possible flags from num2text)
+Add [libnumtext_]card2ord: convert cardinal in digits to ordinal in digits with necessary text (like superiors in English)
+Add num2text: conversion utility that wraps libnumtext_num2text
+Add numtext-strip: utility that wraps libnumtext_remove_separators
+Add man pages and README
diff --git a/libnumtext.h b/libnumtext.h
index 7e8f944..27bd73f 100644
--- a/libnumtext.h
+++ b/libnumtext.h
@@ -51,10 +51,10 @@ enum libnumtext_language {
#define LIBNUMTEXT_N2T_SWEDISH_LATEX_TRIPLETS UINT32_C(0x00002000) /* …, e"ttusen, … (for use in LaTeX) */
/* [1] If used, also use LIBNUMTEXT_N2T_SWEDISH_IMPLICIT_ONE, otherwise the Swedish becomes odd, and arguably incorrect */
-/* [2] Requires LIBNUMTEXT_N2T_SWEDISH_ORDINAL (no effect) or LIBNUMTEXT_N2T_SWEDISH_DENOMINATOR */
+/* [2] Requires LIBNUMTEXT_N2T_SWEDISH_ORDINAL (no effect) or LIBNUMTEXT_N2T_SWEDISH_DENOMINATOR */
-/* input to libnumtext_num2str may not contain separators */
+/* input to libnumtext_num2text may not contain separators */
ssize_t libnumtext_remove_separators(char *outbuf, size_t outbuf_size, const char *num, size_t num_len,
enum libnumtext_language lang);