leftibot b7315f2db9 Fix #458: Support std::string_view interop with ChaiScript strings
Register std::string_view as the "string_view" user type with a built-in
implicit conversion from std::string, so a ChaiScript string can be passed
directly to a C++ function taking std::string_view. Adds the reverse
explicit conversion via string(sv) / to_string(sv), plus basic queries
(size, length, empty, data) and comparison operators on string_view.
String-style methods that take size_t (substr, find, ...) are intentionally
not duplicated on string_view: with the implicit conversion in place they
would create dispatch ambiguity for calls like string.substr(int, int).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 20:48:30 -06:00
..
dispatchkit Fix #458: Support std::string_view interop with ChaiScript strings 2026-04-28 20:48:30 -06:00
language 🎨 Committing clang-format changes 2026-04-29 02:22:59 +00:00
utility 🎨 Committing clang-format changes 2026-04-29 02:22:59 +00:00
chaiscript_basic.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript_defines.hpp Define _LIBCPP_DISABLE_AVAILABILITY for MacOSX (#695) 2026-04-28 20:12:22 -06:00
chaiscript_stdlib.hpp Fix #458: Support std::string_view interop with ChaiScript strings 2026-04-28 20:48:30 -06:00
chaiscript_threading.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
chaiscript.hpp Fix #571: How to redirect "cout" and "print" to a microsoft Windows 10 window? (#657) 2026-04-11 18:58:09 -06:00