Searched refs:StringMatcher (Results 1 - 25 of 61) sorted by relevance

123

/external/proguard/src/proguard/util/
H A DAndMatcher.java24 * 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.
H A DOrMatcher.java24 * 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.
H A DNotMatcher.java24 * 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.
H A DSettableMatcher.java24 * 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.
H A DStringMatcher.java30 public interface StringMatcher interface
H A DStringParser.java32 * Creates a StringMatcher for the given regular expression.
34 public StringMatcher parse(String regularExpression);
H A DEmptyStringMatcher.java24 * This StringMatcher tests whether strings are empty.
28 public class EmptyStringMatcher implements StringMatcher
30 // Implementations for StringMatcher.
H A DListMatcher.java24 * 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];
H A DFixedStringMatcher.java24 * 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.
H A DConstantMatcher.java24 * This StringMatcher matches any string or no string at all.
28 public class ConstantMatcher implements StringMatcher
42 // Implementations for StringMatcher.
H A DListParser.java26 * 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)ne
[all...]
H A DFileNameParser.java26 * 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]);
H A DNameParser.java24 * 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]);
H A DClassNameParser.java26 * 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/
H A DDataEntryNameFilter.java23 import proguard.util.StringMatcher;
27 * a given StringMatcher.
34 private final StringMatcher stringMatcher;
42 public DataEntryNameFilter(StringMatcher stringMatcher)
H A DDataEntryDirectoryFilter.java23 import proguard.util.StringMatcher;
/external/clang/utils/TableGen/
H A DClangCommentHTMLTagsEmitter.cpp16 #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/
H A Dstrmatch.cpp23 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(StringMatcher)
25 StringMatcher::StringMatcher(const UnicodeString& theString, function in class:StringMatcher
38 StringMatcher::StringMatcher(const StringMatcher& o) : function in class:StringMatcher
53 StringMatcher::~StringMatcher() {
59 UnicodeFunctor* StringMatcher::clone() const {
60 return new StringMatcher(*thi
[all...]
H A Drbt_rule.h24 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;
H A Dstrmatch.h35 * 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 { class in inherits:UnicodeFunctor,UnicodeMatcher,UnicodeReplacer
58 StringMatcher(const UnicodeString& string,
68 StringMatcher(const StringMatcher& o);
73 virtual ~StringMatcher();
/external/chromium_org/third_party/icu/source/i18n/
H A Dstrmatch.cpp24 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(StringMatcher)
26 StringMatcher::StringMatcher(const UnicodeString& theString, function in class:StringMatcher
39 StringMatcher::StringMatcher(const StringMatcher& o) : function in class:StringMatcher
54 StringMatcher::~StringMatcher() {
60 UnicodeFunctor* StringMatcher::clone() const {
61 return new StringMatcher(*thi
[all...]
H A Drbt_rule.h24 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;
H A Dstrmatch.h35 * 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 { class in inherits:UnicodeFunctor,UnicodeMatcher,UnicodeReplacer
58 StringMatcher(const UnicodeString& string,
68 StringMatcher(const StringMatcher& o);
73 virtual ~StringMatcher();
/external/llvm/include/llvm/TableGen/
H A DStringMatcher.h1 //===- 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 { class in namespace:llvm
40 StringMatcher(StringRef strVariableName, function in class:llvm::StringMatcher
/external/proguard/src/proguard/classfile/editor/
H A DNamedAttributeDeleter.java25 import proguard.util.StringMatcher;

Completed in 257 milliseconds

123