Lines Matching refs:std

22 test(const CharT* p, std::size_t len, std::regex_constants::syntax_option_type f,
25 std::basic_regex<CharT> r(p, len, f);
32 test("\\(a\\)", 5, std::regex_constants::basic, 1);
33 test("\\(a[bc]\\)", 9, std::regex_constants::basic, 1);
34 test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::basic, 2);
35 test("(a([bc]))", 9, std::regex_constants::basic, 0);
37 test("\\(a\\)", 5, std::regex_constants::extended, 0);
38 test("\\(a[bc]\\)", 9, std::regex_constants::extended, 0);
39 test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::extended, 0);
40 test("(a([bc]))", 9, std::regex_constants::extended, 2);
42 test("\\(a\\)", 5, std::regex_constants::ECMAScript, 0);
43 test("\\(a[bc]\\)", 9, std::regex_constants::ECMAScript, 0);
44 test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::ECMAScript, 0);
45 test("(a([bc]))", 9, std::regex_constants::ECMAScript, 2);
47 test("\\(a\\)", 5, std::regex_constants::awk, 0);
48 test("\\(a[bc]\\)", 9, std::regex_constants::awk, 0);
49 test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::awk, 0);
50 test("(a([bc]))", 9, std::regex_constants::awk, 2);
52 test("\\(a\\)", 5, std::regex_constants::grep, 1);
53 test("\\(a[bc]\\)", 9, std::regex_constants::grep, 1);
54 test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::grep, 2);
55 test("(a([bc]))", 9, std::regex_constants::grep, 0);
57 test("\\(a\\)", 5, std::regex_constants::egrep, 0);
58 test("\\(a[bc]\\)", 9, std::regex_constants::egrep, 0);
59 test("\\(a\\([bc]\\)\\)", 13, std::regex_constants::egrep, 0);
60 test("(a([bc]))", 9, std::regex_constants::egrep, 2);