[ruby] * rewrite SWIG_AsWCharPtrAndSize and SWIG_FromWCharPtrAndSize

* use UTF-32LE and UTF-16LE to avoid BOM
       * add tests
This commit is contained in:
Takashi Tamura 2017-02-20 17:00:52 +09:00
commit 4009da3588
4 changed files with 64 additions and 24 deletions

View file

@ -78,6 +78,10 @@ std::wstring& test_reference_out() {
return x;
}
bool test_equal_abc(const std::wstring &s) {
return L"abc" == s;
}
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif