;nextChar = fr.read();
}
while(thisChar != -1) {
// find and replace
switch(thisChar) {
// 2. add after \";\" (Except \"for\", and \";\" between \" \" which is part of a string in javascript. ) and before the next line
case ’;’: [Page]
// If the \";\" is in quote or in \"for\", then not print \" \"
if(quoteCount > 0 || sigleQuoteCount > 0 || forCount > 0) {
fw.write(’;’);
if(forCount > 0) {
forCount--;
}
// Add \" \" after \";\"
} else {
fw.write(’;’);
if(’ ’ != nextChar && ’ ’ != nextChar) {
fw.write(’ ’);
&nb