Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/wtf/text/
DStringImpl.cpp1120 unsigned matchLength = matchStringLength; in find() local
1121 if (!matchLength) in find()
1125 if (matchLength == 1) in find()
1132 if (matchLength > searchLength) in find()
1135 unsigned delta = searchLength - matchLength; in find()
1143 for (unsigned i = 0; i < matchLength; ++i) { in find()
1150 while (searchHash != matchHash || !equal(searchCharacters + i, matchString, matchLength)) { in find()
1153 searchHash += searchCharacters[i + matchLength]; in find()
1161 …hCharacters, const LChar* matchString, unsigned index, unsigned searchLength, unsigned matchLength) in findIgnoringCaseInternal() argument
1164 unsigned delta = searchLength - matchLength; in findIgnoringCaseInternal()
[all …]
DAtomicString.h117 template<unsigned matchLength>
118 bool startsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const
119 { return m_string.startsWith<matchLength>(prefix, caseSensitive); }
125 template<unsigned matchLength>
126 bool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const
127 { return m_string.endsWith<matchLength>(prefix, caseSensitive); }
DStringImpl.h383 bool startsWith(const char*, unsigned matchLength, bool caseSensitive) const;
384 template<unsigned matchLength>
385 … startsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const { return startsWit…
389 bool endsWith(const char*, unsigned matchLength, bool caseSensitive) const;
390 template<unsigned matchLength>
391 …ool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const { return endsWith…
DWTFString.h275 template<unsigned matchLength>
276 bool startsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const
277 { return m_impl ? m_impl->startsWith<matchLength>(prefix, caseSensitive) : !matchLength; }
283 template<unsigned matchLength>
284 bool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const
285 { return m_impl ? m_impl->endsWith<matchLength>(prefix, caseSensitive) : !matchLength; }
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DScriptRegexp.cpp59 int ScriptRegexp::match(const String& string, int startFrom, int* matchLength) const in match()
61 if (matchLength) in match()
62 *matchLength = 0; in match()
99 if (matchLength) { in match()
101 *matchLength = match->Length(); in match()
DScriptRegexp.h47 int match(const String&, int startFrom = 0, int* matchLength = 0) const;
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/
DVTTScanner.cpp56 …unsigned matchLength = m_is8Bit ? m_end.characters8 - m_data.characters8 : m_end.characters16 - m_… in scan() local
57 if (matchLength < charactersCount) in scan()
75 size_t matchLength = run.length(); in scanRun() local
76 if (toMatch.length() > matchLength) in scanRun()
80 matched = WTF::equal(toMatch.impl(), m_data.characters8, matchLength); in scanRun()
82 matched = WTF::equal(toMatch.impl(), m_data.characters16, matchLength); in scanRun()
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DBaseTextInputType.cpp47 int matchLength = 0; in patternMismatch() local
49 int matchOffset = ScriptRegexp(pattern, TextCaseSensitive).match(value, 0, &matchLength); in patternMismatch()
50 return matchOffset || matchLength != valueLength; in patternMismatch()
DEmailInputType.cpp142 int matchLength; in isValidEmailAddress() local
143 int matchOffset = regExp.match(address, 0, &matchLength); in isValidEmailAddress()
145 return !matchOffset && matchLength == addressLength; in isValidEmailAddress()
/external/icu/icu4c/source/i18n/
Dtznames.cpp317 int32_t matchLength; member
320 …MatchInfo(UTimeZoneNameType nameType, int32_t matchLength, const UnicodeString* tzID, const Unicod… in MatchInfo()
322 this->matchLength = matchLength; in MatchInfo()
354 TimeZoneNames::MatchInfoCollection::addZone(UTimeZoneNameType nameType, int32_t matchLength, in addZone() argument
359 MatchInfo* matchInfo = new MatchInfo(nameType, matchLength, &tzID, NULL); in addZone()
371 TimeZoneNames::MatchInfoCollection::addMetaZone(UTimeZoneNameType nameType, int32_t matchLength, in addMetaZone() argument
376 MatchInfo* matchInfo = new MatchInfo(nameType, matchLength, NULL, &mzID); in addMetaZone()
408 return match->matchLength; in getMatchLengthAt()
Dtzgnames.cpp114 int32_t matchLength; member
168 return minfo->matchLength; in getMatchLength()
192 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
212 GNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
239 gmatch->matchLength = matchLength; in handleMatch()
245 if (matchLength > fMaxMatchLen) { in handleMatch()
246 fMaxMatchLen = matchLength; in handleMatch()
Dtznames_impl.cpp760 int32_t matchLength; member
773 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
793 ZNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
815 … fResults->addZone(nameinfo->type, matchLength, UnicodeString(nameinfo->tzID, -1), status); in handleMatch()
818 … fResults->addMetaZone(nameinfo->type, matchLength, UnicodeString(nameinfo->mzID, -1), status); in handleMatch()
820 if (U_SUCCESS(status) && matchLength > fMaxMatchLen) { in handleMatch()
821 fMaxMatchLen = matchLength; in handleMatch()
Dtznames_impl.h119 virtual UBool handleMatch(int32_t matchLength,
Dtzfmt.cpp2601 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
2617 ZoneIdMatchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
2624 if (fLen < matchLength) { in handleMatch()
2626 fLen = matchLength; in handleMatch()
/external/chromium_org/third_party/icu/source/i18n/
Dzstrfmt.h73 virtual UBool handleMatch(int32_t matchLength,
259 int32_t &matchLength, UErrorCode &status) const;
261 int32_t &matchLength, UErrorCode &status) const;
263 int32_t &matchLength, UErrorCode &status) const;
265 int32_t &matchLength, UErrorCode &status) const;
267 int32_t &matchLength, UErrorCode &status) const;
353 int32_t &matchLength, UErrorCode &status) const;
355 int32_t &matchLength, UErrorCode &status) const;
465 virtual UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
467 const ZoneStringInfo* getMatch(int32_t index, int32_t &matchLength);
Dzstrfmt.cpp470 ZoneStringSearchResultHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCo… in handleMatch() argument
487 if (matchLength > fMatchLen[lenidx]) { in handleMatch()
490 fMatchLen[lenidx] = matchLength; in handleMatch()
499 fMatchLen[getTimeZoneTranslationTypeIndex(zsinfo->fType)] = matchLength; in handleMatch()
512 ZoneStringSearchResultHandler::getMatch(int32_t index, int32_t &matchLength) { in getMatch() argument
516 matchLength = fMatchLen[getTimeZoneTranslationTypeIndex(zsinfo->fType)]; in getMatch()
1312 int32_t &matchLength, UErrorCode &status) const { in findSpecificLong() argument
1313 return find(text, start, STANDARD_LONG | DAYLIGHT_LONG, matchLength, status); in findSpecificLong()
1318 int32_t &matchLength, UErrorCode &status) const { in findSpecificShort() argument
1319 return find(text, start, STANDARD_SHORT | DAYLIGHT_SHORT, matchLength, status); in findSpecificShort()
[all …]
/external/chromium_org/third_party/icu/source/common/
Ducnv_ext.c128 int32_t i, j, idx, length, matchLength; in ucnv_extMatchToU() local
140 i=j=matchLength=0; in ucnv_extMatchToU()
174 matchLength=i+j; in ucnv_extMatchToU()
213 matchLength=i+j; in ucnv_extMatchToU()
222 if(matchLength==0) { in ucnv_extMatchToU()
229 return matchLength; in ucnv_extMatchToU()
531 int32_t i, j, idx, length, matchLength; in ucnv_extMatchFromU() local
569 i=j=matchLength=0; in ucnv_extMatchFromU()
589 matchLength=2+i+j; in ucnv_extMatchFromU()
629 matchLength=2+i+j; in ucnv_extMatchFromU()
[all …]
/external/icu/icu4c/source/common/
Ducnv_ext.cpp129 int32_t i, j, idx, length, matchLength; in ucnv_extMatchToU() local
141 i=j=matchLength=0; in ucnv_extMatchToU()
175 matchLength=i+j; in ucnv_extMatchToU()
214 matchLength=i+j; in ucnv_extMatchToU()
223 if(matchLength==0) { in ucnv_extMatchToU()
230 return matchLength; in ucnv_extMatchToU()
541 int32_t i, j, idx, length, matchLength; in ucnv_extMatchFromU() local
579 i=j=matchLength=0; in ucnv_extMatchFromU()
595 matchLength=2+i+j; in ucnv_extMatchFromU()
632 matchLength=2+i+j; in ucnv_extMatchFromU()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dtznames.h306 void addZone(UTimeZoneNameType nameType, int32_t matchLength,
317 void addMetaZone(UTimeZoneNameType nameType, int32_t matchLength,
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DContentSearchUtils.cpp73 int matchLength; in getScriptRegexpMatchesByLines() local
74 if (regex->match(line, 0, &matchLength) != -1) in getScriptRegexpMatchesByLines()
DInspectorStyleSheet.cpp1176 int matchLength; in selectorsFromSource() local
1178 while ((offset = comment.match(selector, offset, &matchLength)) >= 0) in selectorsFromSource()
1179 selector.replace(offset, matchLength, ""); in selectorsFromSource()
/external/chromium_org/third_party/WebKit/Source/core/editing/
DTextIterator.cpp1905 inline bool SearchBuffer::isBadMatch(const UChar* match, size_t matchLength) const in isBadMatch()
1914 normalizeCharactersIntoNFCForm(match, matchLength, m_normalizedMatch); in isBadMatch()
2114 size_t matchLength = 0; in findPlainTextInternal() local
2144 matchLength = newMatchLength; in findPlainTextInternal()
2157 return matchLength; in findPlainTextInternal()
2169 size_t matchLength; in findPlainText() local
2172 matchLength = findPlainTextInternal(findIterator, target, options, matchStart); in findPlainText()
2173 if (!matchLength) in findPlainText()
2181 … calculateCharacterSubrange(computeRangeIterator, matchStart, matchLength, resultStart, resultEnd); in findPlainText()
2197 size_t matchLength; in findPlainText() local
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/source_frame/
DCodeMirrorTextEditor.js1400 var matchLength = match[0].length;
1401 if (matchLength === 1)
1403 this._searchMatchLength = matchLength;
/external/icu/icu4c/source/test/cintltst/
Dusrchtst.c2929 int32_t matchLength = 0; in TestMatchFollowedByIgnorables() local
2978 matchLength = usearch_getMatchedLength(usearch); in TestMatchFollowedByIgnorables()
2980 if (matchLength != expectedMatchLength) { in TestMatchFollowedByIgnorables()
2981 log_err("Error: matchLength=%d, expected=%d\n", matchLength, expectedMatchLength); in TestMatchFollowedByIgnorables()