issues
search
codescalersinternships
/
home
home repo for internships
1
stars
0
forks
source link
INI Parser - Farah Tharwat
#140
Open
Farahtharwat35
opened
6 days ago
Farahtharwat35
commented
6 days ago
Create an
INI
parser
expected API
Can get inspired by
configparser
[x] LoadFromString
[x] LoadFromFile
[x] GetSectionNames list of all section names
[x] GetSections serialize convert into a dictionary/map { section_name: {key1: val1, key2, val2} ...}
[x] Get(section_name, key) gets the value of key key in section section_name
[x] Set(section_name, key, value) sets a key in section section_name to value value
[x] ToString
[x] SaveToFile
deliverables
[ ] Code committed on username-inigo repo
[ ] Tests
[ ] Github actions
[ ] API documentation
[ ] Enduser documentation
remarks
[x] assume there're no global keys, every keys need to be part of a section
[x] assume the key value separator is just =
[x] keys and values should have spaces trimmed
[x] comments are only valid at the beginning of the line
Create an INI parser
expected API
Can get inspired by configparser
deliverables
remarks