MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / isNextSeq

Method isNextSeq

src/query/expression/ExpressionReader.java:82–96  ·  view source on GitHub ↗

@return true if the given sequence appears next in the array.

(final CharSequence seq)

Source from the content-addressed store, hash-verified

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() {

Callers 4

ctorEmptyStringMethod · 0.95
isNextSeqMethod · 0.95
readNextParameterMethod · 0.95
parseMethod · 0.45

Calls

no outgoing calls

Tested by 2

ctorEmptyStringMethod · 0.76
isNextSeqMethod · 0.76