jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
5.18k stars 1.86k forks source link

emitter: Support std::string_view #1325

Open dendy opened 1 month ago

dendy commented 1 month ago

Accept Emitter::operator<<(std::string_view).

ABI remains C++11 compatible by exposing new method Emitter::Write(const char*, size_t).

All affected calls optimized to pass std::string values as pointer + size tuple into appropriate routines.