MCPcopy Create free account
hub / github.com/apache/solr / opt

Method opt

solr/core/src/java/org/apache/solr/search/StrParser.java:52–60  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

50 }
51
52 public boolean opt(String s) {
53 eatws();
54 int slen = s.length();
55 if (val.regionMatches(pos, s, 0, slen)) {
56 pos += slen;
57 return true;
58 }
59 return false;
60 }
61
62 public boolean opt(char ch) {
63 eatws();

Callers 6

_expandMethod · 0.95
addMethod · 0.95
addStatMethod · 0.95
parseNestedQueryMethod · 0.80
parseValueSourceMethod · 0.80
parseAggMethod · 0.80

Calls 3

eatwsMethod · 0.95
lengthMethod · 0.65
charAtMethod · 0.45

Tested by

no test coverage detected