• Home
  • Raw
  • Download

Lines Matching refs:srcLength

324                              int32_t srcLength) {  in UnicodeString()  argument
326 setTo(that, srcStart, srcLength); in UnicodeString()
554 int32_t srcLength = src.length(); in copyFrom() local
555 if(allocate(srcLength)) { in copyFrom()
556 u_memcpy(getArrayStart(), src.getArrayStart(), srcLength); in copyFrom()
557 setLength(srcLength); in copyFrom()
670 int32_t srcLength) const in doCompare()
695 if(srcLength < 0) { in doCompare()
696 srcLength = u_strlen(srcChars + srcStart); in doCompare()
700 if(length != srcLength) { in doCompare()
701 if(length < srcLength) { in doCompare()
705 minLength = srcLength; in doCompare()
749 int32_t srcLength) const in doCompareCodePointOrder()
761 srcStart = srcLength = 0; in doCompareCodePointOrder()
764 …ArrayStart() + start, length, (srcChars!=NULL)?(srcChars + srcStart):NULL, srcLength, FALSE, TRUE); in doCompareCodePointOrder()
1028 int32_t srcLength, in indexOf() argument
1032 if(isBogus() || srcChars == 0 || srcStart < 0 || srcLength == 0) { in indexOf()
1037 if(srcLength < 0 && srcChars[srcStart] == 0) { in indexOf()
1046 const UChar *match = u_strFindFirst(array + start, length, srcChars + srcStart, srcLength); in indexOf()
1092 int32_t srcLength, in lastIndexOf() argument
1096 if(isBogus() || srcChars == 0 || srcStart < 0 || srcLength == 0) { in lastIndexOf()
1101 if(srcLength < 0 && srcChars[srcStart] == 0) { in lastIndexOf()
1110 const UChar *match = u_strFindLast(array + start, length, srcChars + srcStart, srcLength); in lastIndexOf()
1402 int32_t srcLength) in doReplace() argument
1405 src.pinIndices(srcStart, srcLength); in doReplace()
1409 return doReplace(start, length, src.getArrayStart(), srcStart, srcLength); in doReplace()
1417 int32_t srcLength) in doReplace() argument
1426 if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) { in doReplace()
1446 return doAppend(srcChars, srcStart, srcLength); in doReplace()
1450 srcLength = 0; in doReplace()
1455 if (srcLength < 0) { in doReplace()
1457 srcLength = u_strlen(srcChars); in doReplace()
1467 if(srcLength > (INT32_MAX - newLength)) { in doReplace()
1471 newLength += srcLength; in doReplace()
1476 oldArray < srcChars + srcLength && in doReplace()
1479 UnicodeString copy(srcChars, srcLength); in doReplace()
1484 return doReplace(start, length, copy.getArrayStart(), 0, srcLength); in doReplace()
1512 newArray, start + srcLength, in doReplace()
1514 } else if(length != srcLength) { in doReplace()
1517 newArray, start + srcLength, in doReplace()
1522 us_arrayCopy(srcChars, 0, newArray, start, srcLength); in doReplace()
1539 UnicodeString::doAppend(const UnicodeString& src, int32_t srcStart, int32_t srcLength) { in doAppend() argument
1540 if(srcLength == 0) { in doAppend()
1545 src.pinIndices(srcStart, srcLength); in doAppend()
1546 return doAppend(src.getArrayStart(), srcStart, srcLength); in doAppend()
1550 UnicodeString::doAppend(const UChar *srcChars, int32_t srcStart, int32_t srcLength) { in doAppend() argument
1551 if(!isWritable() || srcLength == 0 || srcChars == NULL) { in doAppend()
1559 if(srcLength < 0) { in doAppend()
1561 if((srcLength = u_strlen(srcChars)) == 0) { in doAppend()
1567 int32_t newLength = oldLength + srcLength; in doAppend()
1572 oldArray < srcChars + srcLength && in doAppend()
1575 UnicodeString copy(srcChars, srcLength); in doAppend()
1580 return doAppend(copy.getArrayStart(), 0, srcLength); in doAppend()
1595 us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength); in doAppend()