| 6856 | } |
| 6857 | |
| 6858 | char_t* data(xpath_allocator* alloc) |
| 6859 | { |
| 6860 | // make private heap copy |
| 6861 | if (!_uses_heap) |
| 6862 | { |
| 6863 | size_t length_ = strlength(_buffer); |
| 6864 | |
| 6865 | _buffer = duplicate_string(_buffer, length_, alloc); |
| 6866 | _uses_heap = true; |
| 6867 | _length_heap = length_; |
| 6868 | } |
| 6869 | |
| 6870 | return const_cast<char_t*>(_buffer); |
| 6871 | } |
| 6872 | |
| 6873 | bool empty() const |
| 6874 | { |
nothing calls this directly
no test coverage detected