• 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
..
cmake Loading commit data...
ekam-provider Loading commit data...
m4 Loading commit data...
samples Loading commit data...
src Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE.txt Loading commit data...
Makefile.am Loading commit data...
Makefile.ekam Loading commit data...
README.txt Loading commit data...
afl-fuzz.sh Loading commit data...
capnp-json.pc.in Loading commit data...
capnp-rpc.pc.in Loading commit data...
capnp.pc.in Loading commit data...
configure.ac Loading commit data...
kj-async.pc.in Loading commit data...
kj.pc.in Loading commit data...
regenerate-bootstraps.sh Loading commit data...
setup-autotools.sh Loading commit data...
setup-ekam.sh Loading commit data...