getting bagel building

This commit is contained in:
benfry
2004-01-20 02:30:13 +00:00
parent c3c1e531e8
commit 6faef3f83a
4 changed files with 71 additions and 172 deletions

View File

@@ -76,7 +76,9 @@ public class PdePreprocessor {
* @return the classname of the exported Java
*/
public String write(String program, String buildPath,
String name, String extraImports[]) throws java.lang.Exception {
String name, String extraImports[])
throws java.lang.Exception {
if (PdePreferences.getBoolean("compiler.substitute_unicode")) {
// check for non-ascii chars (these will be/must be in unicode format)
char p[] = program.toCharArray();
@@ -87,7 +89,7 @@ public class PdePreprocessor {
// if non-ascii chars are in there, convert to unicode escapes
if (unicodeCount != 0) {
// add unicodeCount * 5.. replacing each unicode char
// with six digit \uXXXX sequence (xxxx is in hex)
// with six digit \u XXXX sequence (xxxx is in hex)
// (except for nbsp chars which will be a replaced with a space)
int index = 0;
char p2[] = new char[p.length + unicodeCount*5];