-
-
Notifications
You must be signed in to change notification settings - Fork 537
Add INIReader Sections and Keys methods #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b53f4ed
INIReader: Implement SetValue function
Ishan09811 57781a2
INIReader: define SetValue function
Ishan09811 5f26667
INIReader: Implement Keys and Sections function
Ishan09811 09ba1b5
INIReader: define Keys and Sections function
Ishan09811 263ffd6
INIReader: Use Iterator-based looping for Sections and Keys function
Ishan09811 5409561
INIReader: corrected comments for Sections and Keys function
Ishan09811 356dafb
INIReaderExample: add tests for Sections() and Keys()
Ishan09811 86964ca
Update cpptest
Ishan09811 fce1fd3
Update examples/INIReaderExample.cpp
Ishan09811 e3463b0
INIReader: Add missing include
Ishan09811 f04d1b8
INIReader: another missing include
Ishan09811 4ad3238
correct cpptext
Ishan09811 a27c36a
remove SetValue; replace std::string -> string as we're using "using"
benhoyt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
Config loaded from 'test.ini': version=6, unsigned version=6, trillion=1000000000000, unsigned trillion=1000000000000, name=Bob Smith, [email protected], pi=3.14159, active=1 | ||
Has values: user.name=1, user.nose=0 | ||
Has sections: user=1, fizz=0 | ||
Sections: | ||
- protocol | ||
- user | ||
Keys in section [protocol]: | ||
- version | ||
Keys in section [user]: | ||
- active | ||
- name | ||
- pi | ||
- trillion |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there, thanks for the contribution! I'm not going to add setting/writing functionality to inih or INIReader, so I'm afraid I'm not going to be adding this method. However, I'm willing to consider
Sections
andKeys
-- I'll discuss those below.