[DEV] add regex test
This commit is contained in:
parent
96878f539e
commit
5f0884b75b
@ -17,6 +17,8 @@ def create(target):
|
|||||||
|
|
||||||
myModule.add_module_depend(['etk'])
|
myModule.add_module_depend(['etk'])
|
||||||
|
|
||||||
|
#myModule.compile_flags_XX(["-nostdinc++"]);
|
||||||
|
|
||||||
# add the currrent module at the system
|
# add the currrent module at the system
|
||||||
return myModule
|
return myModule
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include <etk/log.h>
|
#include <etk/log.h>
|
||||||
#include <etk/Color.h>
|
#include <etk/Color.h>
|
||||||
#include <etk/RegExp.h>
|
#include <etk/RegExp.h>
|
||||||
|
#include <etk/stdTools.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <regex>
|
#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[]) {
|
int main(int argc, const char *argv[]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user