HomeSort by relevance Sort by last modified time
    Searched refs:re (Results 1 - 25 of 3141) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/libxml2/python/tests/
regexp.py 7 re = libxml2.regexpCompile("a|b") variable
8 if re.regexpExec("a") != 1:
11 if re.regexpExec("b") != 1:
14 if re.regexpExec("ab") != 0:
17 if re.regexpExec("") != 0:
20 if re.regexpIsDeterminist() != 1:
23 del re
  /external/adhd/cras/src/server/
rate_estimator.c 35 void rate_estimator_destroy(struct rate_estimator *re)
37 if (re)
38 free(re);
45 struct rate_estimator *re; local
47 re = (struct rate_estimator *)calloc(1, sizeof(*re));
48 if (re == NULL)
51 re->window_size = *window_size;
52 re->estimated_rate = rate;
53 re->smooth_factor = smooth_factor
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
sre.py 2 It will be removed in the future. sre was moved to re in version 2.5.
6 warnings.warn("The sre module is deprecated, please import re.",
9 from re import *
10 from re import __all__
13 from re import _compile
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
sre.py 2 It will be removed in the future. sre was moved to re in version 2.5.
6 warnings.warn("The sre module is deprecated, please import re.",
9 from re import *
10 from re import __all__
13 from re import _compile
  /external/python/cpython2/Lib/
sre.py 2 It will be removed in the future. sre was moved to re in version 2.5.
6 warnings.warn("The sre module is deprecated, please import re.",
9 from re import *
10 from re import __all__
13 from re import _compile
  /bionic/tests/
regex_test.cpp 24 regex_t re; local
25 ASSERT_EQ(0, regcomp(&re, "ab*c", 0));
26 ASSERT_EQ(0, regexec(&re, "abbbc", 0, nullptr, 0));
27 ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, nullptr, 0));
30 regerror(REG_NOMATCH, &re, buf, sizeof(buf));
37 regfree(&re);
41 regex_t re; local
43 ASSERT_EQ(0, regcomp(&re, "b", 0));
44 ASSERT_EQ(0, regexec(&re, "abc", 1, matches, 0));
47 regfree(&re);
51 regex_t re; local
    [all...]
  /external/libcxx/test/std/re/re.const/re.matchflag/
match_not_bol.pass.cpp 26 std::regex re("^foo");
27 assert( std::regex_match(target, re));
28 assert(!std::regex_match(target, re, std::regex_constants::match_not_bol));
33 std::regex re("foo");
34 assert( std::regex_match(target, re));
35 assert( std::regex_match(target, re, std::regex_constants::match_not_bol));
40 std::regex re("^foo");
41 assert( std::regex_search(target, re));
42 assert(!std::regex_search(target, re, std::regex_constants::match_not_bol));
47 std::regex re("foo")
    [all...]
match_not_eol.pass.cpp 26 std::regex re("foo$");
27 assert( std::regex_match(target, re));
28 assert(!std::regex_match(target, re, std::regex_constants::match_not_eol));
33 std::regex re("foo");
34 assert( std::regex_match(target, re));
35 assert( std::regex_match(target, re, std::regex_constants::match_not_eol));
40 std::regex re("foo$");
41 assert( std::regex_search(target, re));
42 assert(!std::regex_search(target, re, std::regex_constants::match_not_eol));
47 std::regex re("foo")
    [all...]
  /external/python/cpython2/Lib/test/
test_re.py 8 import re
9 from re import Scanner
17 # Misc tests from Tim Peters' re.doc
20 # what you're doing. Some of these tests were carefully modeled to
29 x = re.compile('ab+c')
34 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0))
35 self.assertEqual(re.search('x*', 'axx').span(), (0, 0))
36 self.assertEqual(re.search('x+', 'axx').span(0), (1, 3))
37 self.assertEqual(re.search('x+', 'axx').span(), (1, 3))
38 self.assertIsNone(re.search('x', 'aaa')
    [all...]
  /external/libcxx/test/std/re/re.regex/re.regex.construct/
deduct.pass.cpp 42 std::basic_regex re(s1.begin(), s1.end());
44 static_assert(std::is_same_v<decltype(re), std::basic_regex<char>>, "");
45 assert(re.flags() == std::regex_constants::ECMAScript);
46 assert(re.mark_count() == 0);
51 std::basic_regex re(s1.begin(), s1.end(), std::regex_constants::basic);
53 static_assert(std::is_same_v<decltype(re), std::basic_regex<wchar_t>>, "");
54 assert(re.flags() == std::regex_constants::basic);
55 assert(re.mark_count() == 1);
61 std::basic_regex re("(a([bc]))"s);
62 static_assert(std::is_same_v<decltype(re), std::basic_regex<char>>, "")
    [all...]
deduct.fail.cpp 34 std::basic_regex re(23, 34); // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'basic_regex'}}
40 std::basic_regex re(23.0, 34.0, std::regex_constants::basic); // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'basic_regex'}}
  /external/google-benchmark/cmake/
posix_regex.cpp 5 regex_t re; local
6 int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB);
10 int ret = regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
11 regfree(&re);
  /external/libcxx/utils/google-benchmark/cmake/
