/external/llvm/unittests/Support/ |
D | RegexTest.cpp | 22 Regex r1("^[0-9]+$"); in TEST_F() 28 Regex r2("[0-9]+"); in TEST_F() 33 Regex r3("[0-9]+([a-f])?:([0-9]+)"); in TEST_F() 46 Regex r4("a[^b]+b"); in TEST_F() 57 Regex r5(NulPattern); in TEST_F() 65 Regex r1("([a-z]+)_\\1"); in TEST_F() 71 Regex r2("a([0-9])b\\1c\\1"); in TEST_F() 77 Regex r3("a([0-9])([a-z])b\\1\\2"); in TEST_F() 89 EXPECT_EQ("aNUMber", Regex("[0-9]+").sub("NUM", "a1234ber")); in TEST_F() 92 EXPECT_EQ("a\\ber", Regex("[0-9]+").sub("\\\\", "a1234ber", &Error)); in TEST_F() [all …]
|
/external/llvm/include/llvm/Support/ |
D | Regex.h | 29 class Regex { 48 Regex(StringRef Regex, unsigned Flags = NoFlags); 49 Regex(const Regex &) LLVM_DELETED_FUNCTION; 50 Regex &operator=(Regex regex) { 55 Regex(Regex &®ex) { in Regex() function 60 ~Regex();
|
D | SpecialCaseList.h | 55 class Regex; variable
|
/external/llvm/lib/Support/ |
D | Regex.cpp | 22 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() function in Regex 35 Regex::~Regex() { in ~Regex() 42 bool Regex::isValid(std::string &Error) { in isValid() 55 unsigned Regex::getNumMatches() const { in getNumMatches() 59 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match() 98 std::string Regex::sub(StringRef Repl, StringRef String, in sub() 177 bool Regex::isLiteralERE(StringRef Str) { in isLiteralERE() 184 std::string Regex::escape(StringRef String) { in escape()
|
D | SpecialCaseList.cpp | 42 std::unique_ptr<Regex> RegEx; 119 if (Regex::isLiteralERE(Regexp)) { in parse() 131 Regex CheckRE(Regexp); in parse() 152 Entries[I->getKey()][II->getKey()].RegEx.reset(new Regex(II->getValue())); in parse()
|
D | Android.mk | 54 Regex.cpp \
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | TreeParser.cs | 35 using Regex = System.Text.RegularExpressions.Regex; typedef 51 static Regex dotdotPattern = new Regex(dotdot, RegexOptions.Compiled); 52 static Regex doubleEtcPattern = new Regex(doubleEtc, RegexOptions.Compiled);
|
D | DotTreeGenerator.cs | 204 text = System.Text.RegularExpressions.Regex.Replace( text, "\"", "\\\\\"" ); in FixString() 205 text = System.Text.RegularExpressions.Regex.Replace( text, "\\t", " " ); in FixString() 206 text = System.Text.RegularExpressions.Regex.Replace( text, "\\n", "\\\\n" ); in FixString() 207 text = System.Text.RegularExpressions.Regex.Replace( text, "\\r", "\\\\r" ); in FixString()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | TreeParser.cs | 36 using Regex = System.Text.RegularExpressions.Regex; typedef 53 static Regex dotdotPattern = new Regex( dotdot, RegexOptions.Compiled ); 54 static Regex doubleEtcPattern = new Regex( doubleEtc, RegexOptions.Compiled );
|
D | DotTreeGenerator.cs | 204 text = System.Text.RegularExpressions.Regex.Replace( text, "\"", "\\\\\"" ); in FixString() 205 text = System.Text.RegularExpressions.Regex.Replace( text, "\\t", " " ); in FixString() 206 text = System.Text.RegularExpressions.Regex.Replace( text, "\\n", "\\\\n" ); in FixString() 207 text = System.Text.RegularExpressions.Regex.Replace( text, "\\r", "\\\\r" ); in FixString()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | CommonToken.cs | 36 using Regex = System.Text.RegularExpressions.Regex; typedef 242 txt = Regex.Replace( txt, "\n", "\\\\n" ); in ToString() 243 txt = Regex.Replace( txt, "\r", "\\\\r" ); in ToString() 244 txt = Regex.Replace( txt, "\t", "\\\\t" ); in ToString()
|
D | BaseRecognizer.cs | 44 using Regex = System.Text.RegularExpressions.Regex; typedef 423 s = Regex.Replace( s, "\n", "\\\\n" ); in GetTokenErrorDisplay() 424 s = Regex.Replace( s, "\r", "\\\\r" ); in GetTokenErrorDisplay() 425 s = Regex.Replace( s, "\t", "\\\\t" ); in GetTokenErrorDisplay()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | CommonToken.cs | 35 using Regex = System.Text.RegularExpressions.Regex; typedef 205 txt = Regex.Replace(txt, "\n", "\\\\n"); in ToString() 206 txt = Regex.Replace(txt, "\r", "\\\\r"); in ToString() 207 txt = Regex.Replace(txt, "\t", "\\\\t"); in ToString()
|
D | BaseRecognizer.cs | 43 using Regex = System.Text.RegularExpressions.Regex; typedef 358 s = Regex.Replace(s, "\n", "\\\\n"); in GetTokenErrorDisplay() 359 s = Regex.Replace(s, "\r", "\\\\r"); in GetTokenErrorDisplay() 360 s = Regex.Replace(s, "\t", "\\\\t"); in GetTokenErrorDisplay()
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | StringExtensions.cs | 36 using Regex = System.Text.RegularExpressions.Regex; typedef 105 return Regex.Replace( str, regex, newValue ); in replaceAll() 110 return Regex.Replace( str, regex, replacement ); in replaceFirst()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Utility/Antlr.Utility.Tree/ |
D | DOTTreeGenerator.cs | 187 text = System.Text.RegularExpressions.Regex.Replace(text, "\"", "\\\\\""); in FixString() 188 text = System.Text.RegularExpressions.Regex.Replace(text, "\\t", " "); in FixString() 189 text = System.Text.RegularExpressions.Regex.Replace(text, "\\n", "\\\\n"); in FixString() 190 text = System.Text.RegularExpressions.Regex.Replace(text, "\\r", "\\\\r"); in FixString()
|
/external/clang/include/clang/Frontend/ |
D | CodeGenOptions.h | 161 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern; 168 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern; 176 std::shared_ptr<llvm::Regex> OptimizationRemarkAnalysisPattern;
|
/external/clang/lib/Driver/ |
D | Multilib.cpp | 237 MultilibSet &MultilibSet::FilterOut(std::string Regex) { in FilterOut() argument 239 mutable llvm::Regex R; in FilterOut() 242 REFilter(std::string Regex) : R(Regex) {} in FilterOut() argument 254 REFilter REF(Regex); in FilterOut()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
D | StringExtensions.cs | 109 return System.Text.RegularExpressions.Regex.Replace( str, regex, newValue ); in replaceAll() 114 return System.Text.RegularExpressions.Regex.Replace( str, regex, replacement ); in replaceFirst()
|
/external/llvm/tools/llvm-extract/ |
D | llvm-extract.cpp | 129 Regex RegEx(ExtractRegExpAliases[i]); in main() 163 Regex RegEx(ExtractRegExpGlobals[i]); in main() 196 Regex RegEx(RegExStr); in main()
|
/external/llvm/lib/IR/ |
D | DiagnosticInfo.cpp | 40 std::shared_ptr<Regex> Pattern; 45 Pattern = std::make_shared<Regex>(Val); in operator =()
|
/external/clang/lib/Frontend/ |
D | VerifyDiagnosticConsumer.cpp | 189 Regex(RegexStr) { } in RegexDirective() 192 if (Regex.isValid(Error)) in isValid() 198 return Regex.match(S); in match() 202 llvm::Regex Regex; member in __anon27fbb6f50211::RegexDirective 900 RegexStr += llvm::Regex::escape(S.substr(0, VerbatimMatchLength)); in create()
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 315 RegExStr += Regex::escape(PatternStr.substr(0, FixedMatchEnd)); in ParsePattern() 324 Regex R(RS); in AddRegExToRegEx() 403 Value += Regex::escape(it->second); in Match() 418 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo)) in Match() 1177 Regex Validator("^[a-zA-Z0-9_-]*$"); in ValidateCheckPrefix()
|
/external/clang/include/clang/Driver/ |
D | Multilib.h | 129 MultilibSet &FilterOut(std::string Regex);
|
/external/clang/lib/Format/ |
D | ContinuationIndenter.h | 141 llvm::Regex CommentPragmasRegex;
|