[英]What's a small LGPL library for C++ UTF-8/UTF-16 text encoding?
Need something small and portable.需要一些小巧便携的东西。 Currently looking at UTF8-CPP but thought that I'd reach out for other suggestions too.
目前正在研究 UTF8-CPP,但认为我也会寻求其他建议。
Cheers.干杯。
UTF-8CPP it is, just want to mark this question as done with.是UTF-8CPP,只是想将此问题标记为已完成。 Thanks for all the help guys:)
感谢所有帮助的家伙:)
Boost? 促进? or short source ?
还是短源?
Ironically enough, the best/easiest/most robust way is to wrap Unicode-aware stdlib (C) functions like setlocale(), wprintf() and mbstowcs in your own, application-level) C++ classes.具有讽刺意味的是,最好/最简单/最健壮的方法是在您自己的应用程序级 C++ 类中包装可识别 Unicode 的 stdlib (C) 函数,如 setlocale()、wprintf() 和 mbstowcs。 The APIs are portable, and they've been in use for many years.
API 是可移植的,并且已经使用了很多年。
A few links:几个链接:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.