Added test cases. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
41 lines
1.1 KiB
OpenEdge ABL
41 lines
1.1 KiB
OpenEdge ABL
/* This module tests whether Swig correctly parses:
|
|
- ordinary strings (char_t)
|
|
- L wide strings (wchar_t)
|
|
- u8 unicode8 strings (char_t)
|
|
- u unicode16 strings (char16_t)
|
|
- U unicode32 strings (char32_t)
|
|
|
|
This module also tests whether Swig correctly parses custom string delimiters.
|
|
*/
|
|
%module cpp0x_raw_string_literals
|
|
|
|
%inline %{
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
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";
|
|
|
|
%}
|