split std_basic_string/std_string
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d33f398c63
commit
d25d71bc0f
3 changed files with 21 additions and 1 deletions
|
|
@ -7,7 +7,8 @@
|
||||||
%}
|
%}
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
template <class _CharT>
|
|
||||||
|
template <class _CharT, class _Traits = char_traits<_CharT> >
|
||||||
class basic_string
|
class basic_string
|
||||||
{
|
{
|
||||||
#if !defined(SWIG_STD_MODERN_STL) || defined(SWIG_STD_NOMODERN_STL)
|
#if !defined(SWIG_STD_MODERN_STL) || defined(SWIG_STD_NOMODERN_STL)
|
||||||
|
|
@ -254,3 +255,4 @@ namespace std {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
9
Lib/std/std_string.i
Normal file
9
Lib/std/std_string.i
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
%include <std/std_basic_string.i>
|
||||||
|
|
||||||
|
/* plain strings */
|
||||||
|
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
%std_comp_methods(basic_string<char>);
|
||||||
|
typedef basic_string<char> string;
|
||||||
|
}
|
||||||
9
Lib/std/std_wstring.i
Normal file
9
Lib/std/std_wstring.i
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
%include <std/std_basic_string.i>
|
||||||
|
|
||||||
|
/* wide strings */
|
||||||
|
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
%std_comp_methods(basic_string<wchar_t>);
|
||||||
|
typedef basic_string<wchar_t> wstring;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue