Searched refs:regex (Results 1 - 25 of 311) sorted by relevance

1234567891011>>

/external/chromium_org/testing/gtest/include/gtest/
H A Dgtest-death-test.h102 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
103 // which uses the POSIX extended regex syntax.
105 // On other platforms (e.g. Windows), we only support a simple regex
109 // or POSIX extended regex syntax. For example, we don't support
114 // subset of both PCRE and POSIX extended regex, so it's easy to
141 // If you accidentally use PCRE or POSIX extended regex features
147 // as a compiled regex library, but should perform well enough for a
167 // that matches regex.
168 # define ASSERT_EXIT(statement, predicate, regex) \
169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/chromium/testing/gtest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/gtest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/llvm/utils/unittest/googletest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/mesa3d/src/gtest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/open-vcdiff/gtest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/protobuf/gtest/include/gtest/
H A Dgtest-death-test.h91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE
[all...]
/external/easymock/src/org/easymock/internal/matchers/
H A DMatches.java26 private final String regex; field in class:Matches
28 public Matches(String regex) { argument
29 this.regex = regex;
33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
H A DFind.java19 import java.util.regex.Pattern;
27 private final String regex; field in class:Find
29 public Find(String regex) { argument
30 this.regex = regex;
35 && Pattern.compile(regex).matcher((String) actual).find();
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
/external/chromium/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/
H A Dcontentscript.js6 var regex = /sandwich/; variable
9 if (regex.test(document.body.innerText)) {
/external/chromium_org/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/
H A Dcontentscript.js6 var regex = /sandwich/; variable
9 if (regex.test(document.body.innerText)) {
/external/mockito/src/org/mockito/internal/matchers/
H A DFind.java9 import java.util.regex.Pattern;
17 private final String regex; field in class:Find
19 public Find(String regex) { argument
20 this.regex = regex;
24 return actual != null && Pattern.compile(regex).matcher((String) actual).find();
28 description.appendText("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
H A DMatches.java17 private final String regex; field in class:Matches
19 public Matches(String regex) { argument
20 this.regex = regex;
24 return (actual instanceof String) && ((String) actual).matches(regex);
28 description.appendText("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
/external/chromium/sdch/open-vcdiff/src/gtest/
H A Dgtest-death-test.h101 // that matches regex.
102 #define ASSERT_EXIT(statement, predicate, regex) \
103 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_FATAL_FAILURE)
107 #define EXPECT_EXIT(statement, predicate, regex) \
108 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_NONFATAL_FAILURE)
112 // signal, and emitting error output that matches regex.
113 #define ASSERT_DEATH(statement, regex) \
114 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
118 #define EXPECT_DEATH(statement, regex) \
119 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
[all...]
/external/chromium/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/
H A Dcontentscript.js6 var regex = /sandwich/gi; variable
7 matches = document.body.innerText.match(regex);
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/
H A Dcontentscript.js5 var regex = /sandwich/gi; variable
6 matches = document.body.innerText.match(regex);
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
H A Dmatcher.py41 regex: The regular expression representing this matcher.
46 def __init__(self, regex, token_type, result_mode=None, line_start=False):
50 regex: The regular expression to match.
57 self.regex = regex
/external/chromium_org/third_party/closure_linter/closure_linter/common/
H A Dmatcher.py41 regex: The regular expression representing this matcher.
46 def __init__(self, regex, token_type, result_mode=None, line_start=False):
50 regex: The regular expression to match.
57 self.regex = regex
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Ddebugallocation_test.sh49 # Expected regex:<regex>
60 regex=`expr "$regex_line" : "Expected regex:\(.*\)"`
61 test -n "$regex" && break # found the regex line
63 test -z "$regex" && echo "done" || grep "$regex" 2>&1
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Ddebugallocation_test.sh49 # Expected regex:<regex>
60 regex=`expr "$regex_line" : "Expected regex:\(.*\)"`
61 test -n "$regex" && break # found the regex line
63 test -z "$regex" && echo "done" || grep "$regex" 2>&1
/external/chromium/testing/gtest/src/
H A Dgtest-port.cc117 // regfree'ing an invalid regex might crash because the content
118 // of the regex is undefined. Since the regex's are essentially
145 void RE::Init(const char* regex) { argument
146 pattern_ = posix::StrDup(regex);
150 const size_t full_regex_len = strlen(regex) + 10;
153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
160 // Some implementation of POSIX regex (e.g. on at least some
162 // regex. We change it to an equivalent form "()" to be safe.
164 const char* const partial_regex = (*regex
225 FormatRegexSyntaxError(const char* regex, int index) argument
232 ValidateRegex(const char* regex) argument
295 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
322 MatchRegexAtHead(const char* regex, const char* str) argument
358 MatchRegexAnywhere(const char* regex, const char* str) argument
392 Init(const char* regex) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gtest/src/
H A Dgtest-port.cc117 // regfree'ing an invalid regex might crash because the content
118 // of the regex is undefined. Since the regex's are essentially
145 void RE::Init(const char* regex) { argument
146 pattern_ = posix::StrDup(regex);
150 const size_t full_regex_len = strlen(regex) + 10;
153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
160 // Some implementation of POSIX regex (e.g. on at least some
162 // regex. We change it to an equivalent form "()" to be safe.
164 const char* const partial_regex = (*regex
225 FormatRegexSyntaxError(const char* regex, int index) argument
232 ValidateRegex(const char* regex) argument
295 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
322 MatchRegexAtHead(const char* regex, const char* str) argument
358 MatchRegexAnywhere(const char* regex, const char* str) argument
392 Init(const char* regex) argument
[all...]
/external/gtest/src/
H A Dgtest-port.cc117 // regfree'ing an invalid regex might crash because the content
118 // of the regex is undefined. Since the regex's are essentially
145 void RE::Init(const char* regex) { argument
146 pattern_ = posix::StrDup(regex);
150 const size_t full_regex_len = strlen(regex) + 10;
153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
160 // Some implementation of POSIX regex (e.g. on at least some
162 // regex. We change it to an equivalent form "()" to be safe.
164 const char* const partial_regex = (*regex
225 FormatRegexSyntaxError(const char* regex, int index) argument
232 ValidateRegex(const char* regex) argument
295 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
322 MatchRegexAtHead(const char* regex, const char* str) argument
358 MatchRegexAnywhere(const char* regex, const char* str) argument
392 Init(const char* regex) argument
[all...]
/external/llvm/utils/unittest/googletest/
H A Dgtest-port.cc117 // regfree'ing an invalid regex might crash because the content
118 // of the regex is undefined. Since the regex's are essentially
145 void RE::Init(const char* regex) { argument
146 pattern_ = posix::StrDup(regex);
150 const size_t full_regex_len = strlen(regex) + 10;
153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
160 // Some implementation of POSIX regex (e.g. on at least some
162 // regex. We change it to an equivalent form "()" to be safe.
164 const char* const partial_regex = (*regex
225 FormatRegexSyntaxError(const char* regex, int index) argument
232 ValidateRegex(const char* regex) argument
295 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
322 MatchRegexAtHead(const char* regex, const char* str) argument
358 MatchRegexAnywhere(const char* regex, const char* str) argument
392 Init(const char* regex) argument
[all...]

Completed in 892 milliseconds

1234567891011>>