public class StringCmp
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
sEndline |
(package private) static java.lang.String |
sWhitespace |
static java.lang.String |
version |
Constructor and Description |
---|
StringCmp() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.CharSequence s1,
java.lang.CharSequence s2,
boolean bWhitespace,
java.lang.String[] comment)
Compares two Strings with possibility of ignore white spaces and comments
|
static int |
compare(java.io.File f1,
java.lang.CharSequence s2,
boolean bWhitespace,
java.lang.String[] comment)
Compare one file contents with chars, see
compare(CharSequence, CharSequence, boolean, String[]) |
static int |
compare(java.io.File f1,
java.io.File f2,
boolean bWhitespace,
java.lang.String[] comment)
Compare two file contents, see
compare(CharSequence, CharSequence, boolean, String[]) |
private static char |
readNextChar(java.lang.CharSequence cs,
int zcs,
int[] ix,
boolean bWhitespace,
java.lang.String endlineComment,
java.lang.String commentStart,
java.lang.String commentEnd,
int recursive) |
public static java.lang.String version
static java.lang.String sWhitespace
static java.lang.String sEndline
public static int compare(java.io.File f1, java.lang.CharSequence s2, boolean bWhitespace, java.lang.String[] comment)
compare(CharSequence, CharSequence, boolean, String[])
public static int compare(java.io.File f1, java.io.File f2, boolean bWhitespace, java.lang.String[] comment)
compare(CharSequence, CharSequence, boolean, String[])
public static int compare(java.lang.CharSequence s1, java.lang.CharSequence s2, boolean bWhitespace, java.lang.String[] comment)
s1
- s2
- bWhitespace
- true accept one space to compare but skip over " \t\r\n\f"comment
- The 3 entries are:
{"//", "/*", "* /"}
private static char readNextChar(java.lang.CharSequence cs, int zcs, int[] ix, boolean bWhitespace, java.lang.String endlineComment, java.lang.String commentStart, java.lang.String commentEnd, int recursive)