[DEV] add regex test

This commit is contained in:
Edouard DUPIN 2014-10-03 23:04:23 +02:00
parent 96878f539e
commit 5f0884b75b
2 changed files with 13 additions and 0 deletions

View File

@ -17,6 +17,8 @@ def create(target):
myModule.add_module_depend(['etk'])
#myModule.compile_flags_XX(["-nostdinc++"]);
# add the currrent module at the system
return myModule

View File

@ -16,6 +16,7 @@
#include <etk/log.h>
#include <etk/Color.h>
#include <etk/RegExp.h>
#include <etk/stdTools.h>
#include <string>
#include <regex>
@ -346,6 +347,16 @@ void testRegExp() {
}
}
{
const std::u32string data = utf8::convertUnicode("kjhkjhk");
const std::u32string data2(U"kjhkjhk");
const std::string data3("kjhkjhk");
const char32_t data5[] = U"kjhkjhk";
//std::basic_regex<char32_t, std::u32string> regexp(data2);
//std::basic_regex<char32_t> regexp((const char32_t*)data2.c_str());
std::basic_regex<char32_t> regexp2(data5);
}
}
int main(int argc, const char *argv[]) {