Feature #91

avatar

std::wstring support

Added by Frans-Willem Hardijzer 415 days ago. Updated 314 days ago.

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

avatar

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.

Updated by Aristid Breitkreuz 405 days ago

avatar
  • Status changed from New to Feedback

Updated by Aristid Breitkreuz 320 days ago

avatar
  • Target version set to 1.0

Updated by Aristid Breitkreuz 314 days ago

avatar
  • Tracker changed from Bug to Feature

Also available in: Atom PDF