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

Method isPlainText

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

Helper method to determine if a line of text needs replacing or not @param aString @return true If it is plain text (e.g. Does not need replacing)

(String aString)

Source from the content-addressed store, hash-verified

1692 * @return true If it is plain text (e.g. Does not need replacing)
1693 */
1694 private boolean isPlainText(String aString)
1695 {
1696 // If we 'cannot write' and the string is non-empty, non-filter token then
1697 // there is nothing to replace so return 0
1698 if (!canWrite && (!aString.isEmpty()) && (aString.charAt(0) != '%'))
1699 {
1700 return true;
1701 }
1702 return aString.isEmpty();
1703 }
1704
1705 /**
1706 * Helper method to determine if a token is a filter token or not

Callers 1

replaceTokenMethod · 0.95

Calls 1

isEmptyMethod · 0.65

Tested by

no test coverage detected