posix_regex.cpp 5 regex_t re; local
6 int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB);
10 int ret = regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
11 regfree(&re);
  /external/ltp/testcases/commands/tpm-tools/tpmtoken/tpmtoken_init/
tpmtoken_init_tests_exp02.sh 29 -re "Clear the TPM token data?" {
33 -re "A new TPM security officer password is needed." {
40 expect -re "Enter the TPM security officer password: "
43 expect -re "Enter new password: "
45 expect -re "Confirm password: "
47 expect -re "A new TPM user password is needed."
48 expect -re "Enter new password: "
50 expect -re "Confirm password: "
tpmtoken_init_tests_exp01.sh 29 -re "Clear the TPM token data?" {
33 -re "A new TPM security officer password is needed." {
39 expect -re "Enter new password: "
41 expect -re "Confirm password: "
43 expect -re "A new TPM user password is needed."
44 expect -re "Enter new password: "
46 expect -re "Confirm password: "
tpmtoken_init_tests_exp03.sh 29 -re "Enter the TPM security officer password: " {
33 -re "A new TPM security officer password is needed." {
38 expect -re "Enter new password: "
40 expect -re "Confirm password: "
42 expect -re "A new TPM user password is needed."
43 expect -re "Enter new password: "
45 expect -re "Confirm password: "
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_re.py 2 import re
3 from re import Scanner
9 # Misc tests from Tim Peters' re.doc
12 # what you're doing. Some of these tests were carefully modeled to
21 x = re.compile('ab+c')
26 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0))
27 self.assertEqual(re.search('x*', 'axx').span(), (0, 0))
28 self.assertEqual(re.search('x+', 'axx').span(0), (1, 3))
29 self.assertEqual(re.search('x+', 'axx').span(), (1, 3))
30 self.assertEqual(re.search('x', 'aaa'), None)
    [all...]
  /device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
GlobalData.py 13 import re
44 gMacroRefPattern = re.compile("\$\(([A-Z][_A-Z0-9]*)\)", re.UNICODE)
45 gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+")
46 gMacroNamePattern = re.compile("^[A-Z][A-Z0-9_]*$")
48 gWideStringPattern = re.compile('(\W|\A)L"')
  /external/adhd/cras/src/tests/
rate_estimator_unittest.cc 17 struct rate_estimator *re; local
24 re = rate_estimator_create(10000, &window, 0.0f);
27 rc = rate_estimator_check(re, level, &t);
32 rate_estimator_add_frames(re, 5 + tmp);
37 rc = rate_estimator_check(re, level, &t);
39 EXPECT_GT(10000, rate_estimator_get_rate(re));
40 EXPECT_LT(9999, rate_estimator_get_rate(re));
42 rate_estimator_destroy(re);
46 struct rate_estimator *re; local
57 re = rate_estimator_create(7470, &window, 0.0f)
78 struct rate_estimator *re; local
109 struct rate_estimator *re; local
138 struct rate_estimator *re; local
165 struct rate_estimator *re; local
    [all...]
  /external/python/cpython3/Lib/test/
test_re.py 4 import re
9 from re import Scanner
12 # Misc tests from Tim Peters' re.doc
15 # what you're doing. Some of these tests were carefully modeled to
39 with self.assertRaises(re.error) as cm:
40 re.compile(pattern)
48 with self.assertRaises(re.error) as cm:
49 re.sub(pattern, repl, string)
59 it = re.finditer(b'a', b)
69 x = re.compile('ab+c'
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
infinite_loop_re.py 7 import re
8 starttag = re.compile(r'<[a-zA-Z][-_.:a-zA-Z0-9]*\s*('
  /external/autotest/utils/
gslib.py 10 import re
24 return re.sub(_INVALID_GS_PATTERN,
  /external/libcxx/test/std/re/re.alg/re.alg.match/
basic.fail.cpp 33 std::regex re{"*"};
34 std::regex_match(std::string("abcde"), m, re);
  /external/libcxx/test/std/re/re.alg/re.alg.search/
basic.fail.cpp 33 std::regex re{"*"};
34 std::regex_search(std::string("abcde"), m, re);
  /external/ltp/testcases/commands/tpm-tools/tpm/tpm_takeownership/
tpm_takeownership_tests_exp01.sh 26 expect -re "Enter owner password: "
28 expect -re "Confirm password: "
30 expect -re "Enter SRK password: "
32 expect -re "Confirm password: "

Completed in 1514 milliseconds

1 2 3 4 5 6 7 8 91011>>