begin of testing
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <spider/compiler/common.hpp>
|
||||
#include <spider/compiler/text/utf8.hpp>
|
||||
|
||||
namespace spider {
|
||||
|
||||
|
||||
@@ -7,6 +10,18 @@ namespace spider {
|
||||
}
|
||||
|
||||
int main() {
|
||||
std::string test = "UTF-STR WITH EMOJIS 😀🚀";
|
||||
// Extracted UTF-8 chars:
|
||||
std::u32string out;
|
||||
bool r = spider::utf8::toUTF32(test, out);
|
||||
|
||||
std::cout << "INPUT: " << test << std::endl;
|
||||
std::cout << "RESULT: " << int(r) << std::endl;
|
||||
for(spider::u32 ch : out) {
|
||||
std::cout << ch << " ";
|
||||
}
|
||||
std::cout << std::endl;
|
||||
|
||||
std::cout << "Happy Day!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user