wjakob / nanobind

nanobind: tiny and efficient C++/Python bindings
BSD 3-Clause "New" or "Revised" License
2.29k stars 191 forks source link

add support for std::wstring following std::string #562

Closed kayama-shift closed 4 months ago

kayama-shift commented 4 months ago

In some cases, wchar_t strings are preferable to UTF-8 strings for non-ascii string. So add support for std::wstring following std::string using provided Python API.

wjakob commented 4 months ago

The caster looks good, but this PR will need test coverage to be considered for inclusion.

wjakob commented 4 months ago

(nvm, I will ad them myself)