Searched refs:regexp (Results 1 - 25 of 101) sorted by relevance

12345

/external/v8/test/webkit/fast/regex/
H A Dquantified-assertions.js28 var regexp; variable
30 regexp = /(?=a){0}/gm;
31 debug("\nTesting regexp: " + regexp);
32 shouldBeTrue("regexp.test('a')");
33 shouldBe("regexp.lastIndex", "0");
35 regexp = /(?=a){1}/gm;
36 debug("\nTesting regexp: " + regexp);
37 shouldBeTrue("regexp
[all...]
H A Dmalformed-escapes.js28 var regexp; variable
30 regexp = /\ug/gm;
31 debug("\nTesting regexp: " + regexp);
32 shouldBeTrue("regexp.test('ug')");
33 shouldBe("regexp.lastIndex", "2");
35 regexp = /\xg/gm;
36 debug("\nTesting regexp: " + regexp);
37 shouldBeTrue("regexp
[all...]
/external/v8/test/mjsunit/
H A Dregexp-call-as-function.js32 var regexp = /a(b)(c)/; variable
35 assertEquals(expected, String(regexp.exec(subject)));
36 assertThrows(function(){ regexp(subject); });
H A Dwith-function-expression.js33 // Check that the return value is a function. Use regexp to avoid
35 var regexp = /function/; variable
36 var res = assertTrue(eval(source).match(regexp) == 'function');
/external/v8/test/webkit/
H A Dregexp-many-brackets.js30 var regexp = ""; variable
32 regexp += "(";
33 regexp += "hello";
35 regexp += ")";
41 var manyBracketsRegExp = new RegExp(regexp);
/external/strace/tests/
H A Duid.awk3 regexp = "^getuid" suffix "\\(\\)[[:space:]]+= " r_uint "$"
8 regexp == "" {
14 if (match($0, regexp, a)) {
18 regexp = "^setuid" suffix "\\(" uid "\\)[[:space:]]+= 0$"
21 regexp = "^getresuid" suffix "\\(\\[" uid "\\], \\[" uid "\\], \\[" uid "\\]\\)[[:space:]]+= 0$"
24 regexp = "^setreuid" suffix "\\(-1, -1\\)[[:space:]]+= 0$"
27 regexp = "^setresuid" suffix "\\(" uid ", -1, -1\\)[[:space:]]+= 0$"
30 regexp = "^fchown" suffix "\\(1, -1, -1\\)[[:space:]]+= 0$"
33 regexp = "^getgroups" suffix "\\(0, NULL\\)[[:space:]]+= " r_uint "$"
43 regexp
[all...]
/external/strace/maint/
H A Dioctls_hex.sh38 type="$1"; shift # type might be a regexp
42 regexp='[[:space:]]*#[[:space:]]*define[[:space:]]\+\([A-Z][A-Z0-9_]*\)[[:space:]]\+\(0x'"$type"'..\)\>'
45 grep "^$regexp" "$f" "uapi/$f" 2>/dev/null ||:;
48 sed -n 's/^\([^:]*\):'"$regexp"'.*/{ "\1", "\2", 0, \3, 0 },/p' |
/external/parameter-framework/tools/xmlGenerator/analyse/
H A DreplaceAmixerByPfwParameters.sh38 # a perl regexp that matches only alsa mixer lines
39 regexp='^[^\s/]'
62 if echo "$line" | grep -qP "$regexp" && parameter="$(find_pfw_equivalent "$line" $1)"
/external/regex-re2/re2/testing/
H A Dmimics_pcre_test.cc7 #include "re2/regexp.h"
12 const char* regexp; member in struct:re2::PCRETest
66 Regexp* re = Regexp::Parse(t.regexp, flags, NULL);
67 CHECK(re) << " " << t.regexp;
69 << " " << t.regexp << " "
H A Drequired_prefix_test.cc6 #include "re2/regexp.h"
11 const char* regexp; member in struct:re2::PrefixTest
19 // If the regexp is missing a ^, there's no required prefix.
24 // If the regexp immediately goes into
46 Regexp* re = Regexp::Parse(t.regexp, flags, NULL);
47 CHECK(re) << " " << t.regexp;
52 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf") << " " << re->Dump();
55 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf");
57 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf");
59 << " " << t.regexp << " " << (
[all...]
H A Dsimplify_test.cc10 #include "re2/regexp.h"
15 const char* regexp; member in struct:re2::Test
144 VLOG(1) << "Testing " << tests[i].regexp;
145 Regexp* re = Regexp::Parse(tests[i].regexp,
149 CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text();
154 if (strcmp(tests[i].regexp, tests[i].simplified) == 0) {
155 CHECK(re == sre) << " " << tests[i].regexp
160 << " " << tests[i].regexp << " " << sre->Dump();
H A Dsearch_test.cc9 #include "re2/regexp.h"
16 const char* regexp; member in struct:re2::RegexpTest
309 if (!TestRegexpOnText(t.regexp, t.text))
316 atom.push_back(StringPiece(t.regexp).as_string());
H A Dpossible_match_test.cc9 #include "re2/regexp.h"
24 const char* regexp; member in struct:re2::PrefixTest
109 LOG(INFO) << "Checking regexp=" << CEscape(t.regexp);
110 Regexp* re = Regexp::Parse(t.regexp, Regexp::LikePerl, NULL);
115 << " " << t.regexp;
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
121 EXPECT_EQ(t.min, min) << t.regexp;
122 EXPECT_EQ(t.max, max) << t.regexp;
156 // Fails because it's a malformed regexp
194 HandleRegexp(const string& regexp) argument
[all...]
H A Dregexp_benchmark.cc10 #include "re2/regexp.h"
42 const char* regexp = "(\\d+)-(\\d+)-(\\d+)"; local
46 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
69 PCRE re(regexp, PCRE::UTF8);
78 PCRE* re = new PCRE(regexp, PCRE::UTF8);
88 RE2 re(regexp);
105 typedef void SearchImpl(int iters, const char* regexp, const StringPiece& text,
113 typedef void ParseImpl(int iters, const char* regexp, const StringPiece& text);
133 // Benchmark: failed search for regexp in random text.
149 // the text for regexp iter
150 Search(int iters, int nbytes, const char* regexp, SearchImpl* search) argument
243 string regexp = "^" + s + ".*$"; local
286 SearchSuccess(int iters, int nbytes, const char* regexp, SearchImpl* search) argument
566 ParseRegexp(int iters, const string& regexp) argument
574 SimplifyRegexp(int iters, const string& regexp) argument
585 NullWalkRegexp(int iters, const string& regexp) argument
594 SimplifyCompileRegexp(int iters, const string& regexp) argument
608 CompileRegexp(int iters, const string& regexp) argument
619 CompileToProg(int iters, const string& regexp) argument
630 CompileByteMap(int iters, const string& regexp) argument
642 CompilePCRE(int iters, const string& regexp) argument
649 CompileRE2(int iters, const string& regexp) argument
656 RunBuild(int iters, const string& regexp, void (*run)(int, const string&)) argument
801 SearchDFA(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
818 SearchNFA(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
832 SearchOnePass(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
847 SearchBitState(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
861 SearchPCRE(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
873 SearchRE2(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
889 SearchCachedDFA(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
906 SearchCachedNFA(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
920 SearchCachedOnePass(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
934 SearchCachedBitState(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
947 SearchCachedPCRE(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
959 SearchCachedRE2(int iters, const char* regexp, const StringPiece& text, Prog::Anchor anchor, bool expect_match) argument
975 Parse3NFA(int iters, const char* regexp, const StringPiece& text) argument
988 Parse3OnePass(int iters, const char* regexp, const StringPiece& text) argument
1002 Parse3BitState(int iters, const char* regexp, const StringPiece& text) argument
1015 Parse3Backtrack(int iters, const char* regexp, const StringPiece& text) argument
1028 Parse3PCRE(int iters, const char* regexp, const StringPiece& text) argument
1037 Parse3RE2(int iters, const char* regexp, const StringPiece& text) argument
1046 Parse3CachedNFA(int iters, const char* regexp, const StringPiece& text) argument
1059 Parse3CachedOnePass(int iters, const char* regexp, const StringPiece& text) argument
1072 Parse3CachedBitState(int iters, const char* regexp, const StringPiece& text) argument
1084 Parse3CachedBacktrack(int iters, const char* regexp, const StringPiece& text) argument
1096 Parse3CachedPCRE(int iters, const char* regexp, const StringPiece& text) argument
1105 Parse3CachedRE2(int iters, const char* regexp, const StringPiece& text) argument
1118 Parse1NFA(int iters, const char* regexp, const StringPiece& text) argument
1131 Parse1OnePass(int iters, const char* regexp, const StringPiece& text) argument
1145 Parse1BitState(int iters, const char* regexp, const StringPiece& text) argument
1158 Parse1PCRE(int iters, const char* regexp, const StringPiece& text) argument
1167 Parse1RE2(int iters, const char* regexp, const StringPiece& text) argument
1176 Parse1CachedNFA(int iters, const char* regexp, const StringPiece& text) argument
1189 Parse1CachedOnePass(int iters, const char* regexp, const StringPiece& text) argument
1202 Parse1CachedBitState(int iters, const char* regexp, const StringPiece& text) argument
1214 Parse1CachedBacktrack(int iters, const char* regexp, const StringPiece& text) argument
1226 Parse1CachedPCRE(int iters, const char* regexp, const StringPiece& text) argument
1235 Parse1CachedRE2(int iters, const char* regexp, const StringPiece& text) argument
1244 SearchParse2CachedPCRE(int iters, const char* regexp, const StringPiece& text) argument
1254 SearchParse2CachedRE2(int iters, const char* regexp, const StringPiece& text) argument
1264 SearchParse1CachedPCRE(int iters, const char* regexp, const StringPiece& text) argument
1274 SearchParse1CachedRE2(int iters, const char* regexp, const StringPiece& text) argument
1411 FullMatchPCRE(int iter, int n, const char *regexp) argument
1424 FullMatchRE2(int iter, int n, const char *regexp) argument
[all...]
H A Dcompile_test.cc10 #include "re2/regexp.h"
18 // the regexp compiles to the expected code.
24 const char* regexp; member in struct:re2::Test
108 Regexp* re = Regexp::Parse(t.regexp, Regexp::PerlX|Regexp::Latin1, NULL);
110 LOG(ERROR) << "Cannot parse: " << t.regexp;
116 LOG(ERROR) << "Cannot compile: " << t.regexp;
124 LOG(ERROR) << "Incorrect compiled code for: " << t.regexp;
H A Dexhaustive_tester.cc74 // Processes a single generated regexp.
79 string regexp = const_regexp; local
81 regexp = StringPrintf(topwrapper_.c_str(), regexp.c_str());
84 printf("\r%s", regexp.c_str());
90 // other implementations, such as Go's regexp package.
100 printf("%s\n", escape(regexp));
102 RE2 re(regexp);
105 RE2 relongest(regexp, longest);
125 Tester tester(regexp);
[all...]
H A Dtester.h13 #include "re2/regexp.h"
21 // All the supported regexp engines.
47 // A TestInstance caches per-regexp state for a given
54 TestInstance(const StringPiece& regexp, Prog::MatchKind kind,
75 const StringPiece& regexp_str_; // regexp being tested
80 Regexp* regexp_; // parsed regexp
93 explicit Tester(const StringPiece& regexp);
116 // Run all possible tests using regexp and text.
117 bool TestRegexpOnText(const StringPiece& regexp, const StringPiece& text);
/external/icu/icu4c/source/i18n/unicode/
H A Duregex.h205 * @param regexp The regular expression to be closed.
209 uregex_close(URegularExpression *regexp);
243 * @param regexp The compiled regular expression to be cloned.
249 uregex_clone(const URegularExpression *regexp, UErrorCode *status);
255 * @param regexp The compiled regular expression.
269 uregex_pattern(const URegularExpression *regexp,
277 * @param regexp The compiled regular expression.
285 uregex_patternUText(const URegularExpression *regexp,
291 * @param regexp The compiled regular expression.
297 uregex_flags(const URegularExpression *regexp,
[all...]
/external/v8/test/mjsunit/regress/
H A Dregress-regexp-construct-result.js28 // Create a huge regexp with many alternative capture groups, most of
38 var regexp = new RegExp(regexp_string);
41 var matches = regexp.exec("a");
/external/icu/icu4c/source/i18n/
H A Duregex.cpp324 RegularExpression *regexp = (RegularExpression*)regexp2; local
326 if (validateRE(regexp, FALSE, status) == FALSE) {
330 *patLength = regexp->fPatStringLen;
332 return regexp->fPatString;
344 RegularExpression *regexp = (RegularExpression*)regexp2; local
345 return regexp->fPat->patternText(*status);
356 RegularExpression *regexp = (RegularExpression*)regexp2; local
357 if (validateRE(regexp, FALSE, status) == FALSE) {
360 int32_t flags = regexp->fPat->flags();
375 RegularExpression *regexp local
408 RegularExpression *regexp = (RegularExpression*)regexp2; local
438 RegularExpression *regexp = (RegularExpression*)regexp2; local
478 RegularExpression *regexp = (RegularExpression*)regexp2; local
495 RegularExpression *regexp = (RegularExpression*)regexp2; local
519 RegularExpression *regexp = (RegularExpression*)regexp2; local
549 RegularExpression *regexp = (RegularExpression*)regexp2; local
580 RegularExpression *regexp = (RegularExpression*)regexp2; local
603 RegularExpression *regexp = (RegularExpression*)regexp2; local
619 RegularExpression *regexp = (RegularExpression*)regexp2; local
638 RegularExpression *regexp = (RegularExpression*)regexp2; local
651 RegularExpression *regexp = (RegularExpression*)regexp2; local
669 RegularExpression *regexp = (RegularExpression*)regexp2; local
739 RegularExpression *regexp = (RegularExpression*)regexp2; local
764 RegularExpression *regexp = (RegularExpression*)regexp2; local
788 RegularExpression *regexp = (RegularExpression*)regexp2; local
812 RegularExpression *regexp = (RegularExpression*)regexp2; local
838 RegularExpression *regexp = (RegularExpression*)regexp2; local
857 RegularExpression *regexp = (RegularExpression*)regexp2; local
878 RegularExpression *regexp = (RegularExpression*)regexp2; local
900 RegularExpression *regexp = (RegularExpression*)regexp2; local
916 RegularExpression *regexp = (RegularExpression*)regexp2; local
933 RegularExpression *regexp = (RegularExpression*)regexp2; local
949 RegularExpression *regexp = (RegularExpression*)regexp2; local
966 RegularExpression *regexp = (RegularExpression*)regexp2; local
982 RegularExpression *regexp = (RegularExpression*)regexp2; local
998 RegularExpression *regexp = (RegularExpression*)regexp2; local
1015 RegularExpression *regexp = (RegularExpression*)regexp2; local
1032 RegularExpression *regexp = (RegularExpression*)regexp2; local
1050 RegularExpression *regexp = (RegularExpression*)regexp2; local
1067 RegularExpression *regexp = (RegularExpression*)regexp2; local
1085 RegularExpression *regexp = (RegularExpression*)regexp2; local
1102 RegularExpression *regexp = (RegularExpression*)regexp2; local
1119 RegularExpression *regexp = (RegularExpression*)regexp2; local
1136 RegularExpression *regexp = (RegularExpression*)regexp2; local
1155 RegularExpression *regexp = (RegularExpression*)regexp2; local
1203 RegularExpression *regexp = (RegularExpression*)regexp2; local
1229 RegularExpression *regexp = (RegularExpression*)regexp2; local
1264 RegularExpression *regexp = (RegularExpression*)regexp2; local
1337 appendReplacement(RegularExpression *regexp, const UChar *replacementText, int32_t replacementLength, UChar **destBuf, int32_t *destCapacity, UErrorCode *status) argument
1589 RegularExpression *regexp = (RegularExpression*)regexp2; local
1602 RegularExpression *regexp = (RegularExpression*)regexp2; local
1612 appendTail(RegularExpression *regexp, UChar **destBuf, int32_t *destCapacity, UErrorCode *status) argument
1742 RegularExpression *regexp = (RegularExpression*)regexp2; local
1754 RegularExpression *regexp = (RegularExpression*)regexp2; local
1802 split(RegularExpression *regexp, UChar *destBuf, int32_t destCapacity, int32_t *requiredCapacity, UChar *destFields[], int32_t destFieldsCapacity, UErrorCode *status) argument
1945 RegularExpression *regexp = (RegularExpression*)regexp2; local
1969 RegularExpression *regexp = (RegularExpression*)regexp2; local
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
H A Dant-apache-regexp.jar ... org/apache/tools/ant/util/ org/apache/tools/ant/util/regexp/ org/apache/tools/ant/util/regexp/JakartaRegexpMatcher.class JakartaRegexpMatcher ...
/external/v8/src/
H A Dregexp.js89 // were called again. In SpiderMonkey, this method returns the regexp object.
113 function DoRegExpExec(regexp, string, index) {
114 var result = %_RegExpExec(regexp, string, index, lastMatchInfo);
146 function RegExpExecNoTests(regexp, string, start) {
148 var matchInfo = %_RegExpExec(regexp, string, start, lastMatchInfo);
153 regexp.lastIndex = 0;
198 // One-element cache for the simplified test regexp.
234 // Non-global, non-sticky regexp.
235 // Remove irrelevant preceeding '.*' in a test regexp. The expression
238 var regexp
[all...]
/external/lldb/utils/misc/
H A Dgrep-svn-log.py45 def grep(regexp):
72 if regexp.search(line):
80 regexp = re.compile(sys.argv[1])
81 grep(regexp)
/external/libxml2/
H A DtestAutomata.c38 xmlRegexpPtr regexp = NULL; local
171 regexp = xmlAutomataCompile(am);
174 if (regexp == NULL) {
180 if (regexp == NULL) {
184 exec = xmlRegNewExecCtxt(regexp, NULL, NULL);
198 } else if (regexp != NULL) {
200 exec = xmlRegNewExecCtxt(regexp, NULL, NULL);
209 if (regexp != NULL)
210 xmlRegFreeRegexp(regexp);
225 xmlRegexpPtr regexp; local
[all...]
/external/parameter-framework/tools/coverage/
H A Daplog2coverage.sh45 -e, --regexp A regex to filter (egrep) logs in order to keep only the PFW log lines
64 --longoptions "help,domains:,ouput:,regexp:,parser_option:,force" \
126 xargs --null grep --extended-regexp "$filterRegex" |

Completed in 5302 milliseconds

12345