Searched refs:Regex (Results 1 - 11 of 11) sorted by relevance

/external/llvm/include/llvm/Support/
H A DRegex.h1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===//
25 class Regex { class in namespace:llvm
39 /// Compiles the given POSIX Extended Regular Expression \arg Regex.
42 Regex(StringRef Regex, unsigned Flags = NoFlags);
43 ~Regex();
/external/llvm/unittests/Support/
H A DRegexTest.cpp1 //===- llvm/unittest/Support/RegexTest.cpp - Regex tests --===//
11 #include "llvm/Support/Regex.h"
22 Regex r1("^[0-9]+$");
28 Regex r2("[0-9]+");
33 Regex r3("[0-9]+([a-f])?:([0-9]+)");
46 Regex r4("a[^b]+b");
58 Regex r5(NulPattern);
68 EXPECT_EQ("aNUMber", Regex("[0-9]+").sub("NUM", "a1234ber"));
71 EXPECT_EQ("a\\ber", Regex("[0-9]+").sub("\\\\", "a1234ber", &Error));
73 EXPECT_EQ("a\nber", Regex("[
[all...]
/external/llvm/lib/Support/
H A DRegex.cpp1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===//
14 #include "llvm/Support/Regex.h"
22 Regex::Regex(StringRef regex, unsigned Flags) { function in class:Regex
33 Regex::~Regex() {
38 bool Regex::isValid(std::string &Error) {
51 unsigned Regex::getNumMatches() const {
55 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){
94 std::string Regex
[all...]
H A DAndroid.mk41 Regex.cpp \
H A DCMakeLists.txt37 Regex.cpp
/external/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp19 #include "llvm/Support/Regex.h"
133 : Directive(Location, Text, Count), Regex(Text) { }
136 if (Regex.isValid(Error))
142 return Regex.match(S);
146 llvm::Regex Regex; member in class:__anon2892::RegexDirective
/external/llvm/tools/llvm-extract/
H A Dllvm-extract.cpp29 #include "llvm/Support/Regex.h"
114 Regex RegEx(ExtractRegExpGlobals[i]);
148 Regex RegEx(RegExStr);
/external/llvm/utils/FileCheck/
H A DFileCheck.cpp23 #include "llvm/Support/Regex.h"
269 Regex R(RegexStr);
299 // Regex match.
332 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo))
/external/clang/tools/driver/
H A Ddriver.cpp31 #include "llvm/Support/Regex.h"
110 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]);
/external/clang/tools/scan-build/
H A Dscan-build292 my $Regex = qr/(.*?)\ :\ (.*?)\ ->\ Total\ CFGBlocks:\ (\d+)\ \|\ Unreachable
296 if ($Line !~ $Regex) {
/external/protobuf/python/
H A Dmox.py904 class Regex(Comparator): class in inherits:Comparator

Completed in 1022 milliseconds