It is currently Sat Sep 23, 2017 10:20 pm

All times are UTC - 5 hours




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: A free cross-platform library to read and write INI-files
PostPosted: Fri Oct 17, 2008 11:09 am 

Joined: Wed Aug 06, 2008 7:53 pm
Posts: 182
Location: Russia
Welcome, Ladies and Gentlemen!

Let me present you a fascinating library dealing with INI files.

http://code.jellycan.com/simpleini/

It is free (MIT license), well documented, regularly updated, cross-platform, reasonably fast (STL based), supports all main text formats ( ASCII, MBCS and Unicode/UTF-8 ), shipped with source file. That’s a developer's dream. 8)
If you need an INI-file functionality, say, for options, and XML is too heavy for your needs, this lib is one of the best choice.
I’ve used this library in couple of projects I’ve participated in and we were very satisfied.



SimpleIni FEATURES ( from original site )

• MIT Licence allows free use in all software (including GPL and commercial)
• multi-platform (Windows 95/98/ME/NT/2K/XP/2003, Windows CE, Linux, Unix)
• loading and saving of INI-style configuration files
• configuration files can have any newline format on all platforms
• liberal acceptance of file format
• key/values with no section
• removal of whitespace around sections, keys and values
• support for multi-line values (values with embedded newline characters)
• optional support for multiple keys with the same name
• optional case-insensitive sections and keys (for ASCII characters only)
• saves files with sections and keys in the same order as they were loaded
• preserves comments on the file, section and keys where possible.
• supports both char or wchar_t programming interfaces
• supports both MBCS (system locale) and UTF-8 file encodings
• system locale does not need to be UTF-8 on Linux/Unix to load UTF-8 file
• support for non-ASCII characters in section, keys, values and comments
• support for non-standard character types or file encodings via user-written converter classes
• support for adding/modifying values programmatically
• compiles cleanly in the following compilers:
    Windows/VC6 (warning level 3)
    Windows/VC.NET 2003 (warning level 4)
    Windows/VC 2005 (warning level 4)
    Linux/gcc (-Wall)



I also use this library to extend GameEngine font capabilities, to describe a font “texture” file more fully in separate INI-file, which contains such info as: number of rows and columns, cell width and height, whether font is monospace or proportional etc. Additionally, an optional array of glyph’s width/dangle pairs (in the original format) is injected – this is done using SimpleIni multiline capability. Now my version of font subsystem is ready to support national characters (from the second part of ASCII table).


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron