/external/llvm/unittests/Support/ |
RegexTest.cpp | 1 //===- llvm/unittest/Support/RegexTest.cpp - Regex tests --===// 10 #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"); 57 Regex r5(NulPattern); 65 Regex r1("([a-z]+)_\\1"); 71 Regex r2("a([0-9])b\\1c\\1"); 77 Regex r3("a([0-9])([a-z])b\\1\\2") [all...] |
/external/llvm/include/llvm/Support/ |
Regex.h | 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// 29 class Regex { 47 /// Compiles the given regular expression \p Regex. 48 Regex(StringRef Regex, unsigned Flags = NoFlags); 49 Regex(const Regex &) LLVM_DELETED_FUNCTION; 50 Regex &operator=(Regex regex) { [all...] |
SpecialCaseList.h | 41 // Note that the wild card is in fact an llvm::Regex, but * is automatically 55 class Regex;
|
/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(); 32 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); 35 Regex::~Regex() { 42 bool Regex::isValid(std::string &Error) [all...] |
SpecialCaseList.cpp | 23 #include "llvm/Support/Regex.h" 32 /// "literal" (i.e. no regex metacharacters) are stored in Strings, while all 33 /// others are represented as a single pipe-separated regex in RegEx. The 35 /// literal strings than Regex. 39 : Strings(std::move(Other.Strings)), RegEx(std::move(Other.RegEx)) {} 42 std::unique_ptr<Regex> RegEx; 45 return Strings.count(Query) || (RegEx && RegEx->match(Query)) [all...] |
Android.mk | 54 Regex.cpp \
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
CommonToken.cs | 36 using Regex = System.Text.RegularExpressions.Regex; 242 txt = Regex.Replace( txt, "\n", "\\\\n" ); 243 txt = Regex.Replace( txt, "\r", "\\\\r" ); 244 txt = Regex.Replace( txt, "\t", "\\\\t" );
|
BaseRecognizer.cs | 44 using Regex = System.Text.RegularExpressions.Regex; 423 s = Regex.Replace( s, "\n", "\\\\n" ); 424 s = Regex.Replace( s, "\r", "\\\\r" ); 425 s = Regex.Replace( s, "\t", "\\\\t" ); [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
TreeParser.cs | 35 using Regex = System.Text.RegularExpressions.Regex; 48 // precompiled regex used by inContext 51 static Regex dotdotPattern = new Regex(dotdot, RegexOptions.Compiled); 52 static Regex doubleEtcPattern = new Regex(doubleEtc, RegexOptions.Compiled);
|
DotTreeGenerator.cs | 204 text = System.Text.RegularExpressions.Regex.Replace( text, "\"", "\\\\\"" ); 205 text = System.Text.RegularExpressions.Regex.Replace( text, "\\t", " " ); 206 text = System.Text.RegularExpressions.Regex.Replace( text, "\\n", "\\\\n" ); 207 text = System.Text.RegularExpressions.Regex.Replace( text, "\\r", "\\\\r" );
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
TreeParser.cs | 36 using Regex = System.Text.RegularExpressions.Regex; 50 // precompiled regex used by inContext 53 static Regex dotdotPattern = new Regex( dotdot, RegexOptions.Compiled ); 54 static Regex doubleEtcPattern = new Regex( doubleEtc, RegexOptions.Compiled );
|
DotTreeGenerator.cs | 204 text = System.Text.RegularExpressions.Regex.Replace( text, "\"", "\\\\\"" ); 205 text = System.Text.RegularExpressions.Regex.Replace( text, "\\t", " " ); 206 text = System.Text.RegularExpressions.Regex.Replace( text, "\\n", "\\\\n" ); 207 text = System.Text.RegularExpressions.Regex.Replace( text, "\\r", "\\\\r" );
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
StringExtensions.cs | 36 using Regex = System.Text.RegularExpressions.Regex; 103 public static string replaceAll( this string str, string regex, string newValue ) 105 return Regex.Replace( str, regex, newValue ); 108 public static string replaceFirst( this string str, string regex, string replacement ) 110 return Regex.Replace( str, regex, replacement );
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
CommonToken.cs | 35 using Regex = System.Text.RegularExpressions.Regex; 205 txt = Regex.Replace(txt, "\n", "\\\\n"); 206 txt = Regex.Replace(txt, "\r", "\\\\r"); 207 txt = Regex.Replace(txt, "\t", "\\\\t");
|
BaseRecognizer.cs | 43 using Regex = System.Text.RegularExpressions.Regex; 358 s = Regex.Replace(s, "\n", "\\\\n"); 359 s = Regex.Replace(s, "\r", "\\\\r"); 360 s = Regex.Replace(s, "\t", "\\\\t"); [all...] |
/external/clang/include/clang/Frontend/ |
CodeGenOptions.h | 19 #include "llvm/Support/Regex.h" 161 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern; 168 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern; 176 std::shared_ptr<llvm::Regex> OptimizationRemarkAnalysisPattern;
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Utility/Antlr.Utility.Tree/ |
DOTTreeGenerator.cs | 187 text = System.Text.RegularExpressions.Regex.Replace(text, "\"", "\\\\\""); 188 text = System.Text.RegularExpressions.Regex.Replace(text, "\\t", " "); 189 text = System.Text.RegularExpressions.Regex.Replace(text, "\\n", "\\\\n"); 190 text = System.Text.RegularExpressions.Regex.Replace(text, "\\r", "\\\\r");
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
StringExtensions.cs | 107 public static string replaceAll( string str, string regex, string newValue ) 109 return System.Text.RegularExpressions.Regex.Replace( str, regex, newValue ); 112 public static string replaceFirst( string str, string regex, string replacement ) 114 return System.Text.RegularExpressions.Regex.Replace( str, regex, replacement );
|
/external/clang/lib/Driver/ |
Multilib.cpp | 23 #include "llvm/Support/Regex.h" 237 MultilibSet &MultilibSet::FilterOut(std::string Regex) { 239 mutable llvm::Regex R; 242 REFilter(std::string Regex) : R(Regex) {} 254 REFilter REF(Regex);
|
/external/llvm/lib/IR/ |
DiagnosticInfo.cpp | 27 #include "llvm/Support/Regex.h" 40 std::shared_ptr<Regex> Pattern; 45 Pattern = std::make_shared<Regex>(Val);
|
/external/llvm/tools/llvm-extract/ |
llvm-extract.cpp | 28 #include "llvm/Support/Regex.h" 129 Regex RegEx(ExtractRegExpAliases[i]); 130 if (!RegEx.isValid(Error)) { 132 "invalid regex: " << Error; 137 if (RegEx.match(GA->getName())) { 163 Regex RegEx(ExtractRegExpGlobals[i]); 164 if (!RegEx.isValid(Error)) { 166 "invalid regex: " << Error [all...] |
/external/clang/include/clang/Driver/ |
Multilib.h | 129 MultilibSet &FilterOut(std::string Regex);
|
/external/clang/lib/Format/ |
ContinuationIndenter.h | 21 #include "llvm/Support/Regex.h" 141 llvm::Regex CommentPragmasRegex;
|
/external/clang/lib/Frontend/ |
VerifyDiagnosticConsumer.cpp | 22 #include "llvm/Support/Regex.h" 189 Regex(RegexStr) { } 192 if (Regex.isValid(Error)) 198 return Regex.match(S); 202 llvm::Regex Regex; 372 KindStr = "regex"; 497 // Check that regex directives contain at least one regex. 890 // Append the regex, enclosed in parentheses [all...] |
/external/llvm/utils/FileCheck/ |
FileCheck.cpp | 26 #include "llvm/Support/Regex.h" 83 /// RegEx - If non-empty, this is a regex pattern. 151 /// \brief Finds the closing sequence of a regex variable usage or 180 // Check to see if this is a fixed string, or if it has regex pieces. 192 // Otherwise, there is at least one regex piece. Build up the regex pattern 193 // by escaping scary characters in fixed strings, building up one big regex. 195 // RegEx matches. 197 // This is the start of a regex match. Scan for the }} [all...] |