授权协议: BSD
开发语言: C/C++
操作系统: Linux
收录时间: 2012-11-07
提 交 者: 江斌

c-string转换工具集合,比标准实现快2倍以上(如果有的话)。——该项目被Google Chrome使用。

包括以下C字符串转换工具

  • base64, standard
  • base64, web/url safe, with configurable alphabet
  • base85 (good for http cookies)
  • base16 (hex)
  • base2 (ascii binary)
  • url escaping
  • javascript string escaping
  • fast number to string conversion, 4-22x faster than sprintf!
  • fast ascii upper/lower case conversion, 2-66x faster than stdlib! (yes, 66x faster)

And it's all wrapped up in a bow for you to use:

  • BSD License -- do what you want with it.
  • Standard clean ANSI C, will also compile as C99 and C++
  • C++ wrappers for std::string
  • Standard install: configure && make && make install
  • Extensive unit tests provided with >98% coverage.
  • Endian safe.
  • Performance test framework -- don't take my word, run it your self
  • Lots of in-code documentation

注意事项

  • This code might compile on windows. I tried to work around the lack of stdint and stdbool, but I can't test it out.
  • Also this code won't work on Sparc chips (Solaris) due to alignment issues. not hard to fix, but I don't have access to sparc machines
  • Works great on Mac and Linux.
  • No idea about iOS and ARM chips.
展开阅读全文

stringencoders 的相关资讯

还没有任何资讯

stringencoders 的相关博客

[转]chrome涉及开源项目

Google Chrome是一个优秀的开源的浏览器,其开发过程大量地使用了网上现在成熟稳定的开源代码,目前Chrome所涉及26个开源代码...

stringencoders 的相关问答

还没有任何问答,马上提问

评论 (1)

加载中
作者说没有在Windows上测试过;经尝试,可以在windows上使用VC编译,但要自己建立工程并作少量修改。 stringencoders
2012/11/07 21:36
回复
举报
更多评论
1 评论
30 收藏
分享
在线直播报名
返回顶部
顶部