HomeSort by relevance Sort by last modified time
    Searched refs:Regex (Results 1 - 25 of 28) sorted by null

1 2

  /external/llvm/include/llvm/Support/
Regex.h 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===//
28 class Regex {
46 /// Compiles the given regular expression \p Regex.
47 Regex(StringRef Regex, unsigned Flags = NoFlags);
48 ~Regex();
50 /// isValid - returns the error encountered during regex compilation, or
54 /// getNumMatches - In a valid regex, return the number of parenthesized
56 /// many entries plus one for the whole regex (as element 0).
59 /// matches - Match the regex against a given \p String
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
BlackList.h 24 // Note that the wild card is in fact an llvm::Regex, but * is automatically
38 class Regex;
53 StringMap<Regex*> Entries;
  /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/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() {
40 bool Regex::isValid(std::string &Error)
    [all...]
Android.mk 49 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/llvm/lib/Transforms/Instrumentation/
BlackList.cpp 25 #include "llvm/Support/Regex.h"
67 Regex CheckRE(Regexp);
70 report_fatal_error("malformed blacklist regex: " + SplitLine.second +
83 Entries[I->getKey()] = new Regex(I->getValue());
118 StringMap<Regex*>::const_iterator I = Entries.find(Section);
121 Regex *FunctionRegex = I->getValue();
  /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/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/llvm/tools/llvm-extract/
llvm-extract.cpp 27 #include "llvm/Support/Regex.h"
127 Regex RegEx(ExtractRegExpAliases[i]);
128 if (!RegEx.isValid(Error)) {
130 "invalid regex: " << Error;
135 if (RegEx.match(GA->getName())) {
161 Regex RegEx(ExtractRegExpGlobals[i]);
162 if (!RegEx.isValid(Error)) {
164 "invalid regex: " << Error
    [all...]
  /external/clang/lib/Frontend/
VerifyDiagnosticConsumer.cpp 22 #include "llvm/Support/Regex.h"
180 : Directive(DirectiveLoc, DiagnosticLoc, Text, Min, Max), Regex(Text) { }
183 if (Regex.isValid(Error))
189 return Regex.match(S);
193 llvm::Regex Regex;
335 KindStr = "regex";
  /external/clang/tools/driver/
driver.cpp 39 #include "llvm/Support/Regex.h"
114 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]);
  /external/llvm/utils/FileCheck/
FileCheck.cpp 26 #include "llvm/Support/Regex.h"
67 /// RegEx - If non-empty, this is a regex pattern.
123 /// \brief Finds the closing sequence of a regex variable usage or
150 // Check to see if this is a fixed string, or if it has regex pieces.
162 // Otherwise, there is at least one regex piece. Build up the regex pattern
163 // by escaping scary characters in fixed strings, building up one big regex.
165 // RegEx matches.
167 // This is the start of a regex match. Scan for the }}
    [all...]
  /external/llvm/lib/Target/AArch64/Utils/
AArch64BaseInfo.cpp 17 #include "llvm/Support/Regex.h"
494 Regex GenericRegPattern("^s3_([0-7])_c(1[15])_c([0-9]|1[0-5])_([0-7])$");
  /external/clang/tools/scan-build/
scan-build 264 my $regex = shift;
271 s/$regex/$newtext/;
291 my $Regex = qr/(.*?)\ ->\ Total\ CFGBlocks:\ (\d+)\ \|\ Unreachable
295 if ($Line !~ $Regex) {
690 my $regex;
695 $regex = qr/^\Q$prefix\E/is;
717 if (defined $regex) {
718 $fname =~ s/$regex//;
    [all...]
  /external/llvm/utils/TableGen/
CodeGenSchedule.cpp 21 #include "llvm/Support/Regex.h"
51 // scanned linearly first. However, this is only safe if the regex pattern has
61 SmallVector<Regex*, 4> RegexList;
74 RegexList.push_back(new Regex(pat));
78 for (SmallVectorImpl<Regex*>::iterator
    [all...]
  /external/protobuf/python/
mox.py 904 class Regex(Comparator):
920 self.regex = re.compile(pattern, flags=flags)
929 return self.regex.search(rhs) is not None
932 s = '<regular expression \'%s\'' % self.regex.pattern
933 if self.regex.flags:
934 s += ', flags=%d' % self.regex.flags
    [all...]

Completed in 1204 milliseconds

1 2