mirror of
https://github.com/benhoyt/inih.git
synced 2025-02-01 15:02:53 +08:00
30a85920d1
This is @MaG21's PR #56 but solved a different way, using compile-time flags so it's zero-overhead if you don't need it.
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
no_file.ini: e=-1 user=0
|
|
... [section1]
|
|
... one=This is a test; line 3
|
|
... two=1234; line 4
|
|
... [ section 2 ]
|
|
... happy=4; line 8
|
|
... sad=; line 9
|
|
... [comment_test]
|
|
... test1=1;2;3; line 15
|
|
... test2=2;3;4;this won't be a comment, needs whitespace before ';'; line 16
|
|
... test;3=345; line 17
|
|
... test4=4#5#6; line 18
|
|
... test7=; line 21
|
|
... test8=; not a comment, needs whitespace before ';'; line 22
|
|
... [colon_tests]
|
|
... Content-Type=text/html; line 25
|
|
... foo=bar; line 26
|
|
... adams=42; line 27
|
|
... funny1=with = equals; line 28
|
|
... funny2=with : colons; line 29
|
|
... funny3=two = equals; line 30
|
|
... funny4=two : colons; line 31
|
|
normal.ini: e=0 user=101
|
|
... [section1]
|
|
... name1=value1; line 2
|
|
... name2=value2; line 5
|
|
bad_section.ini: e=3 user=102
|
|
bad_comment.ini: e=1 user=102
|
|
... [section]
|
|
... a=b; line 2
|
|
... user=parse_error; line 3
|
|
... c=d; line 4
|
|
user_error.ini: e=3 user=104
|
|
... [section1]
|
|
... single1=abc; line 2
|
|
... multi=this is a; line 3
|
|
... multi=multi-line value; line 4
|
|
... single2=xyz; line 5
|
|
... [section2]
|
|
... multi=a; line 7
|
|
... multi=b; line 8
|
|
... multi=c; line 9
|
|
... [section3]
|
|
... single=ghi; line 11
|
|
... multi=the quick; line 12
|
|
... multi=brown fox; line 13
|
|
... name=bob smith; line 14
|
|
multi_line.ini: e=0 user=105
|
|
bad_multi.ini: e=1 user=105
|
|
... [bom_section]
|
|
... bom_name=bom_value; line 2
|
|
... key“=value“; line 3
|
|
bom.ini: e=0 user=107
|