MCPcopy Create free account
hub / github.com/PCGen/pcgen / isValidSubToken

Method isValidSubToken

code/src/java/pcgen/io/ExportHandler.java:1723–1726  ·  view source on GitHub ↗

Helper method, determines if a token is a valid SUB token @param tokenString token to evaluate @return true if it is a valid SUB token

(String tokenString)

Source from the content-addressed store, hash-verified

1721 * @return true if it is a valid SUB token
1722 */
1723 private boolean isValidSubToken(String tokenString)
1724 {
1725 return tokenString.indexOf("SUB") == 0 && (tokenString.indexOf(".") > 3);
1726 }
1727
1728 /**
1729 * Helper method to detect if a token is a DFOR or FOR token

Callers 1

replaceTokenMethod · 0.95

Calls 1

indexOfMethod · 0.65

Tested by

no test coverage detected