Fixed CS_UNICODE_ESCAPE = true;
This commit is contained in:
@@ -184,7 +184,7 @@ public class CSJavaFiles
|
||||
ostr.println(" case 'e' : case 'E' : return 14;");
|
||||
ostr.println(" case 'f' : case 'F' : return 15;");
|
||||
ostr.println(" }\n");
|
||||
ostr.println(" throw Exception(); // Should never come here");
|
||||
ostr.println(" throw new Exception(); // Should never come here");
|
||||
ostr.println(" }");
|
||||
ostr.println("");
|
||||
ostr.println(prefix + "public int bufpos = -1;");
|
||||
@@ -193,8 +193,8 @@ public class CSJavaFiles
|
||||
ostr.println(prefix + "int tokenBegin;");
|
||||
|
||||
if (OtherFilesGen.keepLineCol){
|
||||
ostr.println(prefix + "protected int bufline[];");
|
||||
ostr.println(prefix + "protected int bufcolumn[];");
|
||||
ostr.println(prefix + "protected int[] bufline;");
|
||||
ostr.println(prefix + "protected int[] bufcolumn;");
|
||||
ostr.println("");
|
||||
ostr.println(prefix + "protected int column = 0;");
|
||||
ostr.println(prefix + "protected int line = 1;");
|
||||
@@ -221,8 +221,8 @@ public class CSJavaFiles
|
||||
ostr.println(" char[] newbuffer = new char[bufsize + 2048];");
|
||||
|
||||
if (OtherFilesGen.keepLineCol){
|
||||
ostr.println(" int newbufline[] = new int[bufsize + 2048];");
|
||||
ostr.println(" int newbufcolumn[] = new int[bufsize + 2048];");
|
||||
ostr.println(" int[] newbufline = new int[bufsize + 2048];");
|
||||
ostr.println(" int[] newbufcolumn = new int[bufsize + 2048];");
|
||||
}
|
||||
|
||||
ostr.println("");
|
||||
@@ -263,7 +263,7 @@ public class CSJavaFiles
|
||||
ostr.println(" }");
|
||||
ostr.println(" }");
|
||||
ostr.println(" catch (System.Exception t){");
|
||||
ostr.println(" throw e;");
|
||||
ostr.println(" throw t;");
|
||||
ostr.println(" }");
|
||||
ostr.println("");
|
||||
ostr.println(" available = (bufsize += 2048);");
|
||||
@@ -586,10 +586,10 @@ public class CSJavaFiles
|
||||
ostr.println(" nextCharBuf = new char[4096];");
|
||||
ostr.println(" }");
|
||||
ostr.println("");
|
||||
ostr.println(" public JavaCharStream(System.IO.TextReader dstream, int startline, int startcolumn)");
|
||||
ostr.println(" public CSCharStream(System.IO.TextReader dstream, int startline, int startcolumn)");
|
||||
ostr.println(" : this(dstream, startline, startcolumn, 4096){}");
|
||||
ostr.println("");
|
||||
ostr.println(" public JavaCharStream(System.IO.TextReader dstream)");
|
||||
ostr.println(" public CSCharStream(System.IO.TextReader dstream)");
|
||||
ostr.println(" : this(dstream, 1, 1, 4096){}");
|
||||
ostr.println("");
|
||||
ostr.println(" public void ReInit(System.IO.TextReader dstream, int startline, int startcolumn, int buffersize){");
|
||||
@@ -632,19 +632,19 @@ public class CSJavaFiles
|
||||
//ostr.println(" : this(encoding == null ? new System.IO.StreamReader(dstream) : ");
|
||||
//ostr.println(" new System.IO.StreamReader(dstream, encoding), startline, startcolumn, buffersize){}");
|
||||
//ostr.println("");
|
||||
ostr.println(" public JavaCharStream(System.IO.Stream dstream, int startline, int startcolumn, int buffersize)");
|
||||
ostr.println(" public CSCharStream(System.IO.Stream dstream, int startline, int startcolumn, int buffersize)");
|
||||
ostr.println(" : this(new System.IO.StreamReader(dstream), startline, startcolumn, 4096){}");
|
||||
ostr.println("");
|
||||
//ostr.println(" public JavaCharStream(System.IO.Stream dstream, String encoding, int startline, int startcolumn)");
|
||||
//ostr.println(" : this(dstream, encoding, startline, startcolumn, 4096){}");
|
||||
//ostr.println("");
|
||||
ostr.println(" public JavaCharStream(System.IO.Stream dstream, int startline, int startcolumn)");
|
||||
ostr.println(" public CSCharStream(System.IO.Stream dstream, int startline, int startcolumn)");
|
||||
ostr.println(" : this(dstream, startline, startcolumn, 4096){}");
|
||||
ostr.println("");
|
||||
//ostr.println(" public JavaCharStream(System.IO.Stream dstream, String encoding)");
|
||||
//ostr.println(" : this(dstream, encoding, 1, 1, 4096){}");
|
||||
//ostr.println("");
|
||||
ostr.println(" public JavaCharStream(System.IO.Stream dstream)");
|
||||
ostr.println(" public CSCharStream(System.IO.Stream dstream)");
|
||||
ostr.println(" : this(dstream, 1, 1, 4096){}");
|
||||
ostr.println("");
|
||||
//ostr.println(" public void ReInit(System.IO.Stream dstream, String encoding, int startline, int startcolumn, int buffersize){");
|
||||
|
||||
Reference in New Issue
Block a user