/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/swiftshader/third_party/LLVM/include/llvm/Support/ |
Regex.h | 1 //===-- Regex.h - Regular Expression matcher implementation -*- C++ -*-----===// 25 class Regex { 39 /// Compiles the given POSIX Extended Regular Expression \arg Regex. 42 Regex(StringRef Regex, unsigned Flags = NoFlags); 43 ~Regex(); 45 /// isValid - returns the error encountered during regex compilation, or 49 /// getNumMatches - In a valid regex, return the number of parenthesized 51 /// many entries plus one for the whole regex (as element 0). 54 /// matches - Match the regex against a given \arg String [all...] |
/external/google-benchmark/src/ |
re.h | 19 #include <regex> 23 #include <regex.h> 35 class Regex { 37 Regex() : init_(false) {} 39 ~Regex(); 54 std::regex re_; 64 inline bool Regex::Init(const std::string& spec, std::string* error) { 66 re_ = std::regex(spec, std::regex_constants::extended); 77 inline Regex::~Regex() {} [all...] |
/external/libcxx/utils/google-benchmark/src/ |
re.h | 19 #include <regex> 23 #include <regex.h> 35 class Regex { 37 Regex() : init_(false) {} 39 ~Regex(); 54 std::regex re_; 64 inline bool Regex::Init(const std::string& spec, std::string* error) { 66 re_ = std::regex(spec, std::regex_constants::extended); 77 inline Regex::~Regex() {} [all...] |
/external/swiftshader/third_party/LLVM/unittests/Support/ |
RegexTest.cpp | 1 //===- llvm/unittest/Support/RegexTest.cpp - Regex tests --===// 11 #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"); 58 Regex r5(NulPattern); 68 EXPECT_EQ("aNUMber", Regex("[0-9]+").sub("NUM", "a1234ber")); 71 EXPECT_EQ("a\\ber", Regex("[0-9]+").sub("\\\\", "a1234ber", &Error)); 73 EXPECT_EQ("a\nber", Regex("[0-9]+").sub("\\n", "a1234ber", &Error)) [all...] |
/external/llvm/tools/llvm-pdbdump/ |
LinePrinter.h | 16 #include "llvm/Support/Regex.h" 42 void SetFilters(std::list<Regex> &List, Iter Begin, Iter End) { 52 std::list<Regex> ExcludeCompilandFilters; 53 std::list<Regex> ExcludeTypeFilters; 54 std::list<Regex> ExcludeSymbolFilters; 56 std::list<Regex> IncludeCompilandFilters; 57 std::list<Regex> IncludeTypeFilters; 58 std::list<Regex> IncludeSymbolFilters;
|
LinePrinter.cpp | 15 #include "llvm/Support/Regex.h" 24 std::list<llvm::Regex> &IncludeFilters, 25 std::list<llvm::Regex> &ExcludeFilters) { 29 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...] |
/external/swiftshader/third_party/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(); 30 error = llvm_regcomp(preg, regex.data(), flags|REG_EXTENDED|REG_PEND); 33 Regex::~Regex() { 38 bool Regex::isValid(std::string &Error) [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/clang/lib/Format/ |
FormatTokenLexer.h | 24 #include "llvm/Support/Regex.h" 50 // Tries to parse a JavaScript Regex literal starting at the current token, 52 // regex literals. Changes the current token to a regex literal and updates 86 llvm::Regex MacroBlockBeginRegex; 87 llvm::Regex MacroBlockEndRegex;
|
/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 | 19 #include "llvm/Support/Regex.h" 180 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern; 187 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern; 195 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/google-benchmark/test/ |
output_test.h | 26 // the regex 35 std::shared_ptr<benchmark::Regex> regex; member in struct:TestCase 53 // Add or set a list of substitutions to be performed on constructed regex's
|