comparison th_string.h @ 457:85fa3d333556

Actually, revert the boolean changes .. meh.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Jan 2018 23:09:29 +0200
parents 347bfd3e017e
children 77ad030e82c9
comparison
equal deleted inserted replaced
456:1bf886fa9db5 457:85fa3d333556
121 int th_vprintf_do(th_vprintf_ctx *ctx, th_vprintf_putch vputch, const char *fmt, va_list ap); 121 int th_vprintf_do(th_vprintf_ctx *ctx, th_vprintf_putch vputch, const char *fmt, va_list ap);
122 int th_vprintf_put_str(th_vprintf_ctx *ctx, th_vprintf_putch vputch, 122 int th_vprintf_put_str(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
123 const char *str, int f_flags, const int f_width, const int f_prec); 123 const char *str, int f_flags, const int f_width, const int f_prec);
124 int th_vprintf_put_int(th_vprintf_ctx *ctx, th_vprintf_putch vputch, 124 int th_vprintf_put_int(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
125 va_list ap, const int f_radix, int f_flags, int f_width, int f_prec, 125 va_list ap, const int f_radix, int f_flags, int f_width, int f_prec,
126 const bool f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags)); 126 const BOOL f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags));
127 int th_vprintf_put_int_format(th_vprintf_ctx *ctx, th_vprintf_putch vputch, 127 int th_vprintf_put_int_format(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
128 char *buf, int f_flags, int f_width, int f_prec, int f_len, int vret, 128 char *buf, int f_flags, int f_width, int f_prec, int f_len, int vret,
129 bool f_neg, bool f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags)); 129 BOOL f_neg, BOOL f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags));
130 130
131 char * th_vprintf_altfmt_oct(const char *buf, const size_t len, const int vret, const int flags); 131 char * th_vprintf_altfmt_oct(const char *buf, const size_t len, const int vret, const int flags);
132 char * th_vprintf_altfmt_hex(const char *buf, const size_t len, const int vret, const int flags); 132 char * th_vprintf_altfmt_hex(const char *buf, const size_t len, const int vret, const int flags);
133 133
134 134
150 */ 150 */
151 const char *th_findnext(const char *, size_t *); 151 const char *th_findnext(const char *, size_t *);
152 const char *th_findsep(const char *, size_t *, char); 152 const char *th_findsep(const char *, size_t *, char);
153 const char *th_findseporspace(const char *, size_t *, char); 153 const char *th_findseporspace(const char *, size_t *, char);
154 154
155 bool th_strmatch(const char *haystack, const char *pattern); 155 BOOL th_strmatch(const char *haystack, const char *pattern);
156 bool th_strcasematch(const char *haystack, const char *pattern); 156 BOOL th_strcasematch(const char *haystack, const char *pattern);
157 157
158 int th_get_hex_triplet(const char *str); 158 int th_get_hex_triplet(const char *str);
159 bool th_get_boolean(const char *str, bool *value); 159 BOOL th_get_boolean(const char *str, BOOL *value);
160 160
161 void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width); 161 void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width);
162 162
163 163
164 #ifdef __cplusplus 164 #ifdef __cplusplus