summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-11-23 20:12:11 +0100
committercgzones <cgzones@googlemail.com>2020-11-25 20:45:54 +0100
commitadf918520976a5f06181c1c05392a0da6e4bbaa5 (patch)
tree69caa800c12c7d576f4dbbaa41c3099dd315718c /RichString.h
parentc038326a709f2e62c1c458c4c59dd71e5490fc1c (diff)
Fully support non-ascii characters in Meter-Bar
Currently the code does not handle multi-byte characters, so length- computations take the raw count of C characters and not the to displayed size into account. An example is the degree sign for temperatures. Closes: #329
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/RichString.h b/RichString.h
index 12b09540..262befc5 100644
--- a/RichString.h
+++ b/RichString.h
@@ -50,6 +50,8 @@ void RichString_prune(RichString* this);
void RichString_setAttr(RichString* this, int attrs);
+void RichString_appendChr(RichString* this, char c, int count);
+
void RichString_append(RichString* this, int attrs, const char* data);
void RichString_appendn(RichString* this, int attrs, const char* data, int len);

© 2014-2024 Faster IT GmbH | imprint | privacy policy