begin of testing

This commit is contained in:
2026-07-19 14:45:49 -06:00
parent 29784ea152
commit 09d117debf
2 changed files with 20 additions and 3 deletions
+15
View File
@@ -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;
}