Home | History | Annotate | Download | only in unicode

Lines Matching refs:start

340    * [<TT>start</TT>, <TT>start + length</TT>) with the characters
342 * (The parameters "start" and "length" are not applied to the other text "text".)
343 * @param start the offset at which the compare operation begins
353 inline int8_t compare(int32_t start,
359 * [<TT>start</TT>, <TT>start + length</TT>) with the characters
362 * @param start the offset at which the compare operation begins
365 * @param srcStart the offset into <TT>srcText</TT> to start comparison
374 inline int8_t compare(int32_t start,
397 * [<TT>start</TT>, <TT>start + length</TT>) with the first
399 * @param start the offset at which the compare operation begins
409 inline int8_t compare(int32_t start,
415 * [<TT>start</TT>, <TT>start + length</TT>) with the characters
418 * @param start the offset at which the compare operation begins
421 * @param srcStart the offset into <TT>srcChars</TT> to start comparison
430 inline int8_t compare(int32_t start,
438 * [<TT>start</TT>, <TT>limit</TT>) with the characters
441 * @param start the offset at which the compare operation begins
444 * @param srcStart the offset into <TT>srcText</TT> to start comparison
453 inline int8_t compareBetween(int32_t start,
489 * @param start The start offset in this string at which the compare operation begins.
497 inline int8_t compareCodePointOrder(int32_t start,
512 * @param start The start offset in this string at which the compare operation begins.
515 * @param srcStart The start offset in that string at which the compare operation begins.
522 inline int8_t compareCodePointOrder(int32_t start,
560 * @param start The start offset in this string at which the compare operation begins.
568 inline int8_t compareCodePointOrder(int32_t start,
583 * @param start The start offset in this string at which the compare operation begins.
586 * @param srcStart The start offset in that string at which the compare operation begins.
593 inline int8_t compareCodePointOrder(int32_t start,
610 * @param start The start offset in this string at which the compare operation begins.
613 * @param srcStart The start offset in that string at which the compare operation begins.
620 inline int8_t compareCodePointOrderBetween(int32_t start,
650 * @param start The start offset in this string at which the compare operation begins.
666 inline int8_t caseCompare(int32_t start,
675 * @param start The start offset in this string at which the compare operation begins.
678 * @param srcStart The start offset in that string at which the compare operation begins.
693 inline int8_t caseCompare(int32_t start,
727 * @param start The start offset in this string at which the compare operation begins.
743 start,
752 * @param start The start offset in this string at which the compare operation begins.
755 * @param srcStart The start offset in that string at which the compare operation begins.
770 inline int8_t caseCompare(int32_t start,
781 * @param start The start offset in this string at which the compare operation begins.
784 * @param srcStart The start offset in that string at which the compare operation begins.
799 inline int8_t caseCompareBetween(int32_t start,
819 * @param srcStart the offset into <TT>srcText</TT> to start matching
844 * @param srcStart the offset into <TT>srcText</TT> to start matching
866 * @param srcStart the offset into <TT>srcText</TT> to start matching
891 * @param srcStart the offset into <TT>srcText</TT> to start matching
908 * @return The offset into this of the start of <TT>text</TT>,
916 * starting at offset <TT>start</TT>, using bitwise comparison.
918 * @param start The offset at which searching will start.
919 * @return The offset into this of the start of <TT>text</TT>,
924 int32_t start) const;
928 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
931 * @param start The offset at which searching will start.
933 * @return The offset into this of the start of <TT>text</TT>,
938 int32_t start,
943 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
949 * to start matching
951 * @param start the offset into this at which to start matching
953 * @return The offset into this of the start of <TT>text</TT>,
960 int32_t start,
966 * starting at offset <TT>start</TT>, using bitwise comparison.
969 * @param start the offset into this at which to start matching
970 * @return The offset into this of the start of <TT>text</TT>,
976 int32_t start) const;
980 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
984 * @param start The offset at which searching will start.
986 * @return The offset into this of the start of <TT>srcChars</TT>,
992 int32_t start,
997 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
1003 * to start matching
1005 * @param start the offset into this at which to start matching
1007 * @return The offset into this of the start of <TT>text</TT>,
1014 int32_t start,
1038 * starting at offset <TT>start</TT>, using bitwise comparison.
1040 * @param start The offset at which searching will start.
1045 int32_t start) const;
1049 * starting at offset <TT>start</TT>, using bitwise comparison.
1052 * @param start The offset at which searching will start.
1057 int32_t start) const;
1061 * in the range [<TT>start</TT>, <TT>start + length</TT>),
1064 * @param start the offset into this at which to start matching
1070 int32_t start,
1075 * in the range [<TT>start</TT>, <TT>start + length</TT>),
1079 * @param start the offset into this at which to start matching
1085 int32_t start,
1092 * @return The offset into this of the start of <TT>text</TT>,
1100 * starting at offset <TT>start</TT>, using bitwise comparison.
1102 * @param start The offset at which searching will start.
1103 * @return The offset into this of the start of <TT>text</TT>,
1108 int32_t start) const;
1112 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
1115 * @param start The offset at which searching will start.
1117 * @return The offset into this of the start of <TT>text</TT>,
1122 int32_t start,
1127 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
1133 * to start matching
1135 * @param start the offset into this at which to start matching
1137 * @return The offset into this of the start of <TT>text</TT>,
1144 int32_t start,
1149 * starting at offset <TT>start</TT>, using bitwise comparison.
1152 * @param start the offset into this at which to start matching
1153 * @return The offset into this of the start of <TT>text</TT>,
1159 int32_t start) const;
1163 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
1167 * @param startstart.
1169 * @return The offset into this of the start of <TT>srcChars</TT>,
1175 int32_t start,
1180 * [<TT>start</TT>, <TT>start + length</TT>) of the characters
1186 * to start matching
1188 * @param start the offset into this at which to start matching
1190 * @return The offset into this of the start of <TT>text</TT>,
1197 int32_t start,
1221 * starting at offset <TT>start</TT>, using bitwise comparison.
1223 * @param start The offset at which searching will start.
1228 int32_t start) const;
1232 * starting at offset <TT>start</TT>, using bitwise comparison.
1235 * @param start The offset at which searching will start.
1240 int32_t start) const;
1244 * in the range [<TT>start</TT>, <TT>start + length</TT>),
1247 * @param start the offset into this at which to start matching
1253 int32_t start,
1258 * in the range [<TT>start</TT>, <TT>start + length</TT>),
1262 * @param start the offset into this at which to start matching
1268 int32_t start,
1351 * If delta<0 then the index is moved backward (toward the start of the string).
1378 * // go to the 3rd code point from the start of s (0-based)
1397 * [<tt>start</tt>, <tt>start + length</tt>) into the array <tt>dst</tt>,
1402 * @param start offset of first character which will be copied into the array
1410 inline void extract(int32_t start,
1442 * [<tt>start</tt>, <tt>start + length</tt>) into the UnicodeString
1444 * @param start offset of first character which will be copied
1450 inline void extract(int32_t start,
1455 * Copy the characters in the range [<tt>start</tt>, <tt>limit</tt>)
1457 * @param start offset of first character which will be copied into the array
1460 * must be at least (<tt>dstStart + (limit - start)</tt>).
1465 inline void extractBetween(int32_t start,
1471 * Copy the characters in the range [<tt>start</tt>, <tt>limit</tt>)
1473 * @param start offset of first character which will be copied
1479 virtual void extractBetween(int32_t start,
1485 * [<tt>start</TT>, <tt>start + length</TT>) into an array of characters.
1495 * @param start offset of first character which will be copied
1504 int32_t extract(int32_t start,
1514 * [<tt>start</TT>, <tt>start + length</TT>) into an array of characters
1522 * @param start offset of first character which will be copied
1531 int32_t extract(int32_t start,
1542 * [<tt>start</TT>, <tt>start + length</TT>) into an array of characters
1547 * extract(int32_t start, int32_t length, char *target, int32_t targetCapacity, enum EInvariant inv) const
1551 * @param start offset of first character which will be copied
1565 inline int32_t extract(int32_t start,
1572 * [<tt>start</TT>, <tt>start + length</TT>) into an array of characters
1581 * extract(int32_t start, int32_t length, char *target, int32_t targetCapacity, enum EInvariant inv) const
1585 * @param start offset of first character which will be copied
1599 int32_t extract(int32_t start,
1636 * @param start offset of the first character visible in the substring
1641 UnicodeString tempSubString(int32_t start=0, int32_t length=INT32_MAX) const;
1645 * Same as tempSubString(start, length) except that the substring range
1646 * is specified as a (start, limit) pair (with an exclusive limit index)
1647 * rather than a (start, length) pair.
1648 * @param start offset of the first character visible in the substring
1653 inline UnicodeString tempSubStringBetween(int32_t start, int32_t limit=INT32_MAX) const;
1727 * @param start the index of the first code unit to check
1734 countChar32(int32_t start=0, int32_t length=INT32_MAX) const;
1744 * Logically equivalent to (countChar32(start, length)>number).
1747 * @param start the index of the first code unit to check (0 for the entire string)
1749 * (use INT32_MAX for the entire string; remember that start/length
1760 hasMoreChar32Than(int32_t start, int32_t length, int32_t number) const;
2069 * UnicodeString object at offset <TT>start</TT>. <TT>srcText</TT>
2096 * <TT>start</TT>. <TT>srcChars</TT> is not modified.
2111 * at offset <TT>start</TT>. <TT>srcChars</TT> is not modified.
2143 * object at offset <TT>start</TT>. <TT>srcText</TT> is not modified.
2144 * @param start the offset where the insertion begins
2153 inline UnicodeString& insert(int32_t start,
2160 * at offset <TT>start</TT>. <TT>srcText</TT> is not modified.
2161 * @param start the offset where the insertion begins
2166 inline UnicodeString& insert(int32_t start,
2172 * object at offset <TT>start</TT>. <TT>srcChars</TT> is not modified.
2173 * @param start the offset at which the insertion begins
2182 inline UnicodeString& insert(int32_t start,
2189 * at offset <TT>start</TT>. <TT>srcChars</TT> is not modified.
2190 * @param start the offset where the insertion begins
2196 inline UnicodeString& insert(int32_t start,
2202 * offset <TT>start</TT>.
2203 * @param start the offset at which the insertion occurs
2208 inline UnicodeString& insert(int32_t start,
2213 * offset <TT>start</TT>.
2214 * @param start the offset at which the insertion occurs
2219 inline UnicodeString& insert(int32_t start,
2227 * [<TT>start</TT>, <TT>start + length</TT>) with the characters in
2231 * @param start the offset at which the replace operation begins
2233 * <TT>start + length</TT> is not modified.
2242 UnicodeString& replace(int32_t start,
2250 * [<TT>start</TT>, <TT>start + length</TT>)
2253 * @param start the offset at which the replace operation begins
2255 * <TT>start + length</TT> is not modified.
2260 UnicodeString& replace(int32_t start,
2266 * [<TT>start</TT>, <TT>start + length</TT>) with the characters in
2270 * @param start the offset at which the replace operation begins
2272 * <TT>start + length</TT> is not modified.
2281 UnicodeString& replace(int32_t start,
2289 * [<TT>start</TT>, <TT>start + length</TT>) with the characters in
2291 * @param start the offset at which the replace operation begins
2293 * <TT>start + length</TT> is not modified.
2299 inline UnicodeString& replace(int32_t start,
2306 * [<TT>start</TT>, <TT>start + length</TT>) with the code unit
2308 * @param start the offset at which the replace operation begins
2310 * <TT>start + length</TT> is not modified.
2315 inline UnicodeString& replace(int32_t start,
2321 * [<TT>start</TT>, <TT>start + length</TT>) with the code point
2323 * @param start the offset at which the replace operation begins
2325 * <TT>start + length</TT> is not modified.
2330 UnicodeString& replace(int32_t start, int32_t length, UChar32 srcChar);
2333 * Replace the characters in the range [<TT>start</TT>, <TT>limit</TT>)
2335 * @param start the offset at which the replace operation begins
2341 inline UnicodeString& replaceBetween(int32_t start,
2346 * Replace the characters in the range [<TT>start</TT>, <TT>limit</TT>)
2349 * @param start the offset at which the replace operation begins
2359 inline UnicodeString& replaceBetween(int32_t start,
2367 * @param start the beginning index, inclusive; <code>0 <= start
2369 * @param limit the ending index, exclusive; <code>start <= limit
2371 * @param text the text to replace characters <code>start</code>
2375 virtual void handleReplaceBetween(int32_t start,
2391 * @param start the beginning index, inclusive; <code>0 <= start <=
2393 * @param limit the ending index, exclusive; <code>start <= limit <=
2396 * <code>start..limit-1</code> will be copied to <code>dest</code>.
2397 * Implementations of this method may assume that <code>dest <= start ||
2401 virtual void copy(int32_t start, int32_t limit, int32_t dest);
2419 * in the range [<TT>start</TT>, <TT>start + length</TT>).
2420 * @param start the start of the range in which replace will performed
2427 inline UnicodeString& findAndReplace(int32_t start,
2437 * in the range [<TT>start</TT>, <TT>start + length</TT>).
2438 * @param start the start of the range in which replace will performed
2441 * @param oldStart the start of the search range in <TT>oldText</TT>
2444 * @param newStart the start of the replacement range in <TT>newText</TT>
2449 UnicodeString& findAndReplace(int32_t start,
2470 * [<TT>start</TT>, <TT>start + length</TT>) from the UnicodeString object.
2471 * @param start the offset of the first character to remove
2476 inline UnicodeString& remove(int32_t start,
2481 * [<TT>start</TT>, <TT>limit</TT>) from the UnicodeString object.
2482 * @param start the offset of the first character to remove
2487 inline UnicodeString& removeBetween(int32_t start,
2492 * [<code>start</code>, <code>limit</code>) from the UnicodeString object.
2493 * Removes characters before <code>start</code> and at and after <code>limit</code>.
2494 * @param start the offset of the first character to retain
2499 inline UnicodeString &retainBetween(int32_t start, int32_t limit = INT32_MAX);
2504 * Pad the start of this UnicodeString with the character <TT>padChar</TT>.
2557 * Reverse the range [<TT>start</TT>, <TT>start + length</TT>) in
2559 * @param start the start of the range to reverse
2564 inline UnicodeString& reverse(int32_t start,
3100 * @param srcStart The offset into <tt>src</tt> at which to start copying.
3108 * @param srcStart The offset into <tt>src</tt> at which to start copying.
3269 // rather than having start+length on every method,
3272 toUTF8(int32_t start, int32_t len,
3282 doCompare(int32_t start,
3288 int8_t doCompare(int32_t start,
3295 doCompareCodePointOrder(int32_t start,
3301 int8_t doCompareCodePointOrder(int32_t start,
3308 doCaseCompare(int32_t start,
3316 doCaseCompare(int32_t start,
3324 int32_t start,
3328 int32_t start,
3332 int32_t start,
3336 int32_t start,
3339 void doExtract(int32_t start,
3344 inline void doExtract(int32_t start,
3350 UnicodeString& doReplace(int32_t start,
3356 UnicodeString& doReplace(int32_t start,
3362 UnicodeString& doReverse(int32_t start,
3368 // get pointer to start of array
3400 // Pin start and limit to acceptable values.
3401 inline void pinIndex(int32_t& start) const;
3402 inline void pinIndices(int32_t& start,
3408 int32_t doExtract(int32_t start, int32_t length,
3570 UnicodeString::pinIndex(int32_t& start) const
3573 if(start < 0) {
3574 start = 0;
3575 } else if(start > length()) {
3576 start = length();
3581 UnicodeString::pinIndices(int32_t& start,
3586 if(start < 0) {
3587 start = 0;
3588 } else if(start > len) {
3589 start = len;
3593 } else if(_length > (len - start)) {
3594 _length = (len - start);
3662 UnicodeString::doCompare(int32_t start,
3672 return doCompare(start, thisLength, srcText.getArrayStart(), srcStart, srcLength);
3712 UnicodeString::compare(int32_t start,
3715 { return doCompare(start, _length, srcText, 0, srcText.length()); }
3723 UnicodeString::compare(int32_t start,
3728 { return doCompare(start, _length, srcText, srcStart, srcLength); }
3731 UnicodeString::compare(int32_t start,
3734 { return doCompare(start, _length, srcChars, 0, _length); }
3737 UnicodeString::compare(int32_t start,
3742 { return doCompare(start, _length, srcChars, srcStart, srcLength); }
3745 UnicodeString::compareBetween(int32_t start,
3750 { return doCompare(start, limit - start,
3754 UnicodeString::doCompareCodePointOrder(int32_t start,
3764 return doCompareCodePointOrder(start, thisLength, srcText.getArrayStart(), srcStart, srcLength);
3773 UnicodeString::compareCodePointOrder(int32_t start,
3776 { return doCompareCodePointOrder(start, _length, srcText, 0, srcText.length()); }
3784 UnicodeString::compareCodePointOrder(int32_t start,
3789 { return doCompareCodePointOrder(start, _length, srcText, srcStart, srcLength); }
3792 UnicodeString::compareCodePointOrder(int32_t start,
3795 { return doCompareCodePointOrder(start, _length, srcChars, 0, _length); }
3798 start,
3803 { return doCompareCodePointOrder(start, _length, srcChars, srcStart, srcLength); }
3806 UnicodeString::compareCodePointOrderBetween(int32_t start,
3811 { return doCompareCodePointOrder(start, limit - start,
3815 UnicodeString::doCaseCompare(int32_t start,
3826 return doCaseCompare(start, thisLength, srcText.getArrayStart(), srcStart, srcLength, options);
3836 UnicodeString::caseCompare(int32_t start,
3840 return doCaseCompare(start, _length, srcText, 0, srcText.length(), options);
3851 UnicodeString::caseCompare(int32_t start,
3857 return doCaseCompare(start, _length, srcText, srcStart, srcLength, options);
3861 UnicodeString::caseCompare(int32_t start,
3865 return doCaseCompare(start, _length, srcChars, 0, _length, options);
3869 UnicodeString::caseCompare(int32_t start,
3875 return doCaseCompare(start, _length, srcChars, srcStart, srcLength, options);
3879 UnicodeString::caseCompareBetween(int32_t start,
3885 return doCaseCompare(start, limit - start, srcText, srcStart, srcLimit - srcStart, options);
3892 int32_t start,
3898 return indexOf(srcText.getArrayStart(), srcStart, srcLength, start, _length);
3910 int32_t start) const {
3911 pinIndex(start);
3912 return indexOf(text, 0, text.length(), start, length() - start);
3917 int32_t start,
3919 { return indexOf(text, 0, text.length(), start, _length); }
3924 int32_t start) const {
3925 pinIndex(start);
3926 return indexOf(srcChars, 0, srcLength, start, length() - start);
3932 int32_t start,
3934 { return indexOf(srcChars, 0, srcLength, start, _length); }
3938 int32_t start,
3940 { return doIndexOf(c, start, _length); }
3944 int32_t start,
3946 { return doIndexOf(c, start, _length); }
3958 int32_t start) const {
3959 pinIndex(start);
3960 return doIndexOf(c, start, length() - start);
3965 int32_t start) const {
3966 pinIndex(start);
3967 return indexOf(c, start, length() - start);
3973 int32_t start,
3975 { return lastIndexOf(srcChars, 0, srcLength, start, _length); }
3980 int32_t start) const {
3981 pinIndex(start);
3982 return lastIndexOf(srcChars, 0, srcLength, start, length() - start);
3989 int32_t start,
3995 return lastIndexOf(srcText.getArrayStart(), srcStart, srcLength, start, _length);
4003 int32_t start,
4005 { return lastIndexOf(text, 0, text.length(), start, _length); }
4009 int32_t start) const {
4010 pinIndex(start);
4011 return lastIndexOf(text, 0, text.length(), start, length() - start);
4020 int32_t start,
4022 { return doLastIndexOf(c, start, _length); }
4026 int32_t start,
4028 return doLastIndexOf(c, start, _length);
4042 int32_t start) const {
4043 pinIndex(start);
4044 return doLastIndexOf(c, start, length() - start);
4049 int32_t start) const {
4050 pinIndex(start);
4051 return lastIndexOf(c, start, length() - start);
4119 UnicodeString::replace(int32_t start,
4122 { return doReplace(start, _length, srcText, 0, srcText.length()); }
4125 UnicodeString::replace(int32_t start,
4130 { return doReplace(start, _length, srcText, srcStart, srcLength); }
4133 UnicodeString::replace(int32_t start,
4137 { return doReplace(start, _length, srcChars, 0, srcLength); }
4140 UnicodeString::replace(int32_t start,
4145 { return doReplace(start, _length, srcChars, srcStart, srcLength); }
4148 UnicodeString::replace(int32_t start,
4151 { return doReplace(start, _length, &srcChar, 0, 1); }
4154 UnicodeString::replaceBetween(int32_t start,
4157 { return doReplace(start, limit - start, srcText, 0, srcText.length()); }
4160 UnicodeString::replaceBetween(int32_t start,
4165 { return doReplace(start, limit - start, srcText, srcStart, srcLimit - srcStart); }
4174 UnicodeString::findAndReplace(int32_t start,
4178 { return findAndReplace(start, _length, oldText, 0, oldText.length(),
4185 UnicodeString::doExtract(int32_t start,
4188 { target.replace(0, target.length(), *this, start, _length); }
4191 UnicodeString::extract(int32_t start,
4195 { doExtract(start, _length, target, targetStart); }
4198 UnicodeString::extract(int32_t start,
4201 { doExtract(start, _length, target); }
4206 UnicodeString::extract(int32_t start,
4213 return extract(start, _length, dst, dst!=0 ? 0xffffffff : 0, codepage);
4219 UnicodeString::extractBetween(int32_t start,
4223 pinIndex(start);
4225 doExtract(start, limit - start, dst, dstStart);
4229 UnicodeString::tempSubStringBetween(int32_t start, int32_t limit) const {
4230 return tempSubString(start, limit - start);
4375 UnicodeString::insert(int32_t start,
4379 { return doReplace(start, 0, srcText, srcStart, srcLength); }
4382 UnicodeString::insert(int32_t start,
4384 { return doReplace(start, 0, srcText, 0, srcText.length()); }
4387 UnicodeString::insert(int32_t start,
4391 { return doReplace(start, 0, srcChars, srcStart, srcLength); }
4394 UnicodeString::insert(int32_t start,
4397 { return doReplace(start, 0, srcChars, 0, srcLength); }
4400 UnicodeString::insert(int32_t start,
4402 { return doReplace(start, 0, &srcChar, 0, 1); }
4405 UnicodeString::insert(int32_t start,
4407 { return replace(start, 0, srcChar); }
4423 UnicodeString::remove(int32_t start,
4426 if(start <= 0 && _length == INT32_MAX) {
4430 return doReplace(start, _length, NULL, 0, 0);
4434 UnicodeString::removeBetween(int32_t start,
4436 { return doReplace(start, limit - start, NULL, 0, 0); }
4439 UnicodeString::retainBetween(int32_t start, int32_t limit) {
4441 return doReplace(0, start, NULL, 0, 0);
4464 UnicodeString::reverse(int32_t start,
4466 { return doReverse(start, _length); }