OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Regex
(Results
1 - 11
of
11
) sorted by null
/external/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/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/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
...]
Android.mk
40
Regex
.cpp \
CMakeLists.txt
35
Regex
.cpp
/external/clang/lib/Frontend/
VerifyDiagnosticsClient.cpp
19
#include "llvm/Support/
Regex
.h"
124
: Directive(Location, Text, Count),
Regex
(Text) { }
127
if (
Regex
.isValid(Error))
133
return
Regex
.match(S);
137
llvm::
Regex
Regex
;
265
KindStr = "
regex
";
/external/llvm/utils/FileCheck/
FileCheck.cpp
23
#include "llvm/Support/
Regex
.h"
63
///
RegEx
- If non-empty, this is a
regex
pattern.
125
// Check to see if this is a fixed string, or if it has
regex
pieces.
137
// Otherwise, there is at least one
regex
piece. Build up the
regex
pattern
138
// by escaping scary characters in fixed strings, building up one big
regex
.
140
//
RegEx
matches.
143
// Otherwise, this is the start of a
regex
match. Scan for the }}.
147
"found start of
regex
string with no end '}}'","error")
[
all
...]
/external/clang/tools/driver/
driver.cpp
31
#include "llvm/Support/
Regex
.h"
110
std::string Repl = llvm::
Regex
(MatchPattern).sub(ReplPattern, Args[i]);
/external/clang/tools/scan-build/
scan-build
266
my $
regex
= shift;
273
s/$
regex
/$newtext/;
292
my $
Regex
= qr/(.*?)\ :\ (.*?)\ ->\ Total\ CFGBlocks:\ (\d+)\ \|\ Unreachable
296
if ($Line !~ $
Regex
) {
675
my $
regex
;
680
$
regex
= qr/^\Q$prefix\E/is;
702
if (defined $
regex
) {
703
$fname =~ s/$
regex
//;
[
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
...]
/external/libvpx/examples/includes/PHP-Markdown-Extra-1.2.3/
markdown.php
217
#
Regex
to match balanced [brackets].
485
# case than to make the other
regex
more complicated.
[
all
...]
Completed in 349 milliseconds