| 199 |
199 |
| 200 CX_TEST(test_string_template_compile_error) { |
200 CX_TEST(test_string_template_compile_error) { |
| 201 // TODO |
201 // TODO |
| 202 } |
202 } |
| 203 |
203 |
| 204 static cxmutstr get_var(const CxAllocator *a, StringTemplateSegment *seg, void *userdata, WSBool *free_str) { |
204 static cxmutstr get_var(const CxAllocator *a, StringTemplateSegment *seg, void *userdata, bool *free_str) { |
| 205 cxmutstr var_value = cx_strcat_a(a, CX_NULLSTR, 3, cx_str("var("), seg->str, cx_str(")")); |
205 cxmutstr var_value = cx_strcat_a(a, CX_NULLSTR, 3, cx_str("var("), seg->str, cx_str(")")); |
| 206 *free_str = TRUE; |
206 *free_str = true; |
| 207 return var_value; |
207 return var_value; |
| 208 } |
208 } |
| 209 |
209 |
| 210 CX_TEST(test_string_template_write_to) { |
210 CX_TEST(test_string_template_write_to) { |
| 211 CxMempool *mp = cxMempoolCreate(100, CX_MEMPOOL_TYPE_ADVANCED); |
211 CxMempool *mp = cxMempoolCreate(100, CX_MEMPOOL_TYPE_ADVANCED); |