ustr (3) - Linux Manuals
ustr: ustr string library functions
Command to display ustr
manual in Linux: $ man 3 ustr
NAME
ustr - ustr string library functions
SYNOPSIS
#include "ustr.h"
struct Ustr *USTR(void *);
struct Ustrp *USTRP(void *);
struct Ustr *USTR1(symbol, const char[]);
struct Ustr *USTR2(symbol, symbol, const char[]);
struct Ustr *USTR4(symbol, symbol, symbol, symbol, const char[]);
struct Ustr *USTR1_CHK(symbol, const char[]);
struct Ustr *USTR2_CHK(symbol, symbol, const char[]);
struct Ustr *USTR4_CHK(symbol, symbol, symbol, symbol, const char[]);
struct Ustr *USTRP1(symbol, const char[]);
struct Ustr *USTRP2(symbol, symbol, const char[]);
struct Ustrp *USTRP4(symbol, symbol, symbol, symbol, const char[]);
struct Ustr *USTRP1_CHK(symbol, const char[]);
struct Ustr *USTRP2_CHK(symbol, symbol, const char[]);
struct Ustrp *USTRP4_CHK(symbol, symbol, symbol, symbol, const char[]);
size_t USTR_SIZE_FIXED(size_t);
struct Ustr *ustr_init_fixed(void *, size_t, int, size_t);
struct Ustr *USTR_SC_INIT_AUTO(char[], int, size_t);
struct Ustr *USTR_SC_INIT_AUTO_OSTR(char[], int, size_t);
int ustr_assert_valid(Ustr *);
int ustr_assert_valid_subustr(Ustr *, size_t, size_t);
int USTR_CNTL_MALLOC_CHECK_BEG(int);
int USTR_CNTL_MALLOC_CHECK_LVL(void);
int USTR_CNTL_MALLOC_CHECK_MEM(void *);
int USTR_CNTL_MALLOC_CHECK_MEM_SZ(void *, size_t);
int USTR_CNTL_MALLOC_CHECK_MEM_MINSZ(void *, size_t);
int USTR_CNTL_MALLOC_CHECK_MEM_USTR(Ustr *);
int USTR_CNTL_MALLOC_CHECK_MEM_USTRP(Ustrp *);
int USTR_CNTL_MALLOC_CHECK_END(void);
int USTR_CNTL_MALLOC_CHECK_ADD(int);
int USTR_CNTL_MALLOC_CHECK_DEL(int);
size_t ustr_init_size(size_t, size_t, int, size_t);
struct Ustr *ustr_init_alloc(void *, size_t, size_t, size_t, int, int, size_t);
struct Ustr *ustr_dupx_empty(size_t, size_t, int, int);
struct Ustr *ustr_dup_empty(void);
struct Ustr *ustr_dupx_undef(size_t, size_t, int, int, size_t);
struct Ustr *ustr_dup_undef(size_t);
struct Ustr *ustr_dup(const struct Ustr *);
struct Ustr *ustr_dupx(size_t, size_t, int, int, const struct Ustr *);
struct Ustr *ustr_sc_dup(struct Ustr **);
struct Ustr *ustr_sc_dupx(size_t, size_t, int, int, struct Ustr **);
struct Ustr *ustr_dup_buf(const void *, size_t);
struct Ustr *ustr_dupx_buf(size_t, size_t, int, int, const void *, size_t);
struct Ustr *ustr_dup_cstr(const char *);
struct Ustr *ustr_dupx_cstr(size_t, size_t, int, int, const char *);
struct Ustr *USTR_DUP_OSTR(const char []);
struct Ustr *USTR_DUP_OBJ(...);
struct Ustr *ustr_dup_subustr(const struct Ustr *, size_t, size_t);
struct Ustr *ustr_dupx_subustr(size_t, size_t, int, int, const struct Ustr *, size_t, size_t);
struct Ustr *ustr_dup_rep_chr(char, size_t);
struct Ustr *ustr_dupx_rep_chr(size_t, size_t, int, int, char, size_t);
struct Ustr *ustr_sc_vjoin(const struct Ustr *, const struct Ustr *, const struct Ustr *, va_list);
struct Ustr *ustr_sc_join(const struct Ustr *, const struct Ustr *, const struct Ustr *, ...);
struct Ustr *ustr_sc_vjoinx(size_t, size_t, int, int, const struct Ustr *, const struct Ustr *, const struct Ustr *, va_list);
struct Ustr *ustr_sc_joinx(size_t, size_t, int, int, const struct Ustr *, const struct Ustr *, const struct Ustr *, ...);
struct Ustr *ustr_sc_vconcat(const struct Ustr *, va_list);
struct Ustr *ustr_sc_concat(const struct Ustr *, ...);
struct Ustr *ustr_sc_vconcatx(size_t, size_t, int, int, const struct Ustr *, va_list);
struct Ustr *ustr_sc_concatx(size_t, size_t, int, int, const struct Ustr *, ...);
void ustr_free(struct Ustr *);
void ustrp_free(struct Ustr_pool *, struct Ustrp *);
void ustr_sc_free(struct Ustr **);
void ustr_sc_free2(struct Ustr **, struct Ustr *);
void ustr_sc_free_shared(struct Ustr **);
int ustr_del(struct Ustr **, size_t);
int ustr_del_subustr(struct Ustr **, size_t, size_t);
void ustr_sc_del(struct Ustr **);
int ustr_add_undef(struct Ustr **, size_t);
int ustr_add_buf(struct Ustr **, const void *, size_t);
int ustr_add_cstr(struct Ustr **, const char *);
int USTR_ADD_OSTR(struct Ustr **, const char []);
int USTR_ADD_OBJ(struct Ustr **, ...);
int ustr_add(struct Ustr **, const struct Ustr *);
int ustr_add_subustr(struct Ustr **, const struct Ustr *, size_t, size_t);
int ustr_add_rep_chr(struct Ustr **, char, size_t);
int ustr_set_undef(struct Ustr **, size_t);
int ustr_set_empty(struct Ustr **);
int ustr_set_buf(struct Ustr **, const void *, size_t);
int ustr_set_cstr(struct Ustr **, const char *);
int USTR_SET_OSTR(struct Ustr **, const char []);
int USTR_SET_OBJ(struct Ustr **, ...);
int ustr_set(struct Ustr **, const struct Ustr *);
int ustr_set_subustr(struct Ustr **, const struct Ustr *, size_t, size_t);
int ustr_set_rep_chr(struct Ustr **, char, size_t);
int ustr_ins_undef(struct Ustr **, size_t, size_t);
int ustr_ins_buf(struct Ustr **, size_t, const void *, size_t);
int ustr_ins_cstr(struct Ustr **, size_t, const char *);
int USTR_INS_OSTR(struct Ustr **, size_t, const char []);
int USTR_INS_OBJ(struct Ustr **, size_t, ...);
int ustr_ins(struct Ustr **, size_t, const struct Ustr *);
int ustr_ins_subustr(struct Ustr **, size_t, const struct Ustr *, size_t, size_t);
int ustr_ins_rep_chr(struct Ustr **, size_t, char, size_t);
int ustr_add_vfmt_lim(struct Ustr **, size_t, const char *, va_list);
int ustr_add_vfmt(struct Ustr **, const char *, va_list);
int ustr_add_fmt_lim(struct Ustr **, size_t, const char *, ...);
int ustr_add_fmt(struct Ustr **, const char *, ...);
struct Ustr *ustr_dup_vfmt_lim(size_t, const char *, va_list);
struct Ustr *ustr_dup_vfmt(size_t, const char *, va_list);
struct Ustr *ustr_dup_fmt_lim(size_t, const char *, ...);
struct Ustr *ustr_dup_fmt(const char *, ...);
struct Ustr *ustr_dupx_fmt_lim(size_t, size_t, int, int, size_t, const char *, ...);
struct Ustr *ustr_dupx_fmt(size_t, size_t, int, int, const char *, ...);
int ustr_set_vfmt_lim(struct Ustr **, size_t, const char *, va_list);
int ustr_set_vfmt(struct Ustr **, const char *, va_list);
int ustr_set_fmt_lim(struct Ustr **, size_t, const char *, ...);
int ustr_set_fmt(struct Ustr **, const char *, ...);
int ustr_ins_vfmt_lim(struct Ustr **, size_t, size_t, const char *, va_list);
int ustr_ins_vfmt(struct Ustr **, size_t, const char *, va_list);
int ustr_ins_fmt_lim(struct Ustr **, size_t, size_t, const char *, ...);
int ustr_ins_fmt(struct Ustr **, size_t, const char *, ...);
int ustr_sub_vfmt_lim(struct Ustr **, size_t, size_t, const char *, va_list);
int ustr_sub_vfmt(struct Ustr **, size_t, const char *, va_list);
int ustr_sub_fmt_lim(struct Ustr **, size_t, size_t, const char *, ...);
int ustr_sub_fmt(struct Ustr **, size_t, const char *, ...);
int ustr_sc_sub_vfmt_lim(struct Ustr **, size_t, size_t, size_t, const char *, va_list);
int ustr_sc_sub_vfmt(struct Ustr **, size_t, size_t, const char *, va_list);
int ustr_sc_sub_fmt_lim(struct Ustr **, size_t, size_t, size_t, const char *, ...);
int ustr_sc_sub_fmt(struct Ustr **, size_t, size_t, const char *, ...);
size_t ustr_len(const struct Ustr *);
const char *ustr_cstr(const struct Ustr *);
char *ustr_wstr(struct Ustr *);
int ustr_alloc(const struct Ustr *);