You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
395 B
26 lines
395 B
%include <typemaps/wstring.swg> |
|
|
|
#ifndef SWIG_STD_BASIC_STRING |
|
#define SWIG_STD_WSTRING |
|
|
|
%include <typemaps/std_strings.swg> |
|
|
|
%{ |
|
#include <cwchar> |
|
#include <string> |
|
%} |
|
|
|
namespace std |
|
{ |
|
%naturalvar wstring; |
|
class wstring; |
|
} |
|
|
|
%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(STDUNISTRING)); |
|
|
|
|
|
#else |
|
|
|
%include <std/std_wstring.i> |
|
|
|
#endif
|
|
|