Lines Matching defs:end

29                                           int start, int end) {
30 if (start == 0 && end == source.length())
33 mText = source.toString().substring(start, end);
40 copySpans((SpannableStringInternal) source, start, end);
42 copySpans((Spanned) source, start, end);
48 * Copies another {@link Spanned} object's spans between [start, end] into this object.
52 * @param end End index in the source object.
54 private final void copySpans(Spanned src, int start, int end) {
55 Object[] spans = src.getSpans(start, end, Object.class);
64 if (en > end)
65 en = end;
72 * Copies a {@link SpannableStringInternal} object's spans between [start, end] into this
77 * @param end End index in the source object.
79 private final void copySpans(SpannableStringInternal src, int start, int end) {
80 if (start == 0 && end == src.length()) {
93 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue;
106 if (isOutOfCopyRange(start, end, spanStart, spanEnd)) continue;
108 if (spanEnd > end) spanEnd = end;
120 * Checks if [spanStart, spanEnd] interval is excluded from [start, end].
124 private final boolean isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) {
125 if (spanStart > end || spanEnd < start) return true;
126 if (spanStart != spanEnd && start != end) {
127 if (spanStart == end || spanEnd == start) return true;
146 public final void getChars(int start, int end, char[] dest, int off) {
147 mText.getChars(start, end, dest, off);
150 /* package */ void setSpan(Object what, int start, int end, int flags) {
152 int nend = end;
154 checkRange("setSpan", start, end);
166 if (end != 0 && end != length()) {
167 char c = charAt(end - 1);
171 "PARAGRAPH span must end at paragraph boundary" +
172 " (" + end + " follows " + c + ")");
186 data[i * COLUMNS + END] = end;
208 mSpanData[mSpanCount * COLUMNS + END] = end;
385 private void sendSpanAdded(Object what, int start, int end) {
386 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class);
390 recip[i].onSpanAdded((Spannable) this, what, start, end);
394 private void sendSpanRemoved(Object what, int start, int end) {
395 SpanWatcher[] recip = getSpans(start, end, SpanWatcher.class);
399 recip[i].onSpanRemoved((Spannable) this, what, start, end);
413 private static String region(int start, int end) {
414 return "(" + start + " ... " + end + ")";
417 private void checkRange(final String operation, int start, int end) {
418 if (end < start) {
420 region(start, end) +
421 " has end before start");
426 if (start > len || end > len) {
428 region(start, end) +
432 if (start < 0 || end < 0) {
434 region(start, end) +