Lines Matching refs:start

98     public static void getChars(CharSequence s, int start, int end,
103 ((String) s).getChars(start, end, dest, destoff);
105 ((StringBuffer) s).getChars(start, end, dest, destoff);
107 ((StringBuilder) s).getChars(start, end, dest, destoff);
109 ((GetChars) s).getChars(start, end, dest, destoff);
111 for (int i = start; i < end; i++)
120 public static int indexOf(CharSequence s, char ch, int start) {
124 return ((String) s).indexOf(ch, start);
126 return indexOf(s, ch, start, s.length());
129 public static int indexOf(CharSequence s, char ch, int start, int end) {
137 while (start < end) {
138 int segend = start + INDEX_INCREMENT;
142 getChars(s, start, segend, temp, 0);
144 int count = segend - start;
148 return i + start;
152 start = segend;
159 for (int i = start; i < end; i++)
180 int start, int last) {
195 while (start < end) {
197 if (segstart < start)
198 segstart = start;
217 for (int i = end - 1; i >= start; i--)
228 public static int indexOf(CharSequence s, CharSequence needle, int start) {
229 return indexOf(s, needle, start, s.length());
233 int start, int end) {
236 return start;
241 start = indexOf(s, c, start);
242 if (start > end - nlen) {
246 if (start < 0) {
250 if (regionMatches(s, start, needle, 0, nlen)) {
251 return start;
254 start++;
291 public static String substring(CharSequence source, int start, int end) {
293 return ((String) source).substring(start, end);
295 return ((StringBuilder) source).substring(start, end);
297 return ((StringBuffer) source).substring(start, end);
299 char[] temp = obtain(end - start);
300 getChars(source, start, end, temp, 0);
301 String ret = new String(temp, 0, end - start);
514 * spaces and ASCII control characters were trimmed from the start and end,
520 int start = 0;
521 while (start < len && s.charAt(start) <= ' ') {
522 start++;
526 while (end > start && s.charAt(end - 1) <= ' ') {
530 return end - start;
564 public static CharSequence getReverse(CharSequence source, int start, int end) {
565 return new Reverser(source, start, end);
571 public Reverser(CharSequence source, int start, int end) {
573 mStart = start;
581 public CharSequence subSequence(int start, int end) {
582 char[] buf = new char[end - start];
584 getChars(start, end, buf, 0);
598 public void getChars(int start, int end, char[] dest, int destoff) {
599 TextUtils.getChars(mSource, start + mStart, end + mStart,
601 AndroidCharacter.mirror(dest, 0, end - start);
603 int len = end - start;
604 int n = (end - start) / 2;
919 int start = tb.getSpanStart(sources[i]);
922 if (start >= 0) {
923 tb.replace(start, end, destinations[i]);
1016 int start = ((Spanned) text).getSpanStart(spans[i]);
1019 if (start < offset && end > offset)
1020 offset = start;
1053 int start = ((Spanned) text).getSpanStart(spans[i]);
1056 if (start < offset && end > offset)
1069 * Copies the spans from the region <code>start...end</code> in
1071 * <code>destoff...destoff+end-start</code> in <code>dest</code>.
1072 * Spans in <code>source</code> that begin before <code>start</code>
1074 * as if they began at <code>start</code> or ended at <code>end</code>.
1079 public static void copySpansFrom(Spanned source, int start, int end,
1086 Object[] spans = source.getSpans(start, end, kind);
1093 if (st < start)
1094 st = start;
1098 dest.setSpan(spans[i], st - start + destoff, en - start + destoff,
1188 public void ellipsized(int start, int end);
1212 * report the start and end of the ellipsized range. TextDirection
1234 * report the start and end of the ellipsized range.
1532 static boolean doesNotNeedBidi(char[] text, int start, int len) {
1533 final int end = start + len;
1534 for (int i = start; i < end; i++) {
1807 // Or start of word if we are that style.
1814 // There must be a space if not the start of paragraph.
1912 final int start = spanned.getSpanStart(span);
1915 if (start == end) {
1944 public static long packRangeInLong(int start, int end) {
1945 return (((long) start) << 32) | end;
1949 * Get the start value from a range packed in a long by {@link #packRangeInLong(int, int)}
2029 * Prepends {@code start} and appends {@code end} to a given {@link StringBuilder}
2033 public static void wrap(StringBuilder builder, String start, String end) {
2034 builder.insert(0, start);