Safely iterating over Unicode strings while respecting grapheme clusters

前端 未结 0 1738
慢半拍i
慢半拍i 2021-02-04 05:57

Is there a canonically "correct" method for iterating over arbitrary unicode strings by grapheme? Eg: For splitting or reversing strings?

My naieve solution is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题