mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
24 lines
855 B
C++
24 lines
855 B
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef _PARSE_SECTION_
|
|
#define _PARSE_SECTION_
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
typedef std::map<const std::string, std::vector<std::string> > section;
|
|
|
|
section ParseSection (const std::string& strInput, const bool bTrim);
|
|
void sectionPrint (section secInput);
|
|
void sectionEntriesPrint (std::vector<std::string>* vspEntries, const std::string& strSection);
|
|
bool sectionSingleB (section& secSource, const std::string& strSection, std::string& strValue);
|
|
int sectionCount (section& secSource, const std::string& strSection);
|
|
section::mapped_type* sectionEntries (section& secSource, const std::string& strSection);
|
|
|
|
#endif
|