diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-14 09:59:11 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-01-15 20:41:10 +0100 |
commit | 08ac22ddb9e848123934dad215c58cb03e7ad094 (patch) | |
tree | 3ae6898ec504a95982fef0f5bef41a596e8a5e41 /RichString.h | |
parent | ceee96dcba7d4932d1ec4d9a745a572c47c43c1d (diff) |
RichString: refactor writing limited amount of columns
Closes: #468
Diffstat (limited to 'RichString.h')
-rw-r--r-- | RichString.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/RichString.h b/RichString.h index 73e78204..7464fff1 100644 --- a/RichString.h +++ b/RichString.h @@ -52,10 +52,15 @@ void RichString_setAttr(RichString* this, int attrs); void RichString_appendChr(RichString* this, int attrs, char c, int count); +/* All appending and writing functions return the number of written characters (not columns). */ + int RichString_appendWide(RichString* this, int attrs, const char* data); int RichString_appendnWide(RichString* this, int attrs, const char* data, int len); +/* columns takes the maximum number of columns to write and contains on return the number of columns written. */ +int RichString_appendnWideColumns(RichString* this, int attrs, const char* data, int len, int* columns); + int RichString_writeWide(RichString* this, int attrs, const char* data); int RichString_appendAscii(RichString* this, int attrs, const char* data); |