Home
last modified time | relevance | path

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

123

/external/icu4c/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/chromium_org/third_party/icu/source/i18n/
Dstrmatch.cpp24 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(StringMatcher) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
26 StringMatcher::StringMatcher(const UnicodeString& theString, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
39 StringMatcher::StringMatcher(const StringMatcher& o) : in StringMatcher() function in StringMatcher
54 StringMatcher::~StringMatcher() { in ~StringMatcher()
60 UnicodeFunctor* StringMatcher::clone() const { in clone()
61 return new StringMatcher(*this); in clone()
68 UnicodeMatcher* StringMatcher::toMatcher() const { in toMatcher()
76 UnicodeReplacer* StringMatcher::toReplacer() const { in toReplacer()
83 UMatchDegree StringMatcher::matches(const Replaceable& text, in matches()
155 UnicodeString& StringMatcher::toPattern(UnicodeString& result, in toPattern()
[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.cpp118 anteContext = new StringMatcher(pattern, 0, anteContextLength, in TransliterationRule()
129 key = new StringMatcher(pattern, anteContextLength, anteContextLength + keyLength, in TransliterationRule()
141 postContext = new StringMatcher(pattern, anteContextLength + keyLength, pattern.length(), in TransliterationRule()
180 anteContext = (StringMatcher*) other.anteContext->clone(); in TransliterationRule()
183 key = (StringMatcher*) other.key->clone(); in TransliterationRule()
186 postContext = (StringMatcher*) other.postContext->clone(); in TransliterationRule()
363 ((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()
166 private VariableStringMatcher createAnyTypeMatcher(StringMatcher nextMatcher) in createAnyTypeMatcher()
203 StringMatcher matcher = parser.parse(args[0]); in main()
DSettableMatcher.java29 public class SettableMatcher implements StringMatcher
31 private StringMatcher matcher;
34 public void setMatcher(StringMatcher matcher) in setMatcher()
DNotMatcher.java29 public class NotMatcher implements StringMatcher
31 private final StringMatcher matcher;
34 public NotMatcher(StringMatcher matcher) in NotMatcher()
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()
30 Matches.push_back(StringMatcher::StringPair(Spelling, "return true;")); in EmitClangCommentHTMLTags()
36 StringMatcher("Name", Matches, OS).Emit(); in EmitClangCommentHTMLTags()
44 std::vector<StringMatcher::StringPair> MatchesEndTagOptional; in EmitClangCommentHTMLTagsProperties()
45 std::vector<StringMatcher::StringPair> MatchesEndTagForbidden; in EmitClangCommentHTMLTagsProperties()
50 StringMatcher::StringPair Match(Spelling, "return true;"); in EmitClangCommentHTMLTagsProperties()
60 StringMatcher("Name", MatchesEndTagOptional, OS).Emit(); in EmitClangCommentHTMLTagsProperties()
65 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()
DClangCommentCommandInfoEmitter.cpp62 std::vector<StringMatcher::StringPair> Matches; in EmitClangCommentCommandInfo()
68 Matches.push_back(StringMatcher::StringPair(Name, Return)); in EmitClangCommentCommandInfo()
73 StringMatcher("Name", Matches, OS).Emit(); in EmitClangCommentCommandInfo()
/external/proguard/src/proguard/io/
DDataEntryNameFilter.java23 import proguard.util.StringMatcher;
34 private final StringMatcher stringMatcher;
42 public DataEntryNameFilter(StringMatcher stringMatcher) in DataEntryNameFilter()
/external/llvm/include/llvm/TableGen/
DStringMatcher.h31 class StringMatcher {
40 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()

123