#35 Unicode strings fix

This commit is contained in:
Jindra Petk
2013-03-02 09:27:48 +01:00
parent b85b396b2a
commit 463180f31e
12 changed files with 66 additions and 58 deletions

View File

@@ -291,23 +291,23 @@ public class Graph {
populateParts(head, allParts);
}
List<GraphTargetItem> ret = printGraph(localData, new Stack<GraphTargetItem>(), allParts, null, heads.get(0), null, new ArrayList<Loop>(), new HashMap<Loop, List<GraphTargetItem>>());
finalProcessAll(ret,0);
finalProcessAll(ret, 0);
return ret;
}
private void finalProcessAll(List<GraphTargetItem> list,int level) {
finalProcess(list,level);
private void finalProcessAll(List<GraphTargetItem> list, int level) {
finalProcess(list, level);
for (GraphTargetItem item : list) {
if (item instanceof Block) {
List<List<GraphTargetItem>> subs = ((Block) item).getSubs();
for (List<GraphTargetItem> sub : subs) {
finalProcessAll(sub,level+1);
finalProcessAll(sub, level + 1);
}
}
}
}
protected void finalProcess(List<GraphTargetItem> list,int level) {
protected void finalProcess(List<GraphTargetItem> list, int level) {
}
protected List<GraphPart> getLoopsContinues(List<Loop> loops) {
@@ -831,7 +831,7 @@ public class Graph {
if ((!part.nextParts.isEmpty()) && part.nextParts.get(0).leadsTo(part, loopContinues)) {
if ((part.nextParts.size() > 1) && part.nextParts.get(1).leadsTo(part, loopContinues)) {
if (output.isEmpty()) {
whileTrueLoop = new Loop(loops.size(),part, null);
whileTrueLoop = new Loop(loops.size(), part, null);
loops.add(whileTrueLoop);
whileTrue = true;
} else {
@@ -853,7 +853,7 @@ public class Graph {
}
Loop currentLoop = null;
if (loop) {
currentLoop=new Loop(loops.size(),part, null);
currentLoop = new Loop(loops.size(), part, null);
loops.add(currentLoop);
}