|
|
|
|
|
|
|
|
char c; |
|
|
char c; |
|
|
//remove all SPACE and TAB that begin the error message... |
|
|
//remove all SPACE and TAB that begin the error message... |
|
|
int trimLeftIndex = 0; |
|
|
int trimLeftIndex = 0; |
|
|
while (((c = extract[trimLeftIndex++]) == TAB) || (c == SPACE)) { |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
while ( (((c = extract[trimLeftIndex++]) == TAB) || (c == SPACE)) && trimLeftIndex<extract.length ) { }; |
|
|
|
|
|
if (trimLeftIndex>=extract.length) return new String(extract)+"\n"; |
|
|
System.arraycopy( |
|
|
System.arraycopy( |
|
|
extract, |
|
|
extract, |
|
|
trimLeftIndex - 1, |
|
|
trimLeftIndex - 1, |