summaryrefslogtreecommitdiff
path: root/src/sbuf.h
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 06:17:04 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 19:45:23 +0200
commit997bb3428312779a6f5af0264fa772407184ec17 (patch)
treecea5e70d7042989caf417905429b0b22653aa91d /src/sbuf.h
parent12da3db72c3bc1e6ea67f7d172dd638ab5039824 (diff)
downloadratpoison-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sbuf.h b/src/sbuf.h
index e565efc..820d564 100644
--- a/src/sbuf.h
+++ b/src/sbuf.h
@@ -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);