pugixml icon indicating copy to clipboard operation
pugixml copied to clipboard

Add support non-zero-terminated strings (pointer+size, i.e. std::string_view)

Open Hedede opened this issue 3 years ago • 1 comments

I use std::string_view extensively in my code, because it allows to make substrings very cheaply (requires only adjusting a couple of pointers instead of copying the string), but pugixml accepts only const char* arguments, which forces me to make local copies of strings.

It would nice to have either a std::string_view overload, or const char*, size_t overload.

Hedede avatar May 10 '22 20:05 Hedede

See #73

rettinghaus avatar Jun 28 '22 08:06 rettinghaus