Convert bool to string. Can be used to set boolean values.
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. If value does not need unescaping this function returns original value.
Drop encoding part from locale (it's not used in constructing localized keys).
Escapes string by replacing special symbols with escaped sequences. These symbols are: '\\' (backslash), '\n' (newline), '\r' (carriage return) and '\t' (tab).
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 in terms of Desktop File Specification. Not actually used in inilike.file.IniLikeFile, but can be used in derivatives. 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.
Check if value needs to be escaped. This function is currently tolerant to single slashes and tabs.
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.