| 325 ui_pathfield_free_pathelms(this->current_path, this->current_path_nelms); |
325 ui_pathfield_free_pathelms(this->current_path, this->current_path_nelms); |
| 326 } |
326 } |
| 327 |
327 |
| 328 static UiPathElm* default_pathelm_func(const char* full_path, size_t len, size_t* ret_nelm, void* data) { |
328 static UiPathElm* default_pathelm_func(const char* full_path, size_t len, size_t* ret_nelm, void* data) { |
| 329 cxstring *pathelms; |
329 cxstring *pathelms; |
| 330 size_t nelm = cx_strsplit_a(cxDefaultAllocator, cx_strn(full_path, len), CX_STR("/"), 4096, &pathelms); |
330 size_t nelm = cx_strsplit_a(cxDefaultAllocator, cx_strn(full_path, len), cx_str("/"), 4096, &pathelms); |
| 331 |
331 |
| 332 if (nelm == 0) { |
332 if (nelm == 0) { |
| 333 *ret_nelm = 0; |
333 *ret_nelm = 0; |
| 334 return nullptr; |
334 return nullptr; |
| 335 } |
335 } |