| 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 |