Home
last modified time | relevance | path

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

/external/webkit/Tools/Scripts/
Dcommit-log-editor318 my $prefixLength = length $prefix;
320 while ($prefixLength) {
321 last if substr($string, 0, $prefixLength) eq $prefix;
322 --$prefixLength;
325 last unless $prefixLength;
328 return "" unless $prefixLength;
/external/webkit/Tools/WebKitTestRunner/
DTestInvocation.cpp64 static const size_t prefixLength = strlen(filePrefix); in createWKURL() local
75 buffer = adoptArrayPtr(new char[prefixLength + length + 1]); in createWKURL()
77 strcpy(buffer.get() + prefixLength, pathOrURL); in createWKURL()
79 … buffer = adoptArrayPtr(new char[prefixLength + PATH_MAX + length + 2]); // 1 for the separator in createWKURL()
81 if (!getcwd(buffer.get() + prefixLength, PATH_MAX)) in createWKURL()
/external/webkit/Tools/DumpRenderTree/
DPixelDumpSupport.cpp91 …static const size_t prefixLength = sizeof(textCommentPrefix) - 1; // The -1 is for the null at the… in convertChecksumToPNGComment() local
94 bytesToAdd.append(textCommentPrefix, prefixLength); in convertChecksumToPNGComment()
98 …dataToCrc.append(textCommentPrefix + 4, prefixLength - 4); // Don't include the chunk length in th… in convertChecksumToPNGComment()
/external/icu4c/tools/toolutil/
Dpackage.cpp528 int32_t inPkgNameLength, prefixLength, stringsOffset; in readPackage() local
562 prefixLength=inPkgNameLength; in readPackage()
578 prefix[prefixLength++]='_'; in readPackage()
581 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in readPackage()
585 prefix[prefixLength]=0; in readPackage()
593 if(0!=strncmp(s, prefix, prefixLength) || s[prefixLength]==0) { in readPackage()
598 items[i].name=s+prefixLength; in readPackage()
649 int32_t i, length, prefixLength, maxItemLength, basenameOffset, offset, outInt32; in writePackage() local
727 prefixLength=(int32_t)strlen(prefix); in writePackage()
729 dsLocalToOut->swapInvChars(dsLocalToOut, prefix, prefixLength, prefix, &errorCode); in writePackage()
[all …]
/external/emma/core/java12/com/vladium/util/
DWCMatcher.java168 final int prefixLength = prefixChars.length - 1; in matches() local
170 if (chars.length < prefixLength) return false; in matches()
172 for (int c = 0; c < prefixLength; ++ c) in matches()
/external/icu4c/i18n/
Dnfrule.cpp788 int32_t prefixLength = text.length() - workText.length(); in doParse() local
791 fprintf(stderr, "' pl: %d ppi: %d s1p: %d\n", prefixLength, pp.getIndex(), sub1->getPos()); in doParse()
873 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
874 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
956 int32_t pfl = prefixLength(text, prefix, status); in stripPrefix()
1123 NFRule::prefixLength(const UnicodeString& str, const UnicodeString& prefix, UErrorCode& status) con… in prefixLength() function in NFRule
1353 keyLen = prefixLength(temp, key, status); in findText()
Dnfrule.h89 …int32_t prefixLength(const UnicodeString& str, const UnicodeString& prefix, UErrorCode& status) co…
Ddtitvfmt.cpp1027 int8_t prefixLength = sizeof(gLaterFirstPrefix)/sizeof(gLaterFirstPrefix[0]); in setIntervalPattern() local
1030 if ( intervalPattern.startsWith(gLaterFirstPrefix, prefixLength) ) { in setIntervalPattern()
1032 intervalPattern.extract(prefixLength, in setIntervalPattern()
1033 intervalPattern.length() - prefixLength, in setIntervalPattern()
/external/webkit/Source/WebKit/mac/WebView/
DWebTextCompletionController.h37 int prefixLength; variable
DWebTextCompletionController.mm79 NSString *newText = [match substringFromIndex:prefixLength];
193 prefixLength = [prefixStr length];
/external/webkit/Source/WebCore/platform/gtk/
DPopupMenuGtk.cpp184 size_t prefixLength = strlen(searchStringWithCaseFolded.get()); in typeAheadFind() local
215 if (!strncmp(searchStringWithCaseFolded.get(), itemText.get(), prefixLength)) { in typeAheadFind()
/external/icu4c/common/
Dunames.c1008 uint16_t prefixLength, i, idx; in enumAlgNames() local
1016 prefixLength=0; in enumAlgNames()
1019 ++prefixLength; in enumAlgNames()
1023 length=(uint16_t)(prefixLength+writeFactorSuffix(factors, count, in enumAlgNames()
1026 suffix, (uint16_t)(sizeof(buffer)-prefixLength))); in enumAlgNames()
1056 length=prefixLength; in enumAlgNames()
/external/webkit/Source/WebCore/editing/
Dvisible_units.cpp146 unsigned prefixLength = 0; in nextBoundary() local
158 prefixLength += length - i; in nextBoundary()
182 …next = searchFunction(string.data(), string.size(), prefixLength, MayHaveMoreContext, needMoreCont… in nextBoundary()
190 …next = searchFunction(string.data(), string.size(), prefixLength, DontHaveMoreContext, needMoreCon… in nextBoundary()
196 } else if (next != prefixLength) { in nextBoundary()
199 charIt.advance(next - prefixLength - 1); in nextBoundary()
/external/webkit/Source/WebCore/rendering/
DRenderBlockLineLayout.cpp1658 …unsigned prefixLength = font.offsetForPosition(TextRun(text->characters() + lastSpace, pos - lastS… in tryHyphenating() local
1659 if (prefixLength < static_cast<unsigned>(minimumPrefixLength)) in tryHyphenating()
1662prefixLength = lastHyphenLocation(text->characters() + lastSpace, pos - lastSpace, min(prefixLengt… in tryHyphenating()
1666 …if (!prefixLength || prefixLength - (lastSpace ? 1 : 0) < static_cast<unsigned>(minimumPrefixLengt… in tryHyphenating()
1669 ASSERT(pos - lastSpace - prefixLength >= static_cast<unsigned>(minimumSuffixLength)); in tryHyphenating()
1672 …float prefixWidth = hyphenWidth + textWidth(text, lastSpace, prefixLength, font, xPos, isFixedPitc… in tryHyphenating()
1678 lineBreak.moveTo(text, lastSpace + prefixLength, nextBreakable); in tryHyphenating()
/external/google-diff-match-patch/name/fraser/neil/plaintext/
Ddiff_match_patch.java761 int prefixLength = diff_commonPrefix(longtext.substring(i), in diff_halfMatchI() local
765 if (best_common.length() < suffixLength + prefixLength) { in diff_halfMatchI()
767 + shorttext.substring(j, j + prefixLength); in diff_halfMatchI()
769 best_longtext_b = longtext.substring(i + prefixLength); in diff_halfMatchI()
771 best_shorttext_b = shorttext.substring(j + prefixLength); in diff_halfMatchI()
/external/webkit/Source/WebCore/css/
DCSSParser.cpp565 static const unsigned prefixLength = 15; in parseDeclaration() local
592 (*it).range.start -= prefixLength; in parseDeclaration()
593 (*it).range.end -= prefixLength; in parseDeclaration()