Unicode string normalization in C/C++

前端 未结 5 1695

Am wondering how to normalize strings (containing utf-8/utf-16) in C/C++. In .NET there is a function String.Normalize .

I used UTF8-CPP in the past but it does not prov

5条回答
  •  不知归路
    2021-02-13 04:00

    You could build ICU with minimal (or possibly, no other data- I think all of the normalization data is now internal), and then statically link. I haven't tried this recently, but I believe the total size is pretty small in that case.

提交回复
热议问题