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

Contents of /gp2root/pUtils.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Apr 19 23:35:58 2006 UTC (18 years, 7 months ago) by pamela
Branch: MAIN
Branch point for: v1r0
Initial revision

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 }

  ViewVC Help
Powered by ViewVC 1.1.23