262 |
07 Apr 05 |
peter |
// $Id$ |
262 |
07 Apr 05 |
peter |
2 |
|
570 |
05 Apr 06 |
jari |
3 |
/* |
2119 |
12 Dec 09 |
peter |
Copyright (C) 2005 Jari Häkkinen, Peter Johansson, Markus Ringnér |
2119 |
12 Dec 09 |
peter |
Copyright (C) 2006 Jari Häkkinen |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2007 Peter Johansson |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
2919 |
19 Dec 12 |
peter |
Copyright (C) 2010, 2012 Peter Johansson |
570 |
05 Apr 06 |
jari |
9 |
|
1437 |
25 Aug 08 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
570 |
05 Apr 06 |
jari |
11 |
|
675 |
10 Oct 06 |
jari |
The yat library is free software; you can redistribute it and/or |
675 |
10 Oct 06 |
jari |
modify it under the terms of the GNU General Public License as |
1486 |
09 Sep 08 |
jari |
published by the Free Software Foundation; either version 3 of the |
675 |
10 Oct 06 |
jari |
License, or (at your option) any later version. |
570 |
05 Apr 06 |
jari |
16 |
|
675 |
10 Oct 06 |
jari |
The yat library is distributed in the hope that it will be useful, |
675 |
10 Oct 06 |
jari |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
675 |
10 Oct 06 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
570 |
05 Apr 06 |
jari |
General Public License for more details. |
570 |
05 Apr 06 |
jari |
21 |
|
570 |
05 Apr 06 |
jari |
You should have received a copy of the GNU General Public License |
1487 |
10 Sep 08 |
jari |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
570 |
05 Apr 06 |
jari |
24 |
*/ |
570 |
05 Apr 06 |
jari |
25 |
|
2881 |
18 Nov 12 |
peter |
26 |
#include <config.h> |
2881 |
18 Nov 12 |
peter |
27 |
|
680 |
11 Oct 06 |
jari |
28 |
#include "stl_utility.h" |
262 |
07 Apr 05 |
peter |
29 |
|
2302 |
24 Jul 10 |
peter |
30 |
#include <boost/algorithm/string/case_conv.hpp> |
2302 |
24 Jul 10 |
peter |
31 |
|
262 |
07 Apr 05 |
peter |
32 |
#include <string> |
262 |
07 Apr 05 |
peter |
33 |
|
262 |
07 Apr 05 |
peter |
34 |
namespace theplu { |
680 |
11 Oct 06 |
jari |
35 |
namespace yat { |
301 |
30 Apr 05 |
peter |
36 |
namespace utility { |
262 |
07 Apr 05 |
peter |
37 |
|
919 |
30 Sep 07 |
peter |
38 |
std::string& to_lower(std::string& s) |
715 |
22 Dec 06 |
jari |
39 |
{ |
2302 |
24 Jul 10 |
peter |
40 |
boost::to_lower(s); |
919 |
30 Sep 07 |
peter |
41 |
return s; |
715 |
22 Dec 06 |
jari |
42 |
} |
715 |
22 Dec 06 |
jari |
43 |
|
715 |
22 Dec 06 |
jari |
44 |
|
919 |
30 Sep 07 |
peter |
45 |
std::string& to_upper(std::string& s) |
715 |
22 Dec 06 |
jari |
46 |
{ |
2302 |
24 Jul 10 |
peter |
47 |
boost::to_upper(s); |
919 |
30 Sep 07 |
peter |
48 |
return s; |
715 |
22 Dec 06 |
jari |
49 |
} |
715 |
22 Dec 06 |
jari |
50 |
|
680 |
11 Oct 06 |
jari |
51 |
}}} // end of namespace utility, yat and thep |