Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTimeZoneGenericNames.java605 final int matchLength; field in TimeZoneGenericNames.GenericMatchInfo
608 private GenericMatchInfo(GenericNameType nameType, String tzID, int matchLength) { in GenericMatchInfo() argument
609 this(nameType, tzID, matchLength, TimeType.UNKNOWN); in GenericMatchInfo()
612 …private GenericMatchInfo(GenericNameType nameType, String tzID, int matchLength, TimeType timeType… in GenericMatchInfo() argument
615 this.matchLength = matchLength; in GenericMatchInfo()
631 public int matchLength() { in matchLength() method in TimeZoneGenericNames.GenericMatchInfo
632 return matchLength; in matchLength()
653 public boolean handlePrefixMatch(int matchLength, Iterator<NameInfo> values) { in handlePrefixMatch() argument
659 … GenericMatchInfo matchInfo = new GenericMatchInfo(info.type, info.tzID, matchLength); in handlePrefixMatch()
664 if (matchLength > _maxMatchLen) { in handlePrefixMatch()
[all …]
DTextTrieMap.java197 public boolean handlePrefixMatch(int matchLength, Iterator<V> values); in handlePrefixMatch() argument
205 public boolean handlePrefixMatch(int matchLength, Iterator<V> values) { in handlePrefixMatch() argument
206 if (matchLength > length) { in handlePrefixMatch()
207 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.java248 public boolean handlePrefixMatch(int matchLength, Iterator<TZDBNameInfo> values) { in handlePrefixMatch() argument
315 MatchInfo minfo = new MatchInfo(ntype, null, match.mzID, matchLength); in handlePrefixMatch()
/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.java195 public boolean handlePrefixMatch(int matchLength, Iterator<V> values); in handlePrefixMatch() argument
203 public boolean handlePrefixMatch(int matchLength, Iterator<V> values) { in handlePrefixMatch() argument
204 if (matchLength > length) { in handlePrefixMatch()
205 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.java246 public boolean handlePrefixMatch(int matchLength, Iterator<TZDBNameInfo> values) { in handlePrefixMatch() argument
313 MatchInfo minfo = new MatchInfo(ntype, null, match.mzID, matchLength); in handlePrefixMatch()
/external/lz4/lib/
Dlz4opt.h100 size_t matchLength = 0; in LZ4HC_BinTree_InsertAndGetAllMatches() local
118 matchLength = LZ4_count(ip, match, iHighLimit); in LZ4HC_BinTree_InsertAndGetAllMatches()
123 matchLength = LZ4_count(ip, match, vLimit); in LZ4HC_BinTree_InsertAndGetAllMatches()
124 if ((ip+matchLength == vLimit) && (vLimit < iHighLimit)) in LZ4HC_BinTree_InsertAndGetAllMatches()
125 matchLength += LZ4_count(ip+matchLength, base+dictLimit, iHighLimit); in LZ4HC_BinTree_InsertAndGetAllMatches()
128 if (matchLength > best_mlen) { in LZ4HC_BinTree_InsertAndGetAllMatches()
129 best_mlen = matchLength; in LZ4HC_BinTree_InsertAndGetAllMatches()
135 matches[mnum].len = (int)matchLength; in LZ4HC_BinTree_InsertAndGetAllMatches()
141 if (ip+matchLength >= iHighLimit) /* equal : no way to know if inf or sup */ in LZ4HC_BinTree_InsertAndGetAllMatches()
144 if (*(ip+matchLength) < *(match+matchLength)) { in LZ4HC_BinTree_InsertAndGetAllMatches()
Dlz4.c812 { size_t matchLength = LZ4_count(ip+MINMATCH, match+MINMATCH, matchlimit); in LZ4_compress_destSize_generic() local
814 if (op + ((matchLength+240)/255) > oMaxMatch) { in LZ4_compress_destSize_generic()
816 matchLength = (15-1) + (oMaxMatch-op) * 255; in LZ4_compress_destSize_generic()
818 ip += MINMATCH + matchLength; in LZ4_compress_destSize_generic()
820 if (matchLength>=ML_MASK) { in LZ4_compress_destSize_generic()
822 matchLength -= ML_MASK; in LZ4_compress_destSize_generic()
823 while (matchLength >= 255) { matchLength-=255; *op++ = 255; } in LZ4_compress_destSize_generic()
824 *op++ = (BYTE)matchLength; in LZ4_compress_destSize_generic()
826 else *token += (BYTE)(matchLength); in LZ4_compress_destSize_generic()
Dlz4hc.c262 int matchLength, in LZ4HC_encodeSequence() argument
271 …l : %u -- match : %u -- offset : %u\n", (U32)(*ip - *anchor), (U32)matchLength, (U32)(*ip-matc… in LZ4HC_encodeSequence()
289 length = (int)(matchLength-MINMATCH); in LZ4HC_encodeSequence()
302 *ip += matchLength; in LZ4HC_encodeSequence()
/external/v8/src/inspector/
Dv8-regex.cc41 int* matchLength) const { in match()
42 if (matchLength) *matchLength = 0; in match()
84 if (matchLength) { in match()
87 *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.cpp116 int32_t matchLength; member
170 return minfo->matchLength; in getMatchLength()
194 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
214 GNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
241 gmatch->matchLength = matchLength; in handleMatch()
247 if (matchLength > fMaxMatchLen) { in handleMatch()
248 fMaxMatchLen = matchLength; in handleMatch()
Dtznames_impl.cpp105 int32_t matchLength; member
913 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
933 ZNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
955 … fResults->addZone(nameinfo->type, matchLength, UnicodeString(nameinfo->tzID, -1), status); in handleMatch()
958 … fResults->addMetaZone(nameinfo->type, matchLength, UnicodeString(nameinfo->mzID, -1), status); in handleMatch()
960 if (U_SUCCESS(status) && matchLength > fMaxMatchLen) { in handleMatch()
961 fMaxMatchLen = matchLength; in handleMatch()
1884 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
1905 TZDBNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &stat… in handleMatch() argument
1989 fResults->addMetaZone(ntype, matchLength, UnicodeString(match->mzID, -1), status); in handleMatch()
[all …]
/external/icu/icu4c/source/common/
Ducnv_ext.cpp131 int32_t i, j, idx, length, matchLength; in ucnv_extMatchToU() local
143 i=j=matchLength=0; in ucnv_extMatchToU()
177 matchLength=i+j; in ucnv_extMatchToU()
216 matchLength=i+j; in ucnv_extMatchToU()
225 if(matchLength==0) { in ucnv_extMatchToU()
232 return matchLength; in ucnv_extMatchToU()
543 int32_t i, j, idx, length, matchLength; in ucnv_extMatchFromU() local
581 i=j=matchLength=0; in ucnv_extMatchFromU()
597 matchLength=2+i+j; in ucnv_extMatchFromU()
634 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.java1204 if (startIdx + match.matchLength() > parsedPos) { in parse()
1206 parsedPos = startIdx + match.matchLength(); in parse()
1225 if (startIdx + match.matchLength() > parsedPos) { in parse()
1227 parsedPos = startIdx + match.matchLength(); in parse()
1260 if (bestGeneric != null && (startIdx + bestGeneric.matchLength() > parsedPos)) { in parse()
1262 pos.setIndex(startIdx + bestGeneric.matchLength()); in parse()
1419 if (startIdx + match.matchLength() > matchPos) { in parse()
1421 matchPos = startIdx + match.matchLength(); in parse()
1439 if (startIdx + match.matchLength() > matchPos) { in parse()
1441 matchPos = startIdx + match.matchLength(); in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeZoneNames.java344 public MatchInfo(NameType nameType, String tzID, String mzID, int matchLength) { in MatchInfo() argument
351 if (matchLength <= 0) { in MatchInfo()
357 _matchLength = matchLength; in MatchInfo()
403 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.java1143 if (startIdx + match.matchLength() > parsedPos) { in parse()
1145 parsedPos = startIdx + match.matchLength(); in parse()
1164 if (startIdx + match.matchLength() > parsedPos) { in parse()
1166 parsedPos = startIdx + match.matchLength(); in parse()
1199 if (bestGeneric != null && (startIdx + bestGeneric.matchLength() > parsedPos)) { in parse()
1201 pos.setIndex(startIdx + bestGeneric.matchLength()); in parse()
1358 if (startIdx + match.matchLength() > matchPos) { in parse()
1360 matchPos = startIdx + match.matchLength(); in parse()
1378 if (startIdx + match.matchLength() > matchPos) { in parse()
1380 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.h332 void addZone(UTimeZoneNameType nameType, int32_t matchLength,
343 void addMetaZone(UTimeZoneNameType nameType, int32_t matchLength,

12