Home
last modified time | relevance | path

Searched refs:matchLength (Results 1 – 25 of 46) sorted by relevance

12

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz77support/
DLZ77Compressor.java425 int matchLength = 0; in compress() local
429 matchLength = longestMatch(hashHead); in compress()
431 if (lazy && matchLength <= lazyThreshold && lookahead > minMatch) { in compress()
433 matchLength = longestMatchForNextPosition(matchLength); in compress()
436 if (matchLength >= minMatch) { in compress()
442 flushBackReference(matchLength); in compress()
443 insertStringsInMatch(matchLength); in compress()
444 lookahead -= matchLength; in compress()
445 currentPosition += matchLength; in compress()
483 int matchLength = longestMatch(hashHead); in longestMatchForNextPosition() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneGenericNames.java603 final int matchLength; field in TimeZoneGenericNames.GenericMatchInfo
606 private GenericMatchInfo(GenericNameType nameType, String tzID, int matchLength) { in GenericMatchInfo() argument
607 this(nameType, tzID, matchLength, TimeType.UNKNOWN); in GenericMatchInfo()
610 …private GenericMatchInfo(GenericNameType nameType, String tzID, int matchLength, TimeType timeType… in GenericMatchInfo() argument
613 this.matchLength = matchLength; in GenericMatchInfo()
629 public int matchLength() { in matchLength() method in TimeZoneGenericNames.GenericMatchInfo
630 return matchLength; in matchLength()
651 public boolean handlePrefixMatch(int matchLength, Iterator<NameInfo> values) { in handlePrefixMatch() argument
657 … GenericMatchInfo matchInfo = new GenericMatchInfo(info.type, info.tzID, matchLength); in handlePrefixMatch()
662 if (matchLength > _maxMatchLen) { in handlePrefixMatch()
[all …]
DTextTrieMap.java29 public int matchLength; field in TextTrieMap.Output
86 output.matchLength = handler.getMatchLength(); in get()
209 public boolean handlePrefixMatch(int matchLength, Iterator<V> values); in handlePrefixMatch() argument
217 public boolean handlePrefixMatch(int matchLength, Iterator<V> values) { in handlePrefixMatch() argument
218 if (matchLength > length) { in handlePrefixMatch()
219 length = matchLength; in handlePrefixMatch()
DTimeZoneNamesImpl.java532 public boolean handlePrefixMatch(int matchLength, Iterator<NameInfo> values) { in handlePrefixMatch() argument
540 minfo = new MatchInfo(ninfo.type, ninfo.tzID, null, matchLength); in handlePrefixMatch()
543 minfo = new MatchInfo(ninfo.type, null, ninfo.mzID, matchLength); in handlePrefixMatch()
549 if (matchLength > _maxMatchLen) { in handlePrefixMatch()
550 _maxMatchLen = matchLength; in handlePrefixMatch()
DTZDBTimeZoneNames.java250 public boolean handlePrefixMatch(int matchLength, Iterator<TZDBNameInfo> values) { in handlePrefixMatch() argument
317 MatchInfo minfo = new MatchInfo(ntype, null, match.mzID, matchLength); in handlePrefixMatch()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTimeZoneGenericNames.java608 final int matchLength; field in TimeZoneGenericNames.GenericMatchInfo
611 private GenericMatchInfo(GenericNameType nameType, String tzID, int matchLength) { in GenericMatchInfo() argument
612 this(nameType, tzID, matchLength, TimeType.UNKNOWN); in GenericMatchInfo()
615 …private GenericMatchInfo(GenericNameType nameType, String tzID, int matchLength, TimeType timeType… in GenericMatchInfo() argument
618 this.matchLength = matchLength; in GenericMatchInfo()
634 public int matchLength() { in matchLength() method in TimeZoneGenericNames.GenericMatchInfo
635 return matchLength; in matchLength()
656 public boolean handlePrefixMatch(int matchLength, Iterator<NameInfo> values) { in handlePrefixMatch() argument
662 … GenericMatchInfo matchInfo = new GenericMatchInfo(info.type, info.tzID, matchLength); in handlePrefixMatch()
667 if (matchLength > _maxMatchLen) { in handlePrefixMatch()
[all …]
DTextTrieMap.java34 public int matchLength; field in TextTrieMap.Output
91 output.matchLength = handler.getMatchLength(); in get()
218 public boolean handlePrefixMatch(int matchLength, Iterator<V> values); in handlePrefixMatch() argument
226 public boolean handlePrefixMatch(int matchLength, Iterator<V> values) { in handlePrefixMatch() argument
227 if (matchLength > length) { in handlePrefixMatch()
228 length = matchLength; in handlePrefixMatch()
DTimeZoneNamesImpl.java534 public boolean handlePrefixMatch(int matchLength, Iterator<NameInfo> values) { in handlePrefixMatch() argument
542 minfo = new MatchInfo(ninfo.type, ninfo.tzID, null, matchLength); in handlePrefixMatch()
545 minfo = new MatchInfo(ninfo.type, null, ninfo.mzID, matchLength); in handlePrefixMatch()
551 if (matchLength > _maxMatchLen) { in handlePrefixMatch()
552 _maxMatchLen = matchLength; in handlePrefixMatch()
DTZDBTimeZoneNames.java252 public boolean handlePrefixMatch(int matchLength, Iterator<TZDBNameInfo> values) { in handlePrefixMatch() argument
319 MatchInfo minfo = new MatchInfo(ntype, null, match.mzID, matchLength); in handlePrefixMatch()
/external/v8/src/inspector/
Dv8-regex.cc41 int* matchLength) const { in match()
42 if (matchLength) *matchLength = 0; in match()
85 if (matchLength) { in match()
88 *matchLength = match.As<v8::String>()->Length(); in match()
Dv8-regex.h23 int match(const String16&, int startFrom = 0, int* matchLength = 0) const;
Dsearch-util.cc114 int matchLength; in scriptRegexpMatchesByLines() local
115 if (regex.match(line, 0, &matchLength) != -1) in scriptRegexpMatchesByLines()
/external/icu/icu4c/source/i18n/
Dtznames.cpp375 int32_t matchLength; member
378 …MatchInfo(UTimeZoneNameType nameType, int32_t matchLength, const UnicodeString* tzID, const Unicod… in MatchInfo()
380 this->matchLength = matchLength; in MatchInfo()
412 TimeZoneNames::MatchInfoCollection::addZone(UTimeZoneNameType nameType, int32_t matchLength, in addZone() argument
417 MatchInfo* matchInfo = new MatchInfo(nameType, matchLength, &tzID, NULL); in addZone()
429 TimeZoneNames::MatchInfoCollection::addMetaZone(UTimeZoneNameType nameType, int32_t matchLength, in addMetaZone() argument
434 MatchInfo* matchInfo = new MatchInfo(nameType, matchLength, NULL, &mzID); in addMetaZone()
466 return match->matchLength; in getMatchLengthAt()
Dtzgnames.cpp117 int32_t matchLength; member
171 return minfo->matchLength; in getMatchLength()
195 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
215 GNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
242 gmatch->matchLength = matchLength; in handleMatch()
248 if (matchLength > fMaxMatchLen) { in handleMatch()
249 fMaxMatchLen = matchLength; in handleMatch()
Dtznames_impl.cpp107 int32_t matchLength; member
919 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
939 ZNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
961 … fResults->addZone(nameinfo->type, matchLength, UnicodeString(nameinfo->tzID, -1), status); in handleMatch()
964 … fResults->addMetaZone(nameinfo->type, matchLength, UnicodeString(nameinfo->mzID, -1), status); in handleMatch()
966 if (U_SUCCESS(status) && matchLength > fMaxMatchLen) { in handleMatch()
967 fMaxMatchLen = matchLength; in handleMatch()
1890 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
1911 TZDBNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &stat… in handleMatch() argument
1995 fResults->addMetaZone(ntype, matchLength, UnicodeString(match->mzID, -1), status); in handleMatch()
[all …]
/external/lz4/lib/
Dlz4hc.c246 int matchLength=0; in LZ4HC_InsertAndGetWiderMatch() local
259 matchLength = MINMATCH + LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, iHighLimit); in LZ4HC_InsertAndGetWiderMatch()
260 matchLength -= back; in LZ4HC_InsertAndGetWiderMatch()
261 if (matchLength > longest) { in LZ4HC_InsertAndGetWiderMatch()
262 longest = matchLength; in LZ4HC_InsertAndGetWiderMatch()
273 matchLength = LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch()
274 if ((ip+matchLength == vLimit) && (vLimit < iHighLimit)) in LZ4HC_InsertAndGetWiderMatch()
275 matchLength += LZ4_count(ip+matchLength, lowPrefixPtr, iHighLimit); in LZ4HC_InsertAndGetWiderMatch()
277 matchLength -= back; in LZ4HC_InsertAndGetWiderMatch()
278 if (matchLength > longest) { in LZ4HC_InsertAndGetWiderMatch()
[all …]
/external/icu/icu4c/source/common/
Ducnv_ext.cpp132 int32_t i, j, idx, length, matchLength; in ucnv_extMatchToU() local
144 i=j=matchLength=0; in ucnv_extMatchToU()
178 matchLength=i+j; in ucnv_extMatchToU()
217 matchLength=i+j; in ucnv_extMatchToU()
226 if(matchLength==0) { in ucnv_extMatchToU()
233 return matchLength; in ucnv_extMatchToU()
544 int32_t i, j, idx, length, matchLength; in ucnv_extMatchFromU() local
582 i=j=matchLength=0; in ucnv_extMatchFromU()
598 matchLength=2+i+j; in ucnv_extMatchFromU()
635 matchLength=2+i+j; in ucnv_extMatchFromU()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneNames.java376 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument
383 if (matchLength <= 0) { in MatchInfo()
389 _matchLength = matchLength; in MatchInfo()
439 public int matchLength() { in matchLength() method in TimeZoneNames.MatchInfo
DTimeZoneFormat.java1205 if (startIdx + match.matchLength() > parsedPos) { in parse()
1207 parsedPos = startIdx + match.matchLength(); in parse()
1226 if (startIdx + match.matchLength() > parsedPos) { in parse()
1228 parsedPos = startIdx + match.matchLength(); in parse()
1261 if (bestGeneric != null && (startIdx + bestGeneric.matchLength() > parsedPos)) { in parse()
1263 pos.setIndex(startIdx + bestGeneric.matchLength()); in parse()
1420 if (startIdx + match.matchLength() > matchPos) { in parse()
1422 matchPos = startIdx + match.matchLength(); in parse()
1440 if (startIdx + match.matchLength() > matchPos) { in parse()
1442 matchPos = startIdx + match.matchLength(); in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeZoneNames.java345 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument
352 if (matchLength <= 0) { in MatchInfo()
358 _matchLength = matchLength; in MatchInfo()
404 public int matchLength() { in matchLength() method in TimeZoneNames.MatchInfo
DSearchIterator.java77 protected int matchLength; field in SearchIterator
126 return SearchIterator.this.matchLength; in matchedLength()
130 SearchIterator.this.matchLength = matchedLength; in setMatchedLength()
DTimeZoneFormat.java1144 if (startIdx + match.matchLength() > parsedPos) { in parse()
1146 parsedPos = startIdx + match.matchLength(); in parse()
1165 if (startIdx + match.matchLength() > parsedPos) { in parse()
1167 parsedPos = startIdx + match.matchLength(); in parse()
1200 if (bestGeneric != null && (startIdx + bestGeneric.matchLength() > parsedPos)) { in parse()
1202 pos.setIndex(startIdx + bestGeneric.matchLength()); in parse()
1359 if (startIdx + match.matchLength() > matchPos) { in parse()
1361 matchPos = startIdx + match.matchLength(); in parse()
1379 if (startIdx + match.matchLength() > matchPos) { in parse()
1381 matchPos = startIdx + match.matchLength(); in parse()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java80 protected int matchLength; field in SearchIterator
129 return SearchIterator.this.matchLength; in matchedLength()
133 SearchIterator.this.matchLength = matchedLength; in setMatchedLength()
/external/icu/icu4c/source/i18n/unicode/
Dtznames.h330 void addZone(UTimeZoneNameType nameType, int32_t matchLength,
341 void addMetaZone(UTimeZoneNameType nameType, int32_t matchLength,
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/bsdiff/
DBsDiffTest.java450 int matchLength = 0; in findLongestMatchInOld() local
457 ++matchLength; in findLongestMatchInOld()
460 if (matchLength > bestMatchLength) { in findLongestMatchInOld()
462 bestMatchLength = matchLength; in findLongestMatchInOld()

12