1
%module lib_std_wstring
3
%include "std_wstring.i"
6
%template(wstring) std::basic_string<wchar_t>;
9
struct A : std::wstring
11
A(const std::wstring& s) : std::wstring(s)
18
B(const std::wstring& s) : cname(0), name(s), a(s)
29
wchar_t test_wcvalue(wchar_t x) {
33
const wchar_t* test_ccvalue(const wchar_t* x) {
37
wchar_t* test_cvalue(wchar_t* x) {
42
std::wstring test_value(std::wstring x) {
46
const std::wstring& test_const_reference(const std::wstring &x) {
50
void test_pointer(std::wstring *x) {
53
std::wstring *test_pointer_out() {
54
static std::wstring x = L"x";
58
void test_const_pointer(const std::wstring *x) {
61
const std::wstring *test_const_pointer_out() {
62
static std::wstring x = L"x";
66
void test_reference(std::wstring &x) {
69
std::wstring& test_reference_out() {
70
static std::wstring x = L"x";
74
void test_throw() throw(std::wstring){
75
static std::wstring x = L"x";