Lines Matching refs:srcLength
344 int32_t srcLength) in UnicodeString() argument
349 setTo(that, srcStart, srcLength); in UnicodeString()
485 int32_t srcLength = src.length(); in copyFrom() local
486 setLength(srcLength); in copyFrom()
493 uprv_memcpy(fUnion.fStackBuffer, src.fUnion.fStackBuffer, srcLength * U_SIZEOF_UCHAR); in copyFrom()
517 if(allocate(srcLength)) { in copyFrom()
518 uprv_memcpy(getArrayStart(), src.getArrayStart(), srcLength * U_SIZEOF_UCHAR); in copyFrom()
575 int32_t srcLength) const in doCompare()
587 srcStart = srcLength = 0; in doCompare()
600 if(srcLength < 0) { in doCompare()
601 srcLength = u_strlen(srcChars + srcStart); in doCompare()
605 if(length != srcLength) { in doCompare()
606 if(length < srcLength) { in doCompare()
610 minLength = srcLength; in doCompare()
654 int32_t srcLength) const in doCompareCodePointOrder()
666 srcStart = srcLength = 0; in doCompareCodePointOrder()
669 …int32_t diff = uprv_strCompare(getArrayStart() + start, length, srcChars + srcStart, srcLength, FA… in doCompareCodePointOrder()
896 int32_t srcLength, in indexOf() argument
900 if(isBogus() || srcChars == 0 || srcStart < 0 || srcLength == 0) { in indexOf()
905 if(srcLength < 0 && srcChars[srcStart] == 0) { in indexOf()
914 const UChar *match = u_strFindFirst(array + start, length, srcChars + srcStart, srcLength); in indexOf()
960 int32_t srcLength, in lastIndexOf() argument
964 if(isBogus() || srcChars == 0 || srcStart < 0 || srcLength == 0) { in lastIndexOf()
969 if(srcLength < 0 && srcChars[srcStart] == 0) { in lastIndexOf()
978 const UChar *match = u_strFindLast(array + start, length, srcChars + srcStart, srcLength); in lastIndexOf()
1208 int32_t srcLength) in doReplace() argument
1212 src.pinIndices(srcStart, srcLength); in doReplace()
1216 return doReplace(start, length, src.getArrayStart(), srcStart, srcLength); in doReplace()
1228 int32_t srcLength) in doReplace() argument
1237 if((fFlags&kBufferIsReadonly) && srcLength == 0) { in doReplace()
1257 srcStart = srcLength = 0; in doReplace()
1258 } else if(srcLength < 0) { in doReplace()
1260 srcLength = u_strlen(srcChars + srcStart); in doReplace()
1268 newLength = oldLength + srcLength; in doReplace()
1279 us_arrayCopy(srcChars, srcStart, oldArray, oldLength, srcLength); in doReplace()
1292 newLength = oldLength - length + srcLength; in doReplace()
1323 newArray, start + srcLength, in doReplace()
1325 } else if(length != srcLength) { in doReplace()
1328 newArray, start + srcLength, in doReplace()
1333 us_arrayCopy(srcChars, srcStart, newArray, start, srcLength); in doReplace()