swift
6472997f - [cxx-interop] Handle `std::string`s with `\0` character

Commit
3 years ago
[cxx-interop] Handle `std::string`s with `\0` character Previously the conversion mechanism called `std::string::c_str` and passed it to `String(cString:)` which accepts a null-terminated string. If the string contains a `\0` character, this failed to initialize the entire string properly.
Author
Committer
Parents
Loading