mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Split RichString_(append|appendn|write) into wide and ascii
RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
This commit is contained in:

committed by
BenBE

parent
5506925b34
commit
157086e750
12
RichString.h
12
RichString.h
@ -52,10 +52,16 @@ 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_appendWide(RichString* this, int attrs, const char* data);
|
||||
|
||||
void RichString_appendn(RichString* this, int attrs, const char* data, int len);
|
||||
void RichString_appendnWide(RichString* this, int attrs, const char* data, int len);
|
||||
|
||||
void RichString_write(RichString* this, int attrs, const char* data);
|
||||
void RichString_writeWide(RichString* this, int attrs, const char* data);
|
||||
|
||||
void RichString_appendAscii(RichString* this, int attrs, const char* data);
|
||||
|
||||
void RichString_appendnAscii(RichString* this, int attrs, const char* data, int len);
|
||||
|
||||
void RichString_writeAscii(RichString* this, int attrs, const char* data);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user