@return true if the given sequence appears next in the array.
(final CharSequence seq)
| 80 | |
| 81 | /** @return true if the given sequence appears next in the array. */ |
| 82 | public boolean isNextSeq(final CharSequence seq) { |
| 83 | if (seq == null) { |
| 84 | throw new IllegalArgumentException("Comparative sequence cannot be null"); |
| 85 | } |
| 86 | for (int i = 0; i < seq.length(); i++) { |
| 87 | if (mark + i >= chars.length) { |
| 88 | return false; |
| 89 | } |
| 90 | if (chars[mark + i] != seq.charAt(i)) { |
| 91 | return false; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | /** @return the name of the function */ |
| 99 | public String readFuncName() { |
no outgoing calls