Lines Matching refs:endIndex
211 public int indexOf(int ch, int beginIndex, int endIndex) {
215 if (endIndex > this.len) {
216 endIndex = this.len;
218 if (beginIndex > endIndex) {
221 for (int i = beginIndex; i < endIndex; i++) {
233 public String substring(int beginIndex, int endIndex) {
237 if (endIndex > this.len) {
240 if (beginIndex > endIndex) {
243 return new String(this.buffer, beginIndex, endIndex - beginIndex);
246 public String substringTrimmed(int beginIndex, int endIndex) {
250 if (endIndex > this.len) {
253 if (beginIndex > endIndex) {
256 while (beginIndex < endIndex && HTTP.isWhitespace(this.buffer[beginIndex])) {
259 while (endIndex > beginIndex && HTTP.isWhitespace(this.buffer[endIndex - 1])) {
260 endIndex--;
262 return new String(this.buffer, beginIndex, endIndex - beginIndex);