/trunk/Lib/typemaps/std_wstring.swg
Unknown | 26 lines | 17 code | 9 blank | 0 comment | 0 complexity | 6097465123b15cbc44e4cf71588bdcf3 MD5 | raw file
1%include <typemaps/wstring.swg> 2 3#ifndef SWIG_STD_BASIC_STRING 4#define SWIG_STD_WSTRING 5 6%include <typemaps/std_strings.swg> 7 8%{ 9#include <cwchar> 10#include <string> 11%} 12 13namespace std 14{ 15 %naturalvar wstring; 16 class wstring; 17} 18 19%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(STDUNISTRING)); 20 21 22#else 23 24%include <std/std_wstring.i> 25 26#endif