Lines Matching refs:start
57 protected int[] getRange(int start, int end) {
58 if (start < 0 || end < 0 || start == end) {
61 mSegment[0] = start;
103 int start = offset;
104 if (start < 0) {
105 start = 0;
107 while (!mImpl.isBoundary(start)) {
108 start = mImpl.following(start);
109 if (start == BreakIterator.DONE) {
113 final int end = mImpl.following(start);
117 return getRange(start, end);
139 final int start = mImpl.preceding(end);
140 if (start == BreakIterator.DONE) {
143 return getRange(start, end);
193 int start = offset;
194 if (start < 0) {
195 start = 0;
197 while (!isLetterOrDigit(start) && !isStartBoundary(start)) {
198 start = mImpl.following(start);
199 if (start == BreakIterator.DONE) {
203 final int end = mImpl.following(start);
207 return getRange(start, end);
229 final int start = mImpl.preceding(end);
230 if (start == BreakIterator.DONE || !isStartBoundary(start)) {
233 return getRange(start, end);
274 int start = offset;
275 if (start < 0) {
276 start = 0;
278 while (start < textLength && mText.charAt(start) == '\n'
279 && !isStartBoundary(start)) {
280 start++;
282 if (start >= textLength) {
285 int end = start + 1;
289 return getRange(start, end);
311 int start = end - 1;
312 while (start > 0 && !isStartBoundary(start)) {
313 start--;
315 return getRange(start, end);