• Kenton Varda's avatar
    Support encoding to and from wchar_t arrays. · ff9c3321
    Kenton Varda authored
    Different platforms have different sizes for wchar_t. For example:
    
    * Linux: 32-bit (originally intended as UCS-4, rarely used in practice)
    * Windows: 16-bit (originally intended as UCS-2, but now probably treated as UTF-16)
    * BeOS: 8-bit (strictly intended to be UTF-8)
    
    For KJ purposes, we'll assume wchar_t arrays use the UTF encoding appropriate to their size, whatever that may be on the target platform.
    
    This is mainly being added because the Win32 API uses wchar_t heavily.
    ff9c3321
Name
Last commit
Last update
c++ Loading commit data...
doc Loading commit data...
highlighting Loading commit data...
security-advisories Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
RELEASE-PROCESS.md Loading commit data...
appveyor.yml Loading commit data...
mega-test-kenton-home.cfg Loading commit data...
mega-test-kenton-work.cfg Loading commit data...
mega-test-quick.cfg Loading commit data...
mega-test.py Loading commit data...
release.sh Loading commit data...
style-guide.md Loading commit data...
super-test.sh Loading commit data...