本文介绍了C 字符串库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有用于 C(不是 C++)的 C 字符串库,它实现了对 char *
和 wchar_t *
字符串的抽象?
Is there a C strings library for C (not C++) that implements an abstraction over char *
and wchar_t *
strings?
要求是:
- 获得 BSD/MIT/CDDL 许可
- 实现某种引用计数机制
- 支持正则表达式
- 支持 Unicode
谢谢,
推荐答案
我最终使用了 Plan9 库.对于 Unix,有 plan9port 或更轻量级的 9base.对于 Windows,我使用 Go 附带的自定义端口.
I've ended up using Plan9 libraries. For Unix there's plan9port or the more lightweight 9base. For windows I use a custom the port that come with Go.
这篇关于C 字符串库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!