12#ifndef __WMEM_STRBUF_H__
13#define __WMEM_STRBUF_H__
15#include <ws_codepoints.h>
64#define wmem_strbuf_create(allocator) \
65 wmem_strbuf_new(allocator, "")
86wmem_strbuf_append_len(
wmem_strbuf_t *strbuf,
const char *str,
size_t append_len);
90wmem_strbuf_append_printf(
wmem_strbuf_t *strbuf,
const char *format, ...)
95wmem_strbuf_append_vprintf(
wmem_strbuf_t *strbuf, const
char *fmt, va_list ap);
103wmem_strbuf_append_c_count(
wmem_strbuf_t *strbuf, const
char c,
size_t count);
107wmem_strbuf_append_unichar(
wmem_strbuf_t *strbuf, const gunichar c);
109#define wmem_strbuf_append_unichar_repl(buf) \
110 wmem_strbuf_append_unichar(buf, UNICODE_REPLACEMENT_CHARACTER)
117wmem_strbuf_append_unichar_validated(
wmem_strbuf_t *strbuf,
const gunichar c);
126wmem_strbuf_append_hex_unichar(
wmem_strbuf_t *strbuf, gunichar);
130wmem_strbuf_truncate(
wmem_strbuf_t *strbuf,
const size_t len);
168wmem_strbuf_utf8_validate(
wmem_strbuf_t *strbuf,
const char **endptr);
WS_DLL_PUBLIC char * wmem_strbuf_finalize(wmem_strbuf_t *strbuf)
Definition wmem_strbuf.c:383
Definition wmem_allocator.h:27
Definition wmem_strbuf.h:42