Home
last modified time | relevance | path

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

12

/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.h29 class Regex {
48 Regex(StringRef Regex, unsigned Flags = NoFlags);
49 Regex(const Regex &) LLVM_DELETED_FUNCTION;
50 Regex &operator=(Regex regex) {
55 Regex(Regex &&regex) { in Regex() function
60 ~Regex();
DSpecialCaseList.h55 class Regex; variable
/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.cpp42 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()
DAndroid.mk54 Regex.cpp \
/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/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/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.h161 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern;
168 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern;
176 std::shared_ptr<llvm::Regex> OptimizationRemarkAnalysisPattern;
/external/clang/lib/Driver/
DMultilib.cpp237 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/
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.cpp129 Regex RegEx(ExtractRegExpAliases[i]); in main()
163 Regex RegEx(ExtractRegExpGlobals[i]); in main()
196 Regex RegEx(RegExStr); in main()
/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.cpp189 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/
DFileCheck.cpp315 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/
DMultilib.h129 MultilibSet &FilterOut(std::string Regex);
/external/clang/lib/Format/
DContinuationIndenter.h141 llvm::Regex CommentPragmasRegex;

12