Choose the better localized value matching to locale between two localized values. The "goodness" is determined using algorithm described in Localized values for keys.
Unescape value.
Escapes string by replacing special symbols with escaped sequences. These symbols are: '\\' (backslash), '\n' (newline), '\r' (carriage return) and '\t' (tab). Note: Currently the library stores values as they were loaded from file, i.e. escaped. To keep things consistent you should take care about escaping the value before inserting. The library will not do it for you.
Check if the entry value can be interpreted as boolean value.
Test whether the string s represents a comment.
Test whether the entry value represents false
Test whether the string s represents a group header. Note: "[]" is not considered as valid group header.
Test whether the entry value represents true
Test whether the string is valid key. Only the characters A-Za-z0-9- may be used in key names. See Basic format of the file Note: this function automatically separate key from locale. It does not check validity of the locale itself.
Construct localized key name from key and locale.
ditto, but constructs locale name from arguments.
Make locale name based on language, country, encoding and modifier.
Retrieve group name from header entry.
Parse entry of kind Key=Value into pair of Key and Value.
Parse locale name into the tuple of 4 values corresponding to language, country, encoding and modifier
Separate key name into non-localized key and locale name. If key is not localized returns original key and empty string.
Unescapes string. You should unescape values returned by library before displaying until you want keep them as is (e.g., to allow user to edit values in escaped form).
Common functions for dealing with entries in ini-like file.