INI配置文件操作库 SimpleIni
jopen
13年前
SimpleIni 是一个跨平台的 C++ 库,提供一个简单的API用于读写 INI风格的配置文件。它支持数据文件包括:ASCII, MBCS 和 Unicode。 <p>它具有以下功能特性:</p> <ul> <li>MIT Licence allows free use in all software (including GPL and commercial) </li> <li>multi-platform (Windows 95/98/ME/NT/2K/XP/2003, Windows CE, Linux, Unix) </li> <li>loading and saving of INI-style configuration files </li> <li>configuration files can have any newline format on all platforms </li> <li>liberal acceptance of file format <ul> <li>key/values with no section </li> <li>removal of whitespace around sections, keys and values </li> </ul> </li> <li>support for multi-line values (values with embedded newline characters) </li> <li>optional support for multiple keys with the same name </li> <li>optional case-insensitive sections and keys (for ASCII characters only) </li> <li>saves files with sections and keys in the same order as they were loaded </li> <li>preserves comments on the file, section and keys where possible. </li> <li>supports both char or wchar_t programming interfaces </li> <li>supports both MBCS (system locale) and UTF-8 file encodings </li> <li>system locale does not need to be UTF-8 on Linux/Unix to load UTF-8 file </li> <li>support for non-ASCII characters in section, keys, values and comments </li> <li>support for non-standard character types or file encodings via user-written converter classes </li> <li>support for adding/modifying values programmatically </li> <li>compiles cleanly in the following compilers: <ul> <li>Windows/VC6 (warning level 3) </li> <li>Windows/VC.NET 2003 (warning level 4) </li> <li>Windows/VC 2005 (warning level 4) </li> <li>Linux/gcc (-Wall) </li> </ul> </li> </ul> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326765780233" target="_blank">http://www.open-open.com/lib/view/home/1326765780233</a></p>