MCPcopy Create free account
hub / github.com/apache/tomcat / charCmp

Method charCmp

java/org/apache/catalina/ssi/SSIProcessor.java:365–367  ·  view source on GitHub ↗

Compares a substring of the buffer with the given command string. @param buf the buffer to search @param index the starting index @param command the command string to match @return true if the substring matches the command

(String buf, int index, String command)

Source from the content-addressed store, hash-verified

363 * @return true if the substring matches the command
364 */
365 protected boolean charCmp(String buf, int index, String command) {
366 return buf.regionMatches(index, command, 0, command.length());
367 }
368
369
370 /**

Callers 1

processMethod · 0.95

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected