3 ms·
In https://github.com/naver/tamgu/blob/master/include/conversion.h https://github.com/naver/tamgu/blob/master/include/conversio..., I have implemented a class:
by clauderoux 7y ago
In https://github.com/naver/tamgu/blob/master/include/conversion.h https://github.com/naver/tamgu/blob/master/include/conversio..., I have implemented a class: agnostring which derives from "std::string".
There are some methods to traverse a UTF8 string:
begin(): to initialize the traversal
end() : is true when the string is fully traversed
next(): which goes to the next character and returns the current character.
s.begin();
while (!s.end()) {
u = s.next();
}
- arcticbull 7y agoVery cool, thanks!