/external/google-benchmark/src/ |
re_std.cc | 19 Regex::Regex() : init_(false) { } 21 bool Regex::Init(const std::string& spec, std::string* error) { 23 re_ = std::regex(spec, std::regex_constants::extended); 34 Regex::~Regex() { } 36 bool Regex::Match(const std::string& str) {
|
re_posix.cc | 20 Regex::Regex() : init_(false) { } 22 bool Regex::Init(const std::string& spec, std::string* error) { 45 Regex::~Regex() { 51 bool Regex::Match(const std::string& str) {
|
re.h | 19 #include <regex> 23 #include <regex.h> 33 class Regex { 35 Regex(); 36 ~Regex(); 50 std::regex re_;
|
/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(const Regex &) = delete; 49 Regex &operator=(Regex regex) { [all...] |
SpecialCaseList.h | 41 // Note that the wild card is in fact an llvm::Regex, but * is automatically 57 class Regex;
|
/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/tools/llvm-pdbdump/ |
LinePrinter.h | 16 #include "llvm/Support/Regex.h" 41 void SetFilters(std::list<Regex> &List, Iter Begin, Iter End) { 51 std::list<Regex> ExcludeCompilandFilters; 52 std::list<Regex> ExcludeTypeFilters; 53 std::list<Regex> ExcludeSymbolFilters; 55 std::list<Regex> IncludeCompilandFilters; 56 std::list<Regex> IncludeTypeFilters; 57 std::list<Regex> IncludeSymbolFilters;
|
LinePrinter.cpp | 15 #include "llvm/Support/Regex.h" 21 std::list<llvm::Regex> &IncludeFilters, 22 std::list<llvm::Regex> &ExcludeFilters) { 26 auto match_pred = [Item](llvm::Regex &R) { return R.match(Item); };
|
/external/llvm/tools/llvm-cov/ |
CoverageFilters.h | 46 StringRef Regex; 49 NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {}
|
CoverageFilters.cpp | 16 #include "llvm/Support/Regex.h" 27 return llvm::Regex(Regex).match(Function.Name);
|
/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() { 42 bool Regex::isValid(std::string &Error) [all...] |
SpecialCaseList.cpp | 22 #include "llvm/Support/Regex.h" 30 /// "literal" (i.e. no regex metacharacters) are stored in Strings, while all 31 /// others are represented as a single pipe-separated regex in RegEx. The 33 /// literal strings than Regex. 37 : Strings(std::move(Other.Strings)), RegEx(std::move(Other.RegEx)) {} 40 std::unique_ptr<Regex> RegEx; 43 return Strings.count(Query) || (RegEx && RegEx->match(Query)) [all...] |
/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" );
|
/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");
|
/external/clang/include/clang/Frontend/ |
CodeGenOptions.h | 18 #include "llvm/Support/Regex.h" 194 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern; 201 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern; 209 std::shared_ptr<llvm::Regex> OptimizationRemarkAnalysisPattern;
|
/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/chromium-trace/catapult/third_party/webapp2/docs/_themes/webapp2/ |
pygapp2.py | 40 String.Regex: "nobold noitalic #080",
|
/art/tools/checker/file_format/checker/ |
parser.py | 26 """ Attempts to parse a check line. The regex searches for a comment symbol 122 matchPattern = re.search(TestExpression.Regex.regexPattern, line) 123 matchVariableDefinition = re.search(TestExpression.Regex.regexVariableDefinition, line) 124 matchVariableReference = re.search(TestExpression.Regex.regexVariableReference, line)
|
struct.py | 103 """ Returns a regex pattern for this entire assertion. Only used in tests. """ 104 regex = "" 107 regex = regex + ", " 109 regex = regex + "(" + expression.text + ")" 110 return regex 124 class Regex(object): 167 assert re.match(TestExpression.Regex.rName, name) 172 assert re.match(TestExpression.Regex.rName, name [all...] |