RichString: refactor writing limited amount of columns

Closes: #468
This commit is contained in:
Christian Göttsche
2021-01-14 09:59:11 +01:00
committed by cgzones
parent ceee96dcba
commit 08ac22ddb9
3 changed files with 45 additions and 3 deletions

View File

@ -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);