Home
last modified time | relevance | path

Searched refs:Regex (Results 1 – 25 of 57) sorted by relevance

123

/external/llvm/unittests/Support/
DRegexTest.cpp22 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/
DRegex.h28 class Regex {
47 Regex(StringRef Regex, unsigned Flags = NoFlags);
48 Regex(const Regex &) = delete;
49 Regex &operator=(Regex regex) {
54 Regex(Regex &&regex) { in Regex() function
59 ~Regex();
/external/llvm/lib/Support/
DRegex.cpp22 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()
DSpecialCaseList.cpp40 std::unique_ptr<Regex> RegEx;
111 if (Regex::isLiteralERE(Regexp)) { in parse()
123 Regex CheckRE(Regexp); in parse()
148 Entries[I->getKey()][II->getKey()].RegEx.reset(new Regex(II->getValue())); in compile()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeParser.cs35 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);
DDotTreeGenerator.cs204 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/
DTreeParser.cs36 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 );
DDotTreeGenerator.cs204 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/
DCommonToken.cs36 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()
DBaseRecognizer.cs44 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/
DCommonToken.cs35 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()
DBaseRecognizer.cs43 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/llvm/tools/llvm-pdbdump/
DLinePrinter.h41 void SetFilters(std::list<Regex> &List, Iter Begin, Iter End) { in SetFilters()
51 std::list<Regex> CompilandFilters;
52 std::list<Regex> TypeFilters;
53 std::list<Regex> SymbolFilters;
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DStringExtensions.cs36 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/llvm/tools/llvm-cov/
DCoverageFilters.h46 StringRef Regex; variable
49 NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {} in NameRegexCoverageFilter() argument
DCoverageFilters.cpp27 return llvm::Regex(Regex).match(Function.Name); in matches()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Utility/Antlr.Utility.Tree/
DDOTTreeGenerator.cs187 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/
DCodeGenOptions.h168 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern;
175 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern;
183 std::shared_ptr<llvm::Regex> OptimizationRemarkAnalysisPattern;
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DStringExtensions.cs109 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/
Dllvm-extract.cpp138 Regex RegEx(ExtractRegExpAliases[i]); in main()
172 Regex RegEx(ExtractRegExpGlobals[i]); in main()
205 Regex RegEx(RegExStr); in main()
/external/llvm/lib/ProfileData/
DSampleProfReader.cpp158 Regex HeadRE("^([^0-9].*):([0-9]+):([0-9]+)$"); in read()
159 Regex LineSampleRE("^([0-9]+)\\.?([0-9]+)?: ([0-9]+)(.*)$"); in read()
160 Regex CallSampleRE(" +([^0-9 ][^ ]*):([0-9]+)"); in read()
/external/clang/lib/Driver/
DMultilib.cpp218 MultilibSet &MultilibSet::FilterOut(const char *Regex) { in FilterOut() argument
219 llvm::Regex R(Regex); in FilterOut()
/external/llvm/lib/Transforms/Utils/
DSymbolRewriter.cpp162 std::string Name = Regex(Pattern).sub(Transform, C.getName(), &Error); in performOnModule()
338 if (!Regex(Source).isValid(Error)) { in parseRewriteFunctionDescriptor()
405 if (!Regex(Source).isValid(Error)) { in parseRewriteGlobalVariableDescriptor()
467 if (!Regex(Source).isValid(Error)) { in parseRewriteGlobalAliasDescriptor()
/external/llvm/lib/IR/
DDiagnosticInfo.cpp40 std::shared_ptr<Regex> Pattern;
45 Pattern = std::make_shared<Regex>(Val); in operator =()
/external/clang/lib/Frontend/
DVerifyDiagnosticConsumer.cpp186 Regex(RegexStr) { } in RegexDirective()
189 if (Regex.isValid(Error)) in isValid()
195 return Regex.match(S); in match()
199 llvm::Regex Regex; member in __anonfce122d10211::RegexDirective
899 RegexStr += llvm::Regex::escape(S.substr(0, VerbatimMatchLength)); in create()

123