Unicode string indexing in C++

后端 未结 5 1632
刺人心
刺人心 2020-12-30 15:05

I come from python where you can use \'string[10]\' to access a character in sequence. And if the string is encoded in Unicode it will give me expected results. However when

5条回答
  •  旧时难觅i
    2020-12-30 15:39

    C++ has no useful native Unicode support. You almost certainly will need an external library like ICU.

提交回复
热议问题