| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
12年前发布

高性能的C语言字符串转换的集合

高性能的C语言字符串转换的集合,通常比标准的实现快2倍。

包括:

  • 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

HEY

  • 此代码可以在Windows上编译。我试图解决缺乏stdint和stdbool,但我无法测试出来。
  • 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.

项目主页:http://www.open-open.com/lib/view/home/1352296364938

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1352296364938.html
C语言 C/C++开发