diff options
Diffstat (limited to 'android/utils')
-rw-r--r-- | android/utils/ini.c | 2 | ||||
-rw-r--r-- | android/utils/ini.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/android/utils/ini.c b/android/utils/ini.c index d99ecdd..096f44c 100644 --- a/android/utils/ini.c +++ b/android/utils/ini.c @@ -159,7 +159,7 @@ isKeyStartChar( int c ) static int isKeyChar( int c ) { - return isKeyStartChar(c) || ((unsigned)(c-'0') < 10) || (c == '.'); + return isKeyStartChar(c) || ((unsigned)(c-'0') < 10) || (c == '.') || (c == '-'); } IniFile* diff --git a/android/utils/ini.h b/android/utils/ini.h index 41b369b..ad6b36a 100644 --- a/android/utils/ini.h +++ b/android/utils/ini.h @@ -23,7 +23,7 @@ * assignment := <space>* <keyName> <space>* '=' <space>* <valueString> <space>* <LF> * keyName := <keyNameStartChar> <keyNameChar>* * keyNameStartChar := [A-Za-z_] - * keyNameChar := [A-Za-z0-9_.] + * keyNameChar := [A-Za-z0-9_.-] * valueString := <noLF>* * space := ' ' | '\t' * LF := '\r\n' | '\n' | '\r' @@ -35,7 +35,7 @@ * - empty lines are ignored, as well as lines beginning with ';' or '#' * - lines must be of the form: "<keyName> = <value>" * - key names must start with a letter or an underscore - * - other key name characters can be letters, digits, underscores or dots + * - other key name characters can be letters, digits, underscores, dots or dashes * * - leading and trailing space are allowed and ignored before/after the key name * and before/after the value |