/[PAMELA software]/gp2root/pUtils.cpp
ViewVC logotype

Annotation of /gp2root/pUtils.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Oct 22 08:27:08 2006 UTC (18 years, 1 month ago) by cafagna
Branch: MAIN
CVS Tags: v0r9, v0r10, HEAD
Changes since 1.1: +1 -0 lines
Stable version, lot of changes, ROOT support included, persistency not yet activated

1 pamela 1.1 #include <string>
2     #include <algorithm>
3     #include <cctype>
4     #include "pUtils.h"
5    
6     namespace pUtils {
7    
8     using std::string;
9     using std::transform;
10     using std::tolower;
11     using std::toupper;
12    
13     string ToLower(string const & sorig)
14     {
15     string temp = sorig;
16     transform (temp.begin(), temp.end(), temp.begin(), tolower);
17     return temp;
18     }
19    
20     string ToUpper(string const & sorig)
21     {
22     string temp = sorig;
23     transform (temp.begin(), temp.end(), temp.begin(), toupper);
24     return temp;
25     }
26    
27     bool IsPoundChar(char c)
28     {
29     if (c == '#'){
30     return true;
31     }
32    
33     return false;
34     }
35    
36     }
37 cafagna 1.2

  ViewVC Help
Powered by ViewVC 1.1.23