src/server/util/strreplace.h

changeset 661
a4e1ba59b733
parent 634
9728d3a2ac97
equal deleted inserted replaced
660:f00d03835dd9 661:a4e1ba59b733
27 */ 27 */
28 28
29 #ifndef STRINGREPLACE_H 29 #ifndef STRINGREPLACE_H
30 #define STRINGREPLACE_H 30 #define STRINGREPLACE_H
31 31
32 #include "../public/nsapi.h" 32 #include <stdbool.h>
33
34 #include <cx/string.h> 33 #include <cx/string.h>
35 #include <cx/buffer.h> 34 #include <cx/buffer.h>
36 35
37 #ifdef __cplusplus 36 #ifdef __cplusplus
38 extern "C" { 37 extern "C" {
92 * seg: Placeholder segment 91 * seg: Placeholder segment
93 * userdata: The userdata pointer passed to string_template_write_to 92 * userdata: The userdata pointer passed to string_template_write_to
94 * free_str: If set to true, the returned string pointer will be freed 93 * free_str: If set to true, the returned string pointer will be freed
95 * using the allocator's free function. 94 * using the allocator's free function.
96 */ 95 */
97 typedef cxmutstr (*strtpl_var_func)(const CxAllocator *a, StringTemplateSegment *seg, void *userdata, WSBool *free_str); 96 typedef cxmutstr (*strtpl_var_func)(const CxAllocator *a, StringTemplateSegment *seg, void *userdata, bool *free_str);
98 97
99 /* 98 /*
100 * Compiles a string template 99 * Compiles a string template
101 * 100 *
102 * a: The allocator to use for building the compiled template 101 * a: The allocator to use for building the compiled template

mercurial