diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-17 06:17:04 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-17 19:45:23 +0200 |
commit | 997bb3428312779a6f5af0264fa772407184ec17 (patch) | |
tree | cea5e70d7042989caf417905429b0b22653aa91d /src/sbuf.h | |
parent | 12da3db72c3bc1e6ea67f7d172dd638ab5039824 (diff) | |
download | ratpoison-997bb3428312779a6f5af0264fa772407184ec17.zip |
Rename concat_width to sbuf_utf8_nconcat, and move it to sbuf.c
This function appends n UTF-8 characters to its sbuf parameter. Falls
back to bytes in a non-UTF-8 locale. If width = -1, it appends the
whole input string.
Diffstat (limited to 'src/sbuf.h')
-rw-r--r-- | src/sbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ void sbuf_free (struct sbuf *b); char *sbuf_free_struct (struct sbuf *b); char *sbuf_concat (struct sbuf *b, const char *str); char *sbuf_nconcat (struct sbuf *b, const char *str, int len); +char *sbuf_utf8_nconcat (struct sbuf *b, const char *s, int width); char *sbuf_copy (struct sbuf *b, const char *str); char *sbuf_clear (struct sbuf *b); char *sbuf_get (struct sbuf *b); |