Searched defs:regex (Results 1 - 12 of 12) sorted by relevance

/ndk/sources/host-tools/sed-4.2.1/testsuite/
H A Dbug-regex8.c30 #include <regex.h>
36 struct re_pattern_buffer regex; local
40 memset (&regex, '\0', sizeof (regex));
42 s = re_compile_pattern ("xy$", 3, &regex);
49 match[0] = re_match_2(&regex,"xyz",3,NULL,0,0,NULL,2);
51 free (regex.buffer);
52 memset (&regex, '\0', sizeof (regex));
54 s = re_compile_pattern ("xy\\>", 4, &regex);
[all...]
H A Dbug-regex10.c28 #include <regex.h>
33 struct re_pattern_buffer regex; local
40 memset (&regex, '\0', sizeof (regex));
41 s = re_compile_pattern ("[abc]*d", 7, &regex);
49 match = re_match (&regex, "foacabdxy", 9, 2, &regs);
H A Dbug-regex7.c30 #include <regex.h>
36 struct re_pattern_buffer regex; local
42 memset (&regex, '\0', sizeof (regex));
45 s = re_compile_pattern ("a", 1, &regex);
53 match = re_search (&regex, "baobab", 6, 0, 6, &regs);
67 free (regex.buffer);
68 memset (&regex, '\0', sizeof (regex));
70 s = re_compile_pattern ("\\(\\(\\(a\\)\\)\\)", 13, &regex);
[all...]
H A Dbug-regex27.c22 #include <regex.h>
28 const char *regex; member in struct:tests
49 if (regcomp (&r, tests[i].regex, tests[i].cflags))
H A Dbug-regex28.c22 #include <regex.h>
28 const char *regex; member in struct:tests
59 if (re_compile_pattern (tests[i].regex, strlen (tests[i].regex), &r))
/ndk/sources/host-tools/ndk-stack/
H A Dndk-stack-parser.c23 #include "regex/regex.h"
97 * regex - Regular expression to match the string against.
104 static int MatchRegex(const char* line, const regex_t* regex, regmatch_t* match);
254 MatchRegex(const char* line, const regex_t* regex, regmatch_t* match) argument
256 int err = regexec(regex, line, 1, match, 0x00400/*REG_TRACE*/);
260 regerror(err, regex, rerr, sizeof(rerr));
261 fprintf(stderr, "regexec(%s, %s) has failed: %s\n", line, regex, rerr);
/ndk/sources/third_party/googletest/googletest/src/
H A Dgtest-port.cc142 // regfree'ing an invalid regex might crash because the content
143 // of the regex is undefined. Since the regex's are essentially
170 void RE::Init(const char* regex) { argument
171 pattern_ = posix::StrDup(regex);
175 const size_t full_regex_len = strlen(regex) + 10;
178 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
185 // Some implementation of POSIX regex (e.g. on at least some
187 // regex. We change it to an equivalent form "()" to be safe.
189 const char* const partial_regex = (*regex
250 FormatRegexSyntaxError(const char* regex, int index) argument
257 ValidateRegex(const char* regex) argument
320 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
347 MatchRegexAtHead(const char* regex, const char* str) argument
383 MatchRegexAnywhere(const char* regex, const char* str) argument
417 Init(const char* regex) argument
[all...]
H A Dgtest-death-test.cc345 bool DeathTest::Create(const char* statement, const RE* regex, argument
348 statement, regex, file, line, test);
380 const RE* regex() const { return regex_; } function in class:testing::internal::DeathTestImpl
519 // regex: A regular expression object to be applied to
555 const bool matched = RE::PartialMatch(error_message.c_str(), *regex());
560 << " Expected: " << regex()->pattern() << "\n"
778 ForkingDeathTest(const char* statement, const RE* regex);
1153 bool DefaultDeathTestFactory::Create(const char* statement, const RE* regex, argument
1182 *test = new WindowsDeathTest(statement, regex, file, line);
1188 *test = new ExecDeathTest(statement, regex, fil
[all...]
/ndk/sources/third_party/googletest/googletest/test/
H A Dgtest-port_test.cc362 const char regex[] = local
373 regex);
H A Dgtest-death-test_test.cc320 // TODO(wan@google.com): <regex.h> doesn't support matching strings
509 const testing::internal::RE regex(regex_c_str);
510 EXPECT_DEATH(GlobalFunction(), regex); local
601 const char* regex = "DieIf"; local
602 const char* regex_save = regex;
603 EXPECT_DEATH(DieIfLessThan(3, 4), regex++);
604 EXPECT_EQ(regex_save + 1, regex);
820 const ::testing::internal::RE* regex,
936 const ::testing::internal::RE* /*regex*/,
/ndk/sources/host-tools/sed-4.2.1/sed/
H A Dsed.h24 #include "regex.h"
56 struct regex { struct
110 struct regex *addr_regex;
123 struct regex *regx;
135 regex.texinfo for a full description of what registers match. */
199 struct regex *compile_regex P_((struct buffer *b, int flags, int needed_sub));
200 int match_regex P_((struct regex *regex,
204 void release_regex P_((struct regex *));
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/
H A Dgtest-port.h129 // GTEST_USES_POSIX_RE - enhanced POSIX regex is used. Do not confuse with
132 // GTEST_USES_SIMPLE_RE - our own simple regex is used;
307 // On Android, <regex.h> is only available starting with Gingerbread.
316 // On some platforms, <regex.h> needs someone to define size_t, and
320 # include <regex.h> // NOLINT
326 // <regex.h> is not available on Windows. Use our own simple regex
332 // <regex.h> may not be available on this platform. Use our own
333 // simple regex implementation instead.
924 // A simple C++ wrapper for <regex
933 RE(const ::std::string& regex) argument
937 RE(const ::string& regex) argument
941 RE(const char* regex) argument
[all...]

Completed in 8295 milliseconds