highlighting refactored

This commit is contained in:
Honfika
2013-11-01 01:07:19 +01:00
parent 2cf26a4c31
commit d23c2dbe63
242 changed files with 1572 additions and 1075 deletions

View File

@@ -17,6 +17,7 @@
package com.jpexs.helpers;
import com.jpexs.decompiler.flash.gui.Freed;
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
import com.jpexs.decompiler.graph.GraphTargetItem;
import com.jpexs.decompiler.graph.model.LocalData;
@@ -373,13 +374,13 @@ public class Helper {
}
}
public static String stripComments(String str) {
return str.replaceAll("<ffdec:hex>[^\r\n]*</ffdec:hex>\r?\n", "");
}
//public static String stripComments(String str) {
// return str.replaceAll("<ffdec:hex>[^\r\n]*</ffdec:hex>\r?\n", "");
//}
public static String hexToComments(String str) {
return str.replaceAll("<ffdec:hex>([^\r\n]*)</ffdec:hex>(\r?\n)", "; $1$2");
}
//public static String hexToComments(String str) {
// return str.replaceAll("<ffdec:hex>([^\r\n]*)</ffdec:hex>(\r?\n)", "; $1$2");
//}
public static String stackToString(Stack<GraphTargetItem> stack, LocalData localData) {
String ret = "[";
@@ -549,7 +550,7 @@ public class Helper {
return timeStr;
}
public static HilightedTextWriter byteArrayToHex(HilightedTextWriter writer, byte[] data) {
public static GraphTextWriter byteArrayToHex(GraphTextWriter writer, byte[] data) {
writer.appendNoHilight("#hexdata").newLine();
/* // hex data from decompiled actions