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

1 2

  /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++ -*-----===//
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/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/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/llvm/include/llvm/Transforms/Utils/
SpecialCaseList.h 40 // Note that the wild card is in fact an llvm::Regex, but * is automatically
55 class Regex;
  /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/lib/Transforms/Utils/
SpecialCaseList.cpp 28 #include "llvm/Support/Regex.h"
37 /// "literal" (i.e. no regex metacharacters) are stored in Strings, while all
38 /// others are represented as a single pipe-separated regex in RegEx. The
40 /// literal strings than Regex.
43 Regex *RegEx;
45 Entry() : RegEx(0) {}
48 return Strings.count(Query) || (RegEx && RegEx->match(Query))
    [all...]
  /external/llvm/tools/llvm-extract/
llvm-extract.cpp 27 #include "llvm/Support/Regex.h"
128 Regex RegEx(ExtractRegExpAliases[i]);
129 if (!RegEx.isValid(Error)) {
131 "invalid regex: " << Error;
136 if (RegEx.match(GA->getName())) {
162 Regex RegEx(ExtractRegExpGlobals[i]);
163 if (!RegEx.isValid(Error)) {
165 "invalid regex: " << Error
    [all...]
  /external/clang/lib/Frontend/
VerifyDiagnosticConsumer.cpp 22 #include "llvm/Support/Regex.h"
185 : Directive(DirectiveLoc, DiagnosticLoc, Text, Min, Max), Regex(Text) { }
188 if (Regex.isValid(Error))
194 return Regex.match(S);
198 llvm::Regex Regex;
342 KindStr = "regex";
  /external/chromium_org/v8/test/webkit/fast/js/
regexp-unicode-handling.js 30 // Regex to match Re in various languanges straight from Gmail source
  /external/llvm/utils/FileCheck/
FileCheck.cpp 26 #include "llvm/Support/Regex.h"
73 /// RegEx - If non-empty, this is a regex pattern.
142 /// \brief Finds the closing sequence of a regex variable usage or
169 // Check to see if this is a fixed string, or if it has regex pieces.
181 // Otherwise, there is at least one regex piece. Build up the regex pattern
182 // by escaping scary characters in fixed strings, building up one big regex.
184 // RegEx matches.
186 // This is the start of a regex match. Scan for the }}
    [all...]
  /external/clang/tools/driver/
driver.cpp 41 #include "llvm/Support/Regex.h"
117 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]);
  /external/clang/tools/scan-build/
scan-build 274 my $regex = shift;
281 s/$regex/$newtext/;
301 my $Regex = qr/(.*?)\ ->\ Total\ CFGBlocks:\ (\d+)\ \|\ Unreachable
305 if ($Line !~ $Regex) {
700 my $regex;
705 $regex = qr/^\Q$prefix\E/is;
727 if (defined $regex) {
728 $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/chromium_org/third_party/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 658 milliseconds

1 2