在ANSI C超便携,小型复杂的配置文件库? [英] Ultra-portable, small complex config file library in ANSI C?

查看:134
本文介绍了在ANSI C超便携,小型复杂的配置文件库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个非常便携,简约/小XML /配置语言的ANSI C库没有外部的依赖关系(或很少),编译下降到不足100K。我需要它适度复杂的配置文件,它必须支持统一code。

I'm looking for a very portable, minimalistic/small XML/configuration language library in ANSI C with no external dependencies (or very few), compiling down to less than 100K. I need it for a moderately complex configuration file, and it must support Unicode.

一些更高的要求:


  1. 确定使用/嵌入/静态链接到专有code 。信用总会将给予是指什么意思。

  2. 不一定XML。

  3. 真的,干净code /无怪异或不一致的字符串处理。

  4. UTF-8

  1. OK to use/embed/statically link into proprietary code. Credit will always will be given where credit is due.
  2. Not necessarily XML.
  3. Really, clean code/no weird or inconsistent string handling.
  4. UTF-8.

感谢您家伙。

推荐答案

这是某种类似于这样的问题:是否有一个好的微小的对于嵌入式C项目XML解析器?

This is somehow similar to this question: Is there a good tiny XML parser for an embedded C project?

我能够调整对C以下XML解析器库的编译标志,并减少它们的大小超过50%的我的Ubuntu的机器上。迷你XML是唯一一个接近你的要求是什么:

I was able to tweak the compilation flags of the following XML parser libraries for C, and cut down more than 50% of their size on my Ubuntu machine. Mini-XML is the only one close to what you requested:

  • Mini-XML (36K)
  • Expat (124K)
  • RXP (184K)

这篇关于在ANSI C超便携,小型复杂的配置文件库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