/** * Returns <code>true</code> if the given sequence into the underlying text * represents whitespace, but not a delimiter, <code>false</code> otherwise. * * @param offset the offset * @param exclusiveEnd the end offset * @return <code>true</code> if the given range is whitespace */ private boolean isWhitespace(int offset, int exclusiveEnd) { if (exclusiveEnd == DONE || offset == DONE) return false; Assert.isTrue(offset >= 0); Assert.isTrue(exclusiveEnd <= getText().getEndIndex()); Assert.isTrue(exclusiveEnd > offset); CharSequence seq= fIterator.fText; while (offset < exclusiveEnd) { char ch= seq.charAt(offset); if (!Character.isWhitespace(ch)) return false; if (ch == '\n' || ch == '\r') return false; offset++; } return true; }
/** * Returns <code>true</code> if the given sequence into the underlying text * represents whitespace, but not a delimiter, <code>false</code> otherwise. * * @param offset the offset * @param exclusiveEnd the end offset * @return <code>true</code> if the given range is whitespace */ private boolean isWhitespace(int offset, int exclusiveEnd) { if (exclusiveEnd == DONE || offset == DONE) return false; Assert.isTrue(offset >= 0); Assert.isTrue(exclusiveEnd <= getText().getEndIndex()); Assert.isTrue(exclusiveEnd > offset); CharSequence seq= fIterator.fText; while (offset < exclusiveEnd) { char ch= seq.charAt(offset); if (!Character.isWhitespace(ch)) return false; if (ch == '\n' || ch == '\r') return false; offset++; } return true; }
/** * Returns <code>true</code> if the given sequence into the underlying text * represents whitespace, but not a delimiter, <code>false</code> otherwise. * * @param offset the offset * @param exclusiveEnd the end offset * @return <code>true</code> if the given range is whitespace */ private boolean isWhitespace(int offset, int exclusiveEnd) { if (exclusiveEnd == DONE || offset == DONE) return false; Assert.isTrue(offset >= 0); Assert.isTrue(exclusiveEnd <= getText().getEndIndex()); Assert.isTrue(exclusiveEnd > offset); CharSequence seq= fIterator.fText; while (offset < exclusiveEnd) { char ch= seq.charAt(offset); if (!Character.isWhitespace(ch)) return false; if (ch == '\n' || ch == '\r') return false; offset++; } return true; }
/** * Returns <code>true</code> if the given sequence into the underlying text * represents a delimiter, <code>false</code> otherwise. * * @param offset the offset * @param exclusiveEnd the end offset * @return <code>true</code> if the given range is a delimiter */ private boolean isDelimiter(int offset, int exclusiveEnd) { if (exclusiveEnd == DONE || offset == DONE) return false; Assert.isTrue(offset >= 0); Assert.isTrue(exclusiveEnd <= getText().getEndIndex()); Assert.isTrue(exclusiveEnd > offset); CharSequence seq= fIterator.fText; while (offset < exclusiveEnd) { char ch= seq.charAt(offset); if (ch != '\n' && ch != '\r') return false; offset++; } return true; }
/** * Returns <code>true</code> if the given sequence into the underlying text * represents a delimiter, <code>false</code> otherwise. * * @param offset the offset * @param exclusiveEnd the end offset * @return <code>true</code> if the given range is a delimiter */ private boolean isDelimiter(int offset, int exclusiveEnd) { if (exclusiveEnd == DONE || offset == DONE) return false; Assert.isTrue(offset >= 0); Assert.isTrue(exclusiveEnd <= getText().getEndIndex()); Assert.isTrue(exclusiveEnd > offset); CharSequence seq= fIterator.fText; while (offset < exclusiveEnd) { char ch= seq.charAt(offset); if (ch != '\n' && ch != '\r') return false; offset++; } return true; }
/** * Returns <code>true</code> if the given sequence into the underlying text * represents a delimiter, <code>false</code> otherwise. * * @param offset the offset * @param exclusiveEnd the end offset * @return <code>true</code> if the given range is a delimiter */ private boolean isDelimiter(int offset, int exclusiveEnd) { if (exclusiveEnd == DONE || offset == DONE) return false; Assert.isTrue(offset >= 0); Assert.isTrue(exclusiveEnd <= getText().getEndIndex()); Assert.isTrue(exclusiveEnd > offset); CharSequence seq= fIterator.fText; while (offset < exclusiveEnd) { char ch= seq.charAt(offset); if (ch != '\n' && ch != '\r') return false; offset++; } return true; }