Parsing .ini-like files used in Unix systems
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Inilike is D library for parsing .ini-like files used in Unix systems in various places (.desktop files, icon themes, mimeapps.list, mimeinfo.cache, trashcan files on freedesktop, etc.)
Note: the original purpose of this library is to serve as dependency for my other projects, e.g. desktopfile and icontheme. It may be not suitable to save configuration files using this library. You have been warned.
dub build --build=docs
dub build --build=ddox
Unix configuration files don't have any strict standard on format. Still some specifications use the format which I call ini-like because it's very similiar to INI used in MS Windows with small differences:
- Comments start with '#', not ';'. So ';' symbol can be presented in keys.
- Comments are always placed on their own line. Key-value can't be mixed with comment on the same line.
Localized values lookup.
The localized value is the value associated with the localized key. Localized keys look like this:
where locale is the POSIX locale with the charset part dropped.
Inilike library has support for lookup of localized values, using the algorithm described in Desktop Entry Specification.
- Registered by Roman Chistokhodov
- 0.2.2 released 7 years ago
- Copyright © 2015, Roman Chistokhodov