Lines Matching defs:index

121   /** Return the part at the given index. */
122 public final Part getPart(int index) { return parts.get(index); }
181 --i; // visit this index again
353 int index = start;
354 while ((index < text.length()) && isDomainChar(text.charAt(index))) {
355 index += 1;
361 if (index == text.length()) {
363 } else if (text.charAt(index) == ':') {
365 String scheme = text.substring(nextChar, index);
369 } else if (text.charAt(index) == '.') {
371 while (index < text.length()) {
372 char ch = text.charAt(index);
376 index += 1;
382 String domain = text.substring(nextChar, index);
389 if ((index + 1 < text.length()) && (text.charAt(index) == ':')) {
390 char ch = text.charAt(index + 1);
392 index += 1;
393 while ((index < text.length()) &&
394 Character.isDigit(text.charAt(index))) {
395 index += 1;
406 if (index == text.length()) {
409 char ch = text.charAt(index);
413 if (index + 1 == text.length()) {
416 char ch2 = text.charAt(index + 1);
444 while ((index < text.length()) &&
445 !Character.isWhitespace(text.charAt(index))) {
446 index += 1;
450 String urlText = text.substring(start, index);
456 nextChar = index;
503 for (int index = nextChar; index < endChar; ++index) {
504 char ch = text.charAt(index);
540 /** Determines whether the given index could be a possible word break. */
541 private boolean isWordBreak(int index) {
542 return getCharClass(index - 1) != getCharClass(index);
545 /** Determines whether the given index could be a possible smiley break. */
546 private boolean isSmileyBreak(int index) {
547 if (index > 0 && index < text.length()) {
548 if (isSmileyBreak(text.charAt(index - 1), text.charAt(index))) {
557 * Verifies that the character before the given index is end of line,
560 private boolean isURLBreak(int index) {
561 switch (getCharClass(index - 1)) {
574 /** Returns the class for the character at the given index. */
575 private int getCharClass(int index) {
576 if ((index < 0) || (text.length() <= index)) {
580 char ch = text.charAt(index);
751 int index = 0;
752 while ((index < text.length()) &&
753 Character.isWhitespace(text.charAt(index))) {
754 ++index;
756 return text.substring(index);
760 int index = text.length();
761 while ((index > 0) && Character.isWhitespace(text.charAt(index - 1))) {
762 --index;
764 return text.substring(0, index);
1370 int index = 0;
1371 while (index < str.length()) {
1372 root = root.getOrCreateChild(str.charAt(index++));
1382 int index = 0;
1383 while (index < str.length()) {
1384 root = root.getChild(str.charAt(index++));
1396 * index, that exists in the trie.
1405 * index, that exists in the trie, with a special tokenizing case for
1410 int index = start;
1412 while (index < p.getRawText().length()) {
1413 root = root.getChild(p.getRawText().charAt(index++));
1417 if (p.isWordBreak(index)) {
1419 } else if (smiley && p.isSmileyBreak(index)) {