src/lib/INIReader.cpp
branchv_0
changeset 3 4313e91da50b
parent 2 f031a4dc7c52
child 4 d9b047731e18
equal deleted inserted replaced
2:f031a4dc7c52 3:4313e91da50b
    58 				// TODO: support also whitespace
    58 				// TODO: support also whitespace
    59 			} else if (std::regex_match(line, match, commentPattrern)) {
    59 			} else if (std::regex_match(line, match, commentPattrern)) {
    60 				// TODO: support also comments + emit also the comment style (;/#)
    60 				// TODO: support also comments + emit also the comment style (;/#)
    61 			} else if (std::regex_match(line, match, sectionPattrern)) {
    61 			} else if (std::regex_match(line, match, sectionPattrern)) {
    62 				if (inSection) for (INIContentHandler* handler : handlers) handler->endSection();
    62 				if (inSection) for (INIContentHandler* handler : handlers) handler->endSection();
       
    63 				inSection = true;
    63 				INIContentHandler::SectionStartEvent event;
    64 				INIContentHandler::SectionStartEvent event;
    64 				event.lineNumber = lineNumber;
    65 				event.lineNumber = lineNumber;
    65 				event.eventNumber = ++eventNumber;
    66 				event.eventNumber = ++eventNumber;
    66 				event.name = match[1];
    67 				event.name = match[1];
    67 				// TODO: support also comments + emit also the comment style (;/#)
    68 				// TODO: support also comments + emit also the comment style (;/#)