inilike 0.1.1

Parsing .ini-like files used in Unix systems


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Inilike

Inilike is D library for parsing .ini-like files used in Unix systems in various places.

Build Status

Note: the original purpose of this library is to serve as dependency for my other projects, e.g. desktopfile. It may be not suitable to save configuration files using this library. You have been warned.

Generating documentation

Ddoc:

dub build --build=docs

Ddox:

dub build --build=ddox

Running tests

dub test

Format

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:

  1. Comments start with '#', not ';'. So ';' symbol can be presented in keys.
  2. 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:

keyname[locale]

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.

Authors:
  • Roman Chistokhodov
Dependencies:
none
Versions:
1.2.1 2021-Sep-27
1.2.0 2020-Sep-17
1.1.0 2017-Oct-23
1.0.3 2017-Oct-21
1.0.2 2017-Oct-21
Show all 25 versions
Download Stats:
  • 2 downloads today

  • 20 downloads this week

  • 66 downloads this month

  • 2839 downloads total

Score:
1.7
Short URL:
inilike.dub.pm