Lines Matching refs:newCaret
452 int runIndex, runLevel = 0, runStart = lineStart, runLimit = lineEnd, newCaret = -1;
517 newCaret = getOffsetBeforeAfter(runIndex, runStart, runLimit,
521 if (newCaret != (advance ? runLimit : runStart)) {
522 return newCaret;
528 // If newCaret is -1, we're starting at a run boundary and crossing
548 if (newCaret == -1) {
549 newCaret = getOffsetBeforeAfter(otherRunIndex, otherRunStart,
552 if (newCaret == (advance ? otherRunLimit : otherRunStart)) {
565 newCaret = advance ? otherRunStart : otherRunLimit;
570 if (newCaret == -1) {
574 newCaret = advance ? mLen + 1 : -1;
586 if (newCaret <= lineEnd) {
587 newCaret = advance ? lineEnd : lineStart;
592 return newCaret;