Lines Matching refs:bwstring
1 /* $OpenBSD: bwstring.c,v 1.10 2024/09/20 02:00:46 jsg Exp $ */
40 #include "bwstring.h"
142 bwsprintf(FILE *f, struct bwstring *bws, const char *prefix, const char *suffix)
151 bwsrawdata(const struct bwstring *bws)
157 bwsrawlen(const struct bwstring *bws)
163 bws_memsize(const struct bwstring *bws)
165 return (sort_mb_cur_max == 1) ? (bws->len + 2 + sizeof(struct bwstring)) :
166 (SIZEOF_WCHAR_STRING(bws->len + 1) + sizeof(struct bwstring));
170 bws_setlen(struct bwstring *bws, size_t newlen)
184 struct bwstring *
187 struct bwstring *ret;
190 ret = sort_malloc(sizeof(struct bwstring) + 1 + sz);
193 ret = sort_malloc(sizeof(struct bwstring) +
206 struct bwstring *
207 bwsdup(const struct bwstring *s)
209 struct bwstring *ret;
228 struct bwstring *
234 struct bwstring *ret;
252 struct bwstring *
255 struct bwstring *ret;
310 bwsfree(struct bwstring *s)
321 bwscpy(struct bwstring *dst, const struct bwstring *src)
347 struct bwstring *
348 bwsncpy(struct bwstring *dst, const struct bwstring *src, size_t size)
377 struct bwstring *
378 bwsnocpy(struct bwstring *dst, const struct bwstring *src, size_t offset,
411 bwsfwrite(struct bwstring *bws, FILE *f, bool zero_ended)
464 struct bwstring *
574 bwsncmp(const struct bwstring *bws1, const struct bwstring *bws2,
630 bwscmp(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset)
677 bwscoll(const struct bwstring *bws1, const struct bwstring *bws2, size_t offset)
778 bwstod(struct bwstring *s0, bool *empty)
834 bws_month_score(const struct bwstring *s0)
873 struct bwstring *
874 ignore_leading_blanks(struct bwstring *str)
927 struct bwstring *
928 ignore_nonprinting(struct bwstring *str)
980 struct bwstring *
981 dictionary_order(struct bwstring *str)
1032 struct bwstring *
1033 ignore_case(struct bwstring *str)
1060 bws_disorder_warnx(struct bwstring *s, const char *fn, size_t pos)