ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/joshmt/MiscUtil.cxx
Revision: 1.1
Committed: Thu Sep 23 10:11:20 2010 UTC (14 years, 7 months ago) by joshmt
Content type: text/plain
Branch: MAIN
Log Message:
move fortranize into its own file

File Contents

# User Rev Content
1 joshmt 1.1 /*
2     a place for very simple functions that don't depend on anything else
3    
4     can be easily #included into other code
5     */
6    
7     #include "TString.h"
8    
9     namespace jmt {
10    
11     //======misc utilities======
12     //gets rid of = > < from cuts in order to be better included in file names
13     TString fortranize(TString cut) {
14    
15     cut.ReplaceAll("==","eq");
16     cut.ReplaceAll(">=","gte");
17     cut.ReplaceAll("<=","lte");
18    
19     cut.ReplaceAll(">","gt");
20     cut.ReplaceAll("<","lt");
21    
22     return cut;
23     }
24    
25     }