• Home
  • Raw
  • Download

Lines Matching refs:srcLength

324                              int32_t srcLength) {  in UnicodeString()  argument
326 setTo(that, srcStart, srcLength); in UnicodeString()
526 int32_t srcLength = src.length(); in copyFrom() local
527 if(allocate(srcLength)) { in copyFrom()
528 uprv_memcpy(getArrayStart(), src.getArrayStart(), srcLength * U_SIZEOF_UCHAR); in copyFrom()
529 setLength(srcLength); in copyFrom()
641 int32_t srcLength) const in doCompare()
666 if(srcLength < 0) { in doCompare()
667 srcLength = u_strlen(srcChars + srcStart); in doCompare()
671 if(length != srcLength) { in doCompare()
672 if(length < srcLength) { in doCompare()
676 minLength = srcLength; in doCompare()
720 int32_t srcLength) const in doCompareCodePointOrder()
732 srcStart = srcLength = 0; in doCompareCodePointOrder()
735 …ArrayStart() + start, length, (srcChars!=NULL)?(srcChars + srcStart):NULL, srcLength, FALSE, TRUE); in doCompareCodePointOrder()
999 int32_t srcLength, in indexOf() argument
1003 if(isBogus() || srcChars == 0 || srcStart < 0 || srcLength == 0) { in indexOf()
1008 if(srcLength < 0 && srcChars[srcStart] == 0) { in indexOf()
1017 const UChar *match = u_strFindFirst(array + start, length, srcChars + srcStart, srcLength); in indexOf()
1063 int32_t srcLength, in lastIndexOf() argument
1067 if(isBogus() || srcChars == 0 || srcStart < 0 || srcLength == 0) { in lastIndexOf()
1072 if(srcLength < 0 && srcChars[srcStart] == 0) { in lastIndexOf()
1081 const UChar *match = u_strFindLast(array + start, length, srcChars + srcStart, srcLength); in lastIndexOf()
1372 int32_t srcLength) in doReplace() argument
1375 src.pinIndices(srcStart, srcLength); in doReplace()
1379 return doReplace(start, length, src.getArrayStart(), srcStart, srcLength); in doReplace()
1387 int32_t srcLength) in doReplace() argument
1396 if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) { in doReplace()
1416 return doAppend(srcChars, srcStart, srcLength); in doReplace()
1420 srcStart = srcLength = 0; in doReplace()
1421 } else if(srcLength < 0) { in doReplace()
1423 srcLength = u_strlen(srcChars + srcStart); in doReplace()
1430 int32_t newLength = oldLength - length + srcLength; in doReplace()
1460 newArray, start + srcLength, in doReplace()
1462 } else if(length != srcLength) { in doReplace()
1465 newArray, start + srcLength, in doReplace()
1470 us_arrayCopy(srcChars, srcStart, newArray, start, srcLength); in doReplace()
1487 UnicodeString::doAppend(const UnicodeString& src, int32_t srcStart, int32_t srcLength) { in doAppend() argument
1488 if(srcLength == 0) { in doAppend()
1493 src.pinIndices(srcStart, srcLength); in doAppend()
1494 return doAppend(src.getArrayStart(), srcStart, srcLength); in doAppend()
1498 UnicodeString::doAppend(const UChar *srcChars, int32_t srcStart, int32_t srcLength) { in doAppend() argument
1499 if(!isWritable() || srcLength == 0 || srcChars == NULL) { in doAppend()
1503 if(srcLength < 0) { in doAppend()
1505 if((srcLength = u_strlen(srcChars + srcStart)) == 0) { in doAppend()
1511 int32_t newLength = oldLength + srcLength; in doAppend()
1524 us_arrayCopy(srcChars, srcStart, newArray, oldLength, srcLength); in doAppend()