| java.lang.Object com.ibm.icu.dev.tool.docs.CodeMangler
CodeMangler | public class CodeMangler (Code) | | A simple facility for adding C-like preprocessing to .java files.
This only understands a subset of the C preprocessing syntax.
Its used to manage files that with only small differences can be
compiled for different JVMs. This changes files in place,
commenting out lines based on the current flag settings.
|
pat2Match | static boolean pat2Match(String line, String[] keyRelVal)(Code) | | Perform same operation as matching on pat2. on exit
keyRelValue contains the three strings key, rel, and value.
'key' is the portion before the relation (or final word). 'rel' is
the relation, if present, either == or !=. 'value' is the final
word. if there is a match, return true, else return false.
|
patMatch | static boolean patMatch(String line, String[] leadKeyValue)(Code) | | Perform same operation as matching on pat. on exit
leadKeyValue contains the three strings lead, key, and value.
'lead' is the portion before the #ifdef directive. 'key' is
the directive. 'value' is the portion after the directive. if
there is a match, return true, else return false.
|
processFile | public boolean processFile(File infile, File outfile)(Code) | | |
|
|