/[PAMELA software]/FCUtils/CmdLineParser/src/StrUtils.cpp
ViewVC logotype

Contents of /FCUtils/CmdLineParser/src/StrUtils.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 7 10:33:14 2008 UTC (16 years, 7 months ago) by nikolas
Branch: MAIN, first
CVS Tags: v1r00, HEAD
Changes since 1.1: +0 -0 lines
 An usefull command line parser

1 #include <algorithm>
2 #include <cctype>
3 #include "StrUtils.h"
4
5 namespace FCUtils {
6
7 string ToLower(const string &s) {
8 string t=s;
9 std::transform( t.begin(), t.end(), t.begin(), std::tolower);
10 return t;
11 }
12
13 string ToLower(const char *s){
14 return ToLower(string(s));
15 }
16
17 }; // namespace FCUtils

  ViewVC Help
Powered by ViewVC 1.1.23