Home
last modified time | relevance | path

Searched refs:targetLength (Results 1 – 23 of 23) sorted by relevance

/external/webkit/Source/JavaScriptCore/wtf/
DStringExtras.h107 size_t targetLength = strlen(target); in strnstr() local
108 if (targetLength == 0) in strnstr()
110 …for (const char* start = buffer; *start && start + targetLength <= buffer + bufferLength; start++)… in strnstr()
111 if (*start == *target && strncmp(start + 1, target + 1, targetLength - 1) == 0) in strnstr()
/external/icu4c/common/
Ducnvhz.c39 #define CONCAT_ESCAPE_MACRO( args, targetIndex,targetLength,strToAppend, err, len,sourceIndex){ … argument
41 …if(targetIndex < targetLength){ …
341 int32_t targetLength = (int32_t)(args->targetLimit - myTarget); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC() local
357 if(args->converter->fromUChar32!=0 && myTargetIndex < targetLength) { in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
363 if (myTargetIndex < targetLength){ in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
373 … CONCAT_ESCAPE_MACRO(args, myTargetIndex, targetLength, escSeq,err,len,mySourceIndex); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
398 … CONCAT_ESCAPE_MACRO(args, myTargetIndex, targetLength, escSeq,err,len,mySourceIndex); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
404 … CONCAT_ESCAPE_MACRO(args, myTargetIndex, targetLength, escSeq,err,len,mySourceIndex); in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
411 if( myTargetIndex <targetLength){ in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
416 if(myTargetIndex < targetLength){ in UConverter_fromUnicode_HZ_OFFSETS_LOGIC()
[all …]
Dunistr.cpp1512 UnicodeString::padLeading(int32_t targetLength, in padLeading() argument
1516 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padLeading()
1521 int32_t start = targetLength - oldLength; in padLeading()
1528 setLength(targetLength); in padLeading()
1534 UnicodeString::padTrailing(int32_t targetLength, in padTrailing() argument
1538 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padTrailing()
1543 int32_t length = targetLength; in padTrailing()
1547 setLength(targetLength); in padTrailing()
Ducnv.c2415 int32_t targetLength=0; in ucnv_internalConvert() local
2431 targetLength=0; in ucnv_internalConvert()
2443 targetLength=(int32_t)(myTarget-target); in ucnv_internalConvert()
2466 targetLength+=(int32_t)(myTarget-targetBuffer); in ucnv_internalConvert()
2470 return u_terminateChars(target, targetCapacity, targetLength, pErrorCode); in ucnv_internalConvert()
2474 return targetLength; in ucnv_internalConvert()
2484 int32_t targetLength; in ucnv_convert() local
2514 targetLength=ucnv_internalConvert(outConverter, inConverter, in ucnv_convert()
2522 return targetLength; in ucnv_convert()
2535 int32_t targetLength; in ucnv_convertAlgorithmic() local
[all …]
/external/icu4c/i18n/
Dbms.cpp73 const UChar *target, int32_t targetLength, in bms_open() argument
87 bms->targetString = new UnicodeString(target, targetLength); in bms_open()
136 bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status) in bms_setTargetString() argument
147 bms->targetString = new UnicodeString(target, targetLength); in bms_setTargetString()
Dsortkey.cpp194 int32_t targetLength = target.getLength(); in compareTo() local
195 if (minLength < targetLength) { in compareTo()
197 } else if (minLength == targetLength) { in compareTo()
200 minLength = targetLength; in compareTo()
Dbmsearch.cpp88 int32_t targetLength; member in Target
98 … targetString(NULL), targetBuffer(NULL), targetLength(0), elements(NULL), charBreakIterator(NULL) in Target()
162 targetLength = targetString->length(); in setTargetString()
168 targetBuffer, targetLength, &status); in setTargetString()
171 targetLength = 0; in setTargetString()
277 return targetLength; in stringLength()
333 while (offset < targetLength) { in nextSafeBoundary()
344 return targetLength; in nextSafeBoundary()
Ducol.cpp7140 int32_t targetLength; in ucol_compareUsingSortKeys() local
7155 targetLength = targetString.length(); in ucol_compareUsingSortKeys()
7158 targetLength = (tColl->flags&UCOL_ITER_HASLEN)?(int32_t)(tColl->endp-tColl->string):-1; in ucol_compareUsingSortKeys()
7175 targetKeyLen = ucol_getSortKey(coll, target, targetLength, targetKeyP, targetKeyLen); in ucol_compareUsingSortKeys()
7182 targetKeyLen = ucol_getSortKey(coll, target, targetLength, targetKeyP, targetKeyLen); in ucol_compareUsingSortKeys()
7698 const UChar *target, int32_t targetLength, in ucol_strcollRegular() argument
7703 IInit_collIterate(coll, target, targetLength, &tColl, status); in ucol_strcollRegular()
8230 int32_t targetLength, in ucol_strcollRegularUTF8() argument
8237 uiter_setUTF8(&tgt, target, targetLength); in ucol_strcollRegularUTF8()
8747 int32_t targetLength) in ucol_strcoll() argument
[all …]
Dtblcoll.cpp336 int32_t targetLength, in compare() argument
340 return ucol_strcoll(ucollator, source, sourceLength, target, targetLength); in compare()
Dcoll.cpp452 const UChar* target, int32_t targetLength) in compare()
456 return (EComparisonResult)compare(source, sourceLength, target, targetLength, ec); in compare()
/external/icu4c/i18n/unicode/
Dbms.h210 const UChar *target, int32_t targetLength,
274 bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status);
Ducol.h534 int32_t targetLength);
560 int32_t targetLength,
580 const UChar *target, int32_t targetLength);
599 const UChar *target, int32_t targetLength);
618 const UChar *target, int32_t targetLength);
Dcoll.h450 const UChar* target, int32_t targetLength)
470 const UChar* target, int32_t targetLength,
Dtblcoll.h312 const UChar* target, int32_t targetLength,
/external/webkit/Source/WebCore/icu/unicode/
Ducol.h396 int32_t targetLength);
415 const UChar *target, int32_t targetLength);
434 const UChar *target, int32_t targetLength);
453 const UChar *target, int32_t targetLength);
/external/webkit/Source/JavaScriptCore/icu/unicode/
Ducol.h396 int32_t targetLength);
415 const UChar *target, int32_t targetLength);
434 const UChar *target, int32_t targetLength);
453 const UChar *target, int32_t targetLength);
/external/icu4c/tools/toolutil/
Dpkgitems.cpp134 int32_t treeLength, suffixLength, targetLength; in makeTargetName() local
150 targetLength=treeLength+idLength+suffixLength; in makeTargetName()
151 if(targetLength>=capacity) { in makeTargetName()
153 itemName, (long)targetLength); in makeTargetName()
/external/webkit/Source/WebCore/loader/
DTextResourceDecoder.cpp48 size_t targetLength = strlen(target); in find() local
49 if (targetLength > subjectLength) in find()
51 for (size_t i = 0; i <= subjectLength - targetLength; ++i) { in find()
53 for (size_t j = 0; j < targetLength; ++j) { in find()
/external/icu4c/common/unicode/
Dunistr.h1534 uint32_t targetLength) const;
1602 uint32_t targetLength,
2514 UBool padLeading(int32_t targetLength,
2528 UBool padTrailing(int32_t targetLength,
2537 inline UBool truncate(int32_t targetLength);
4479 UnicodeString::truncate(int32_t targetLength) in truncate() argument
4481 if(isBogus() && targetLength == 0) { in truncate()
4485 } else if((uint32_t)targetLength < (uint32_t)length()) { in truncate()
4486 setLength(targetLength); in truncate()
4488 fUnion.fFields.fCapacity = targetLength; // not NUL-terminated any more in truncate()
/external/webkit/Source/WebKit/mac/Plugins/Hosted/
DNetscapePluginHostProxy.mm384 … data_t url, mach_msg_type_number_t urlLength, data_t target, mach_msg_type_number_t targetLength,
389 DataDeallocator targetDeallocator(target, targetLength);
1071 … data_t targetData, mach_msg_type_number_t targetLength, uint32_t *checkID)
1074 DataDeallocator targetDeallocator(targetData, targetLength);
1103 data_t targetData, mach_msg_type_number_t targetLength,
1107 DataDeallocator targetDeallocator(targetData, targetLength);
/external/webkit/Source/WebCore/editing/
DTextIterator.cpp1941 size_t targetLength = m_target.length(); in SearchBuffer() local
1942 m_buffer.reserveInitialCapacity(max(targetLength * 8, minimumSearchBufferSize)); in SearchBuffer()
1945 if ((m_options & AtWordStarts) && targetLength) { in SearchBuffer()
1947 U16_GET(m_target.characters(), 0, 0, targetLength, targetFirstCharacter); in SearchBuffer()
1971 usearch_setPattern(searcher, m_target.characters(), targetLength, &status); in SearchBuffer()
/external/icu4c/test/cintltst/
Dccapitst.c2143 int32_t targetLength; in convertExStreaming() local
2180 targetLength=(int32_t)(target-targetBuffer); in convertExStreaming()
2189 if(targetLength+chunkSize<=sizeof(targetBuffer)) { in convertExStreaming()
2209 } else if(targetLength!=expectTargetLength) { in convertExStreaming()
2211 testName, chunkSize, targetLength, expectTargetLength); in convertExStreaming()
2212 } else if(memcmp(targetBuffer, expectTarget, targetLength)!=0) { in convertExStreaming()
/external/icu4c/test/intltest/
Dapicoll.cpp1924 int32_t targetLength,
2006 int32_t targetLength, in compare() argument
2010 UnicodeString t(target, targetLength); in compare()