I have a variable of type string String term = String("にほん")
and I want to check if any of its characters is in the japanese hiragana charater set
. Something like this:
for (auto c : term) {
if (c >= '\u3040' && c <= '\u309f') {
return true;
}
}
How do I do this the godot way in GDNative c++, ideally using String?
I tried doing it with std:string and std:wstring but I don't quiet know how to deal with UTF8 characters in c++.