Closed ridams closed 3 years ago
How to loop through a utf8 str like :
for (int =0;i<strlen(*char);i++) do_somethingwith *char_[i]
You do:
utf8_int32_t codepoint; for (void* next = utf8codepoint(ptr, &codepoint); codepoint != 0; next = utf8codepoint(next, &codepoint)) { // codepoint is your current utf-8 codepoint }
How to loop through a utf8 str like :
for (int =0;i<strlen(*char);i++) do_somethingwith *char_[i]