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