Feature #91
std::wstring support
| Status: | Feedback | Start: | 07/21/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | C++-API | |||
| Target version: | 1.0 | |||
Description
As SpiderMonkey uses 16-bit string types, would it be possible to have std::wstring support instead of just std::string?
History
Updated by Aristid Breitkreuz 407 days ago
In general, that should be possible.
But: On different platforms, wchar_t means different things. Linux/gcc for example has 32-bit wchar_t. So it is not possible to directly use the 16-bit jschar representation there.
We already support std::basic_string<char16_t>, which is mostly like std::wstring, except that it's guaranteed to be 16-bit, as is Spidermonkey's jschar (in fact, we define char16_t as jschar).
PS: If you had added me or Ash as an observer, I would have noticed this bug much earlier.