Added support for custom string delimiters.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matevz Jekovec 2009-06-28 19:35:05 +00:00
commit ee8bebb668
2 changed files with 122 additions and 35 deletions

View file

@ -16,15 +16,27 @@
using namespace std;
string a="ABC";
wstring wide=L"ABC";
string c=u8"ABC";
string b=u"ABC";
string d=U"ABC";
int L = 100;
int u8 = 100;
int u = 100;
int U = 100;
int R = 100;
int LR = 100;
int u8R = 100;
int uR = 100;
int UR = 100;
string a ="ABC";
wstring wide =L"ABC";
string b =u8"ABC";
string c =u"ABC";
string d =U"ABC";
string e =R"XXX[to be or "not" to be [these are parenthesis], this is the question!]XXX";
wstring wide2 =LR"XXX[to be or "not" to be [these are parenthesis], this is the question!]XXX";
string f =u8R"XXX[to be or "not" to be [these are parenthesis], this is the question!]XXX";
string g =uR"XXX[to be or "not" to be [these are parenthesis], this is the question!]XXX";
string h =UR"XXX[to be or "not" to be [these are parenthesis], this is the question!]XXX";
/*string e=R"XXX[ABC"blah]XXX";
string g=u8R"XXX[ABC"blah]XXX";
string f=uR"XXX[ABC"blah]XXX";
string h=UR"XXX[ABC"blah]XXX";
*/
%}