ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/joshmt/MiscUtil.cxx
(Generate patch)

Comparing UserCode/joshmt/MiscUtil.cxx (file contents):
Revision 1.7 by joshmt, Wed Jul 27 13:50:47 2011 UTC vs.
Revision 1.8 by joshmt, Sun Jul 31 22:11:04 2011 UTC

# Line 14 | Line 14 | namespace jmt {
14    //gets rid of = > < from cuts in order to be better included in file names
15    TString fortranize(TString cut) {
16  
17 +    cut.ReplaceAll(" ",""); //remove all spaces
18 +
19      cut.ReplaceAll("==","eq");
20      cut.ReplaceAll(">=","gte");
21      cut.ReplaceAll("<=","lte");
# Line 21 | Line 23 | namespace jmt {
23      cut.ReplaceAll(">","gt");
24      cut.ReplaceAll("<","lt");
25  
26 +    cut.ReplaceAll("&&","and");
27 +    cut.ReplaceAll("||","or");
28 +
29      cut.ReplaceAll("/","Over");
30      cut.ReplaceAll("+","Plus");
31      cut.ReplaceAll("*","Times");
32  
28    cut.ReplaceAll("*","Times");
29    
33      //this is pretty ugly
34      cut.ReplaceAll("(","L");
35      cut.ReplaceAll(")","R");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines