OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StringMatcher
(Results
1 - 25
of
66
) sorted by null
1
2
3
/external/proguard/src/proguard/util/
AndMatcher.java
24
* This
StringMatcher
tests whether strings matches both given
StringMatcher
29
public class AndMatcher implements
StringMatcher
31
private final
StringMatcher
matcher1;
32
private final
StringMatcher
matcher2;
35
public AndMatcher(
StringMatcher
matcher1,
StringMatcher
matcher2)
42
// Implementations for
StringMatcher
.
OrMatcher.java
24
* This
StringMatcher
tests whether strings matches either of the given
25
*
StringMatcher
instances.
29
public class OrMatcher implements
StringMatcher
31
private final
StringMatcher
matcher1;
32
private final
StringMatcher
matcher2;
35
public OrMatcher(
StringMatcher
matcher1,
StringMatcher
matcher2)
42
// Implementations for
StringMatcher
.
NotMatcher.java
24
* This
StringMatcher
tests whether strings does not match the given
25
*
StringMatcher
.
29
public class NotMatcher implements
StringMatcher
31
private final
StringMatcher
matcher;
34
public NotMatcher(
StringMatcher
matcher)
40
// Implementations for
StringMatcher
.
SettableMatcher.java
24
* This
StringMatcher
delegates to a another
StringMatcher
that can be set
25
* after this
StringMatcher
has been constructed.
29
public class SettableMatcher implements
StringMatcher
31
private
StringMatcher
matcher;
34
public void setMatcher(
StringMatcher
matcher)
40
// Implementations for
StringMatcher
.
StringMatcher.java
30
public interface
StringMatcher
StringParser.java
32
* Creates a
StringMatcher
for the given regular expression.
34
public
StringMatcher
parse(String regularExpression);
EmptyStringMatcher.java
24
* This
StringMatcher
tests whether strings are empty.
28
public class EmptyStringMatcher implements
StringMatcher
30
// Implementations for
StringMatcher
.
ListMatcher.java
24
* This
StringMatcher
tests whether strings match a given list of
StringMatcher
31
public class ListMatcher implements
StringMatcher
33
private final
StringMatcher
[] matchers;
37
public ListMatcher(
StringMatcher
[] matchers)
43
public ListMatcher(
StringMatcher
[] matchers, boolean[] negate)
50
// Implementations for
StringMatcher
.
57
StringMatcher
matcher = matchers[index];
FixedStringMatcher.java
24
* This
StringMatcher
tests whether strings start with a given fixed string
25
* and then match another optional given
StringMatcher
.
29
public class FixedStringMatcher implements
StringMatcher
32
private final
StringMatcher
nextMatcher;
41
public FixedStringMatcher(String fixedString,
StringMatcher
nextMatcher)
48
// Implementations for
StringMatcher
.
ConstantMatcher.java
24
* This
StringMatcher
matches any string or no string at all.
28
public class ConstantMatcher implements
StringMatcher
42
// Implementations for
StringMatcher
.
ListParser.java
26
* This StringParser can create
StringMatcher
instances for regular expressions.
30
* considering any subsequent entries in the list. The creation of
StringMatcher
52
public
StringMatcher
parse(String regularExpression)
60
* Creates a
StringMatcher
for the given regular expression, which can
63
* An empty list results in a
StringMatcher
that matches any string.
65
public
StringMatcher
parse(List regularExpressions)
67
StringMatcher
listMatcher = null;
75
StringMatcher
entryMatcher = parseEntry(regularExpression);
80
(
StringMatcher
)entryMatcher :
82
(
StringMatcher
)new AndMatcher(entryMatcher, listMatcher)
[
all
...]
FileNameParser.java
26
* This StringParser can create
StringMatcher
instances for regular expressions
40
public
StringMatcher
parse(String regularExpression)
43
StringMatcher
nextMatcher = new EmptyStringMatcher();
94
(
StringMatcher
)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) :
95
(
StringMatcher
)nextMatcher;
108
StringMatcher
matcher = parser.parse(args[0]);
NameParser.java
24
* This StringParser can create
StringMatcher
instances for regular expressions
39
public
StringMatcher
parse(String regularExpression)
42
StringMatcher
nextMatcher = new EmptyStringMatcher();
79
(
StringMatcher
)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) :
80
(
StringMatcher
)nextMatcher;
93
StringMatcher
matcher = parser.parse(args[0]);
ClassNameParser.java
26
* This StringParser can create
StringMatcher
instances for regular expressions
60
public
StringMatcher
parse(String regularExpression)
63
StringMatcher
nextMatcher = new EmptyStringMatcher();
154
(
StringMatcher
)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) :
155
(
StringMatcher
)nextMatcher;
163
* Creates a
StringMatcher
that matches any type (class or primitive type,
166
private VariableStringMatcher createAnyTypeMatcher(
StringMatcher
nextMatcher)
203
StringMatcher
matcher = parser.parse(args[0]);
/external/proguard/src/proguard/io/
DataEntryNameFilter.java
23
import proguard.util.
StringMatcher
;
27
* a given
StringMatcher
.
34
private final
StringMatcher
stringMatcher
;
39
* @param
stringMatcher
the string matcher that will be applied to the names
42
public DataEntryNameFilter(
StringMatcher
stringMatcher
)
44
this.
stringMatcher
=
stringMatcher
;
52
return dataEntry != null &&
stringMatcher
.matches(dataEntry.getName())
[
all
...]
DataEntryDirectoryFilter.java
23
import proguard.util.
StringMatcher
;
/external/clang/utils/TableGen/
ClangCommentHTMLTagsEmitter.cpp
16
#include "llvm/TableGen/
StringMatcher
.h"
25
std::vector<
StringMatcher
::StringPair> Matches;
30
Matches.push_back(
StringMatcher
::StringPair(Spelling, "return true;"));
36
StringMatcher
("Name", Matches, OS).Emit();
44
std::vector<
StringMatcher
::StringPair> MatchesEndTagOptional;
45
std::vector<
StringMatcher
::StringPair> MatchesEndTagForbidden;
50
StringMatcher
::StringPair Match(Spelling, "return true;");
60
StringMatcher
("Name", MatchesEndTagOptional, OS).Emit();
65
StringMatcher
("Name", MatchesEndTagForbidden, OS).Emit();
/external/icu4c/i18n/
strmatch.cpp
23
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(
StringMatcher
)
25
StringMatcher
::
StringMatcher
(const UnicodeString& theString,
38
StringMatcher
::
StringMatcher
(const
StringMatcher
& o) :
53
StringMatcher
::~
StringMatcher
() {
59
UnicodeFunctor*
StringMatcher
::clone() const {
60
return new
StringMatcher
(*this)
[
all
...]
rbt_rule.h
24
class
StringMatcher
;
69
StringMatcher
*anteContext;
74
StringMatcher
*key;
80
StringMatcher
*postContext;
101
*
StringMatcher
. In the future we may generalize this, but for
102
* now we sometimes cast down to
StringMatcher
.
299
friend class
StringMatcher
;
strmatch.h
35
* A
StringMatcher
may represent a segment, in which case it has a
39
* A
StringMatcher
that is not a segment should not be used as a
42
class
StringMatcher
: public UnicodeFunctor, public UnicodeMatcher, public UnicodeReplacer {
58
StringMatcher
(const UnicodeString& string,
68
StringMatcher
(const
StringMatcher
& o);
73
virtual ~
StringMatcher
();
/external/chromium_org/third_party/icu/source/i18n/
strmatch.cpp
24
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(
StringMatcher
)
26
StringMatcher
::
StringMatcher
(const UnicodeString& theString,
39
StringMatcher
::
StringMatcher
(const
StringMatcher
& o) :
54
StringMatcher
::~
StringMatcher
() {
60
UnicodeFunctor*
StringMatcher
::clone() const {
61
return new
StringMatcher
(*this)
[
all
...]
rbt_rule.h
24
class
StringMatcher
;
69
StringMatcher
*anteContext;
74
StringMatcher
*key;
80
StringMatcher
*postContext;
101
*
StringMatcher
. In the future we may generalize this, but for
102
* now we sometimes cast down to
StringMatcher
.
299
friend class
StringMatcher
;
strmatch.h
35
* A
StringMatcher
may represent a segment, in which case it has a
39
* A
StringMatcher
that is not a segment should not be used as a
42
class
StringMatcher
: public UnicodeFunctor, public UnicodeMatcher, public UnicodeReplacer {
58
StringMatcher
(const UnicodeString& string,
68
StringMatcher
(const
StringMatcher
& o);
73
virtual ~
StringMatcher
();
/external/llvm/include/llvm/TableGen/
StringMatcher.h
1
//===-
StringMatcher
.h - Generate a matcher for input strings ---*- C++ -*-===//
10
// This file implements the
StringMatcher
class.
25
///
StringMatcher
- Given a list of strings and code to execute when they match,
31
class
StringMatcher
{
40
StringMatcher
(StringRef strVariableName,
/external/proguard/src/proguard/classfile/editor/
NamedAttributeDeleter.java
25
import proguard.util.
StringMatcher
;
Completed in 275 milliseconds
1
2
3