HomeSort by relevance Sort by last modified time
    Searched defs:Regex (Results 1 - 4 of 4) sorted by null

  /external/llvm/lib/Support/
Regex.cpp 1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===//
14 #include "llvm/Support/Regex.h"
22 Regex::Regex(StringRef regex, unsigned Flags) {
25 preg->re_endp = regex.end();
30 error = llvm_regcomp(preg, regex.data(), flags|REG_EXTENDED|REG_PEND);
33 Regex::~Regex() {
38 bool Regex::isValid(std::string &Error)
    [all...]
  /external/llvm/include/llvm/Support/
Regex.h 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===//
25 class Regex {
39 /// Compiles the given POSIX Extended Regular Expression \arg Regex.
42 Regex(StringRef Regex, unsigned Flags = NoFlags);
43 ~Regex();
45 /// isValid - returns the error encountered during regex compilation, or
49 /// getNumMatches - In a valid regex, return the number of parenthesized
51 /// many entries plus one for the whole regex (as element 0).
54 /// matches - Match the regex against a given \arg String
    [all...]
  /external/clang/lib/Frontend/
VerifyDiagnosticConsumer.cpp 19 #include "llvm/Support/Regex.h"
87 /// Constant representing one or more matches aka regex "+".
137 : Directive(Location, Text, Count), Regex(Text) { }
140 if (Regex.isValid(Error))
146 return Regex.match(S);
150 llvm::Regex Regex;
278 KindStr = "regex";
  /external/protobuf/python/
mox.py 904 class Regex(Comparator):
920 self.regex = re.compile(pattern, flags=flags)
929 return self.regex.search(rhs) is not None
932 s = '<regular expression \'%s\'' % self.regex.pattern
933 if self.regex.flags:
934 s += ', flags=%d' % self.regex.flags
    [all...]

Completed in 547 milliseconds