Solution for missing std::wstring support in Android NDK?

后端 未结 3 1242
清酒与你
清酒与你 2021-01-13 11:58

I have a game which uses std::wstring as its basic string type in thousand of places as well as doing operations with wchar_t and its functions: wcsicmp() wcslen() vsprintf(

3条回答
  •  长发绾君心
    2021-01-13 12:47

    I'm suffering from the same problem as you, but my only other thought is to load the strings via the JNI (as jstring* in native land), then convert them to UTF characters as necessary. Take a look at the available JNI string functions here:
    http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html#string_operations

提交回复
热议问题