|
@@ -36,6 +36,7 @@
|
|
|
#include "Util.h"
|
|
|
#include "OptionHandlerImpl.h"
|
|
|
#include "Option.h"
|
|
|
+#include "A2STR.h"
|
|
|
#include <istream>
|
|
|
#include <utility>
|
|
|
|
|
@@ -47,10 +48,10 @@ void OptionParser::parse(Option* option, std::istream& is)
|
|
|
int32_t linenum = 0;
|
|
|
while(getline(is, line)) {
|
|
|
++linenum;
|
|
|
- if(Util::startsWith(line, "#")) {
|
|
|
+ if(Util::startsWith(line, A2STR::SHARP_C)) {
|
|
|
continue;
|
|
|
}
|
|
|
- std::pair<std::string, std::string> nv = Util::split(line, "=");
|
|
|
+ std::pair<std::string, std::string> nv = Util::split(line, A2STR::EQUAL_C);
|
|
|
OptionHandlerHandle handler = getOptionHandlerByName(nv.first);
|
|
|
handler->parse(option, nv.second);
|
|
|
}
|