Parent Directory | Revision Log
Stable version, lot of changes, ROOT support included, persistency not yet activated
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 |
ViewVC Help | |
Powered by ViewVC 1.1.23 |