| 177 |
177 |
| 178 // split the string into lines |
178 // split the string into lines |
| 179 // use the memory pool to allocate the target array |
179 // use the memory pool to allocate the target array |
| 180 cxstring* lines; |
180 cxstring* lines; |
| 181 size_t lc = cx_strsplit_a( |
181 size_t lc = cx_strsplit_a( |
| 182 pool->allocator, contentstr, cx_str("\n"), SIZE_MAX, &lines |
182 pool->allocator, contentstr, "\n", SIZE_MAX, &lines |
| 183 ); |
183 ); |
| 184 |
184 |
| 185 // skip the header and parse the remaining data into a linked list |
185 // skip the header and parse the remaining data into a linked list |
| 186 // the nodes of the list shall also be allocated by the pool |
186 // the nodes of the list shall also be allocated by the pool |
| 187 CxList* datalist = cxLinkedListCreate( |
187 CxList* datalist = cxLinkedListCreate( |