Home
last modified time | relevance | path

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

/external/webkit/Source/WebCore/platform/text/
DRegularExpression.cpp94 int RegularExpression::match(const String& str, int startFrom, int* matchLength) const in match()
123 if (matchLength) in match()
124 *matchLength = d->lastMatchLength; in match()
138 int matchLength; in searchRev() local
139 pos = match(str, start, &matchLength); in searchRev()
141 if (pos + matchLength > lastPos + lastMatchLength) { in searchRev()
144 lastMatchLength = matchLength; in searchRev()
162 int matchLength; in replace() local
163 index = target.match(string, index, &matchLength); in replace()
166 string.replace(index, matchLength, replacement); in replace()
[all …]
DRegularExpression.h42 int match(const String&, int startFrom = 0, int* matchLength = 0) const;
/external/webkit/Source/JavaScriptCore/wtf/text/
DStringImpl.cpp539 unsigned matchLength = matchStringLength; in find() local
540 if (!matchLength) in find()
544 if (matchLength == 1) in find()
551 if (matchLength > searchLength) in find()
554 unsigned delta = searchLength - matchLength; in find()
563 for (unsigned i = 0; i < matchLength; ++i) { in find()
570 while (searchHash != matchHash || !equal(searchCharacters + i, matchString, matchLength)) { in find()
573 searchHash += searchCharacters[i + matchLength]; in find()
588 unsigned matchLength = matchStringLength; in findIgnoringCase() local
589 if (!matchLength) in findIgnoringCase()
[all …]
/external/webkit/Source/WebCore/html/
DBaseTextInputType.cpp46 int matchLength = 0; in patternMismatch() local
48 int matchOffset = RegularExpression(pattern, TextCaseSensitive).match(value, 0, &matchLength); in patternMismatch()
49 return matchOffset || matchLength != valueLength; in patternMismatch()
DEmailInputType.cpp47 int matchLength; in isValidEmailAddress() local
48 int matchOffset = regExp.match(address, 0, &matchLength); in isValidEmailAddress()
50 return !matchOffset && matchLength == addressLength; in isValidEmailAddress()
/external/chromium/webkit/glue/
Dregular_expression_unittest.cc21 const int matchLength; member
33 EXPECT_EQ(matches[i].matchLength, matchedLength); in testMatches()
40 #define MATCH_DESC(webuchar, matchPosition, matchLength) \ argument
41 { webuchar, arraysize(webuchar), matchPosition, matchLength }
/external/icu4c/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/webkit/Source/WebKit/chromium/src/
DWebRegularExpression.cpp59 int* matchLength) const in match()
64 return m_private->match(str, startFrom, matchLength); in match()
/external/icu4c/i18n/
Dtzgnames.cpp114 int32_t matchLength; member
154 return minfo->matchLength; in getMatchLength()
178 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
198 GNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
224 gmatch->matchLength = matchLength; in handleMatch()
230 if (matchLength > fMaxMatchLen) { in handleMatch()
231 fMaxMatchLen = matchLength; in handleMatch()
Dtznames_impl.cpp747 int32_t matchLength; member
800 return minfo->matchLength; in getMatchLength()
835 UBool handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status);
855 ZNameSearchHandler::handleMatch(int32_t matchLength, const CharacterNode *node, UErrorCode &status)… in handleMatch() argument
881 zmatch->matchLength = matchLength; in handleMatch()
886 if (matchLength > fMaxMatchLen) { in handleMatch()
887 fMaxMatchLen = matchLength; in handleMatch()
Dtznames_impl.h119 virtual UBool handleMatch(int32_t matchLength,
/external/webkit/Source/WebKit/chromium/public/
DWebRegularExpression.h48 WEBKIT_API int match(const WebString&, int startFrom = 0, int* matchLength = 0) const;
/external/webkit/Source/JavaScriptCore/runtime/
DStringPrototype.cpp620 int matchLength = 0; in stringProtoFuncMatch() local
621 regExpConstructor->performMatch(reg.get(), s, 0, pos, matchLength); in stringProtoFuncMatch()
633 list.append(jsSubstring(exec, s, pos, matchLength)); in stringProtoFuncMatch()
635 pos += matchLength == 0 ? 1 : matchLength; in stringProtoFuncMatch()
636 regExpConstructor->performMatch(reg.get(), s, pos, pos, matchLength); in stringProtoFuncMatch()
670 int matchLength = 0; in stringProtoFuncSearch() local
671 regExpConstructor->performMatch(reg.get(), s, 0, pos, matchLength); in stringProtoFuncSearch()
/external/webkit/Source/WebCore/editing/
DTextIterator.cpp2048 inline bool SearchBuffer::isBadMatch(const UChar* match, size_t matchLength) const in isBadMatch()
2057 normalizeCharacters(match, matchLength, m_normalizedMatch); in isBadMatch()
2586 size_t matchLength = 0; in findPlainText() local
2611 matchLength = newMatchLength; in findPlainText()
2624 return matchLength; in findPlainText()
2631 size_t matchLength; in findPlainText() local
2634 matchLength = findPlainText(findIterator, target, options, matchStart); in findPlainText()
2635 if (!matchLength) in findPlainText()
2641 return characterSubrange(computeRangeIterator, matchStart, matchLength); in findPlainText()
/external/icu4c/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()
/external/webkit/Source/WebCore/
DChangeLog-2007-10-1438744 the location we found with integers matchStart and matchLength. 4) Got rid of the use