equal
deleted
inserted
replaced
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 (;/#) |