if (child.getStartOffset() >= pos && child.getEndOffset() < pos)
if (pos >= child.getStartOffset() && pos < child.getEndOffset())
    public int getViewIndex(int pos, Position.Bias b)    {      int index = -1;      int i = 0;      for (Iterator it = children.iterator(); it.hasNext(); i++)        {          View child = (View) it.next();          if (child.getStartOffset() >= pos              && child.getEndOffset() < pos)            {              index = i;              break;            }        }      return index;    }