Lines Matching refs:tools
40 namespace impl = tools::config_file;
41 namespace detail = tools::config_file::detail;
49 static const tools::parser::token_type eof_type = 0;
50 static const tools::parser::token_type nl_type = 1;
51 static const tools::parser::token_type text_type = 2;
52 static const tools::parser::token_type dblquote_type = 3;
53 static const tools::parser::token_type equal_type = 4;
54 static const tools::parser::token_type hash_type = 5;
56 class tokenizer : public tools::parser::tokenizer< std::istream > {
59 tools::parser::tokenizer< std::istream >
105 merge_config_file(const tools::fs::path& config_path,
117 std::vector< tools::fs::path >
120 std::vector< tools::fs::path > dirs;
121 dirs.push_back(tools::fs::path(tools::config::get("atf_confdir")));
122 if (tools::env::has("HOME"))
123 dirs.push_back(tools::fs::path(tools::env::get("HOME")) / ".atf");
153 using tools::parser::parse_error;
156 std::pair< size_t, tools::parser::headers_map > hml =
157 tools::parser::read_headers(m_is, 1);
158 tools::parser::validate_content_type(hml.second,
162 tools::parser::parser< tokenizer > p(tkz);
166 tools::parser::token t = p.expect(eof_type, hash_type, text_type,
214 const std::vector< tools::fs::path > dirs = get_config_dirs();
215 for (std::vector< tools::fs::path >::const_iterator iter = dirs.begin();