mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 16:07:56 +00:00
highlighting refactored
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user