openfoam/applications/test/string_view1
Mark Olesen b76595df42 ENH: improve stream output of std::string etc.
- change write(const string&) to write(const std::string&).
  This allows output of std::string without an intermediate copy.

- additional writeQuoted method to handle range of char data:

     writeQuoted(const char* str, std::streamsize len, bool)

  This helps with supporting string_view and span<char>

- add operator<< for stdFoam::span<char> and std::string_view (c++17)

- avoid duplicate code in OBJstream

STYLE: add override keyword for IO stream methods
2023-10-11 18:11:37 +00:00
..
Make ENH: improve stream output of std::string etc. 2023-10-11 18:11:37 +00:00
Test-string_view1.C ENH: improve stream output of std::string etc. 2023-10-11 18:11:37 +00:00