Add helpers for parsing section files.

This commit is contained in:
Arthur Britto
2012-04-05 16:19:48 -07:00
parent 29afd2eeaf
commit 50621437e6
2 changed files with 46 additions and 0 deletions

View File

@@ -9,5 +9,8 @@ typedef std::map<const std::string, std::vector<std::string> > section;
section ParseSection(const std::string strInput, const bool bTrim);
void PrintSection(section secInput);
bool sectionSingleB(section& secSource, std::string strSection, std::string& strValue);
int sectionCount(section& secSource, std::string strSection);
section::mapped_type* sectionEntries(section& secSource, std::string strSection);
#endif