Home
last modified time | relevance | path

Searched refs:StringMatcher (Results 1 – 25 of 52) sorted by relevance

123

/external/icu/icu4c/source/i18n/
Dstrmatch.cpp23 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(StringMatcher) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
25 StringMatcher::StringMatcher(const UnicodeString& theString, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
38 StringMatcher::StringMatcher(const StringMatcher& o) : in StringMatcher() function in StringMatcher
53 StringMatcher::~StringMatcher() { in ~StringMatcher()
59 UnicodeFunctor* StringMatcher::clone() const { in clone()
60 return new StringMatcher(*this); in clone()
67 UnicodeMatcher* StringMatcher::toMatcher() const { in toMatcher()
68 StringMatcher *nonconst_this = const_cast<StringMatcher *>(this); in toMatcher()
78 UnicodeReplacer* StringMatcher::toReplacer() const { in toReplacer()
79 StringMatcher *nonconst_this = const_cast<StringMatcher *>(this); in toReplacer()
[all …]
Dstrmatch.h42 class StringMatcher : public UnicodeFunctor, public UnicodeMatcher, public UnicodeReplacer {
58 StringMatcher(const UnicodeString& string,
68 StringMatcher(const StringMatcher& o);
73 virtual ~StringMatcher();
Drbt_rule.h24 class StringMatcher; variable
69 StringMatcher *anteContext;
74 StringMatcher *key;
80 StringMatcher *postContext;
299 friend class StringMatcher;
Drbt_rule.cpp119 anteContext = new StringMatcher(pattern, 0, anteContextLength, in TransliterationRule()
130 key = new StringMatcher(pattern, anteContextLength, anteContextLength + keyLength, in TransliterationRule()
142 postContext = new StringMatcher(pattern, anteContextLength + keyLength, pattern.length(), in TransliterationRule()
181 anteContext = (StringMatcher*) other.anteContext->clone(); in TransliterationRule()
184 key = (StringMatcher*) other.key->clone(); in TransliterationRule()
187 postContext = (StringMatcher*) other.postContext->clone(); in TransliterationRule()
364 ((StringMatcher*) segments[i])->resetMatch(); in matchAndReplace()
/external/proguard/src/proguard/util/
DListParser.java52 public StringMatcher parse(String regularExpression) in parse()
65 public StringMatcher parse(List regularExpressions) in parse()
67 StringMatcher listMatcher = null; in parse()
75 StringMatcher entryMatcher = parseEntry(regularExpression); in parse()
80 (StringMatcher)entryMatcher : in parse()
82 (StringMatcher)new AndMatcher(entryMatcher, listMatcher) : in parse()
83 (StringMatcher)new OrMatcher(entryMatcher, listMatcher); in parse()
96 private StringMatcher parseEntry(String regularExpression) in parseEntry()
124 StringMatcher matcher = parser.parse(args[0]); in main()
DAndMatcher.java29 public class AndMatcher implements StringMatcher
31 private final StringMatcher matcher1;
32 private final StringMatcher matcher2;
35 public AndMatcher(StringMatcher matcher1, StringMatcher matcher2) in AndMatcher()
DOrMatcher.java29 public class OrMatcher implements StringMatcher
31 private final StringMatcher matcher1;
32 private final StringMatcher matcher2;
35 public OrMatcher(StringMatcher matcher1, StringMatcher matcher2) in OrMatcher()
DListMatcher.java31 public class ListMatcher implements StringMatcher
33 private final StringMatcher[] matchers;
37 public ListMatcher(StringMatcher[] matchers) in ListMatcher()
43 public ListMatcher(StringMatcher[] matchers, boolean[] negate) in ListMatcher()
57 StringMatcher matcher = matchers[index]; in matches()
DNameParser.java39 public StringMatcher parse(String regularExpression) in parse()
42 StringMatcher nextMatcher = new EmptyStringMatcher(); in parse()
79 … (StringMatcher)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) : in parse()
80 (StringMatcher)nextMatcher; in parse()
93 StringMatcher matcher = parser.parse(args[0]); in main()
DFileNameParser.java40 public StringMatcher parse(String regularExpression) in parse()
43 StringMatcher nextMatcher = new EmptyStringMatcher(); in parse()
94 … (StringMatcher)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) : in parse()
95 (StringMatcher)nextMatcher; in parse()
108 StringMatcher matcher = parser.parse(args[0]); in main()
DClassNameParser.java60 public StringMatcher parse(String regularExpression) in parse()
63 StringMatcher nextMatcher = new EmptyStringMatcher(); in parse()
154 … (StringMatcher)new FixedStringMatcher(regularExpression.substring(0, index), nextMatcher) : in parse()
155 (StringMatcher)nextMatcher; in parse()
165 private VariableStringMatcher createAnyTypeMatcher(StringMatcher nextMatcher) in createAnyTypeMatcher()
202 StringMatcher matcher = parser.parse(args[0]); in main()
DNotMatcher.java29 public class NotMatcher implements StringMatcher
31 private final StringMatcher matcher;
34 public NotMatcher(StringMatcher matcher) in NotMatcher()
DSettableMatcher.java29 public class SettableMatcher implements StringMatcher
31 private StringMatcher matcher;
34 public void setMatcher(StringMatcher matcher) in setMatcher()
DFixedStringMatcher.java29 public class FixedStringMatcher implements StringMatcher
32 private final StringMatcher nextMatcher;
41 public FixedStringMatcher(String fixedString, StringMatcher nextMatcher) in FixedStringMatcher()
DVariableStringMatcher.java29 public class VariableStringMatcher implements StringMatcher
35 private final StringMatcher nextMatcher;
42 StringMatcher nextMatcher) in VariableStringMatcher()
/external/clang/utils/TableGen/
DClangCommentHTMLTagsEmitter.cpp25 std::vector<StringMatcher::StringPair> Matches; in EmitClangCommentHTMLTags()
33 StringMatcher("Name", Matches, OS).Emit(); in EmitClangCommentHTMLTags()
41 std::vector<StringMatcher::StringPair> MatchesEndTagOptional; in EmitClangCommentHTMLTagsProperties()
42 std::vector<StringMatcher::StringPair> MatchesEndTagForbidden; in EmitClangCommentHTMLTagsProperties()
45 StringMatcher::StringPair Match(Spelling, "return true;"); in EmitClangCommentHTMLTagsProperties()
55 StringMatcher("Name", MatchesEndTagOptional, OS).Emit(); in EmitClangCommentHTMLTagsProperties()
60 StringMatcher("Name", MatchesEndTagForbidden, OS).Emit(); in EmitClangCommentHTMLTagsProperties()
DClangCommentHTMLNamedCharacterReferenceEmitter.cpp53 std::vector<StringMatcher::StringPair> NameToUTF8; in EmitClangCommentHTMLNamedCharacterReferences()
70 StringMatcher::StringPair Match(Spelling, CLiteral.str()); in EmitClangCommentHTMLNamedCharacterReferences()
79 StringMatcher("Name", NameToUTF8, OS).Emit(); in EmitClangCommentHTMLNamedCharacterReferences()
/external/proguard/src/proguard/io/
DDataEntryNameFilter.java23 import proguard.util.StringMatcher;
34 private final StringMatcher stringMatcher;
42 public DataEntryNameFilter(StringMatcher stringMatcher) in DataEntryNameFilter()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliterationRule.java56 private StringMatcher anteContext;
61 private StringMatcher key;
67 private StringMatcher postContext;
202 anteContext = new StringMatcher(pattern.substring(0, anteContextLength), in TransliterationRule()
208 … key = new StringMatcher(pattern.substring(anteContextLength, anteContextLength + keyLength), in TransliterationRule()
215 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
381 ((StringMatcher) segments[i]).resetMatch(); in matchAndReplace()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTransliterationRule.java57 private StringMatcher anteContext;
62 private StringMatcher key;
68 private StringMatcher postContext;
203 anteContext = new StringMatcher(pattern.substring(0, anteContextLength), in TransliterationRule()
209 … key = new StringMatcher(pattern.substring(anteContextLength, anteContextLength + keyLength), in TransliterationRule()
216 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
382 ((StringMatcher) segments[i]).resetMatch(); in matchAndReplace()
/external/llvm/include/llvm/TableGen/
DStringMatcher.h31 class StringMatcher {
41 StringMatcher(StringRef strVariableName, in StringMatcher() function
/external/proguard/src/proguard/classfile/visitor/
DClassNameFilter.java37 private final StringMatcher regularExpressionMatcher;
78 public ClassNameFilter(StringMatcher regularExpressionMatcher, in ClassNameFilter()
DMemberNameFilter.java36 private final StringMatcher regularExpressionMatcher;
62 public MemberNameFilter(StringMatcher regularExpressionMatcher, in MemberNameFilter()
DMemberDescriptorFilter.java36 private final StringMatcher regularExpressionMatcher;
61 public MemberDescriptorFilter(StringMatcher regularExpressionMatcher, in MemberDescriptorFilter()
/external/llvm/lib/TableGen/
DStringMatcher.cpp24 StringMatcher::StringPair*> &Matches) { in FindFirstNonCommonLetter()
43 bool StringMatcher::
124 void StringMatcher::Emit(unsigned Indent) const { in Emit()

123