for (pos = p0; pos < s.getEndIndex(); pos++)
for (pos = p0; pos < s.count; pos++)
  public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0,                                              int x, TabExpander te, int p0,                                              boolean round)  {    // At the end of the for loop, this holds the requested model location    int pos;    int currentX = x0;    for (pos = p0; pos < s.getEndIndex(); pos++)      {        char nextChar = s.array[pos];        if (nextChar == 0)          {            if (! round)              pos--;            break;          }        if (nextChar != '\n')          currentX += fm.charWidth(nextChar);        else          {            if (te == null)              currentX += fm.charWidth(' ');            else              currentX = (int) te.nextTabStop(currentX, pos);          }        if (currentX >= x)          {            if (! round)              pos--;            break;          }      }    return pos;  }