Lines Matching refs:line
42 std::string line; in ParseFile() local
43 while (std::getline(stream_, line)) { in ParseFile()
44 ParseLine(++line_no, line); in ParseFile()
50 void ConfigParser::ParseLine(size_t line_no, std::string_view line) { in ParseLine() argument
51 if (line.empty() || line[0] == ';' || line[0] == '#') { in ParseLine()
57 if (line[0] == '[') { in ParseLine()
58 std::string::size_type pos = line.rfind(']'); in ParseLine()
63 std::string_view section_name = line.substr(1, pos - 1); in ParseLine()
69 std::string::size_type pos = line.find('='); in ParseLine()
76 std::string_view key = Trim(line.substr(0, pos)); in ParseLine()
77 std::string_view value = Trim(line.substr(pos + 1)); in ParseLine()