| 6534 | bool _uses_heap; |
| 6535 | |
| 6536 | static char_t* duplicate_string(const char_t* string, size_t length, xpath_allocator* alloc) |
| 6537 | { |
| 6538 | char_t* result = static_cast<char_t*>(alloc->allocate((length + 1) * sizeof(char_t))); |
| 6539 | assert(result); |
| 6540 | |
| 6541 | memcpy(result, string, length * sizeof(char_t)); |
| 6542 | result[length] = 0; |
| 6543 | |
| 6544 | return result; |
| 6545 | } |
| 6546 | |
| 6547 | static char_t* duplicate_string(const char_t* string, xpath_allocator* alloc) |
| 6548 | { |
no test coverage detected