source: trunk/yat/utility/stl_utility.cc @ 723

Last change on this file since 723 was 723, checked in by Jari Häkkinen, 16 years ago

Fixes #10. Removed read_to*(std::vector..) functionality.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1// $Id: stl_utility.cc 723 2007-01-01 15:58:01Z jari $
2
3/*
4  Copyright (C) 2005 Jari Häkkinen, Peter Johansson, Markus Ringnér
5  Copyright (C) 2006, 2007 Jari Häkkinen
6
7  This file is part of the yat library, http://lev.thep.lu.se/trac/yat
8
9  The yat library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version.
13
14  The yat library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22  02111-1307, USA.
23*/
24
25#include "stl_utility.h"
26#include "utility.h"
27
28#include <iostream>
29#include <sstream>
30#include <string>
31#include <vector>
32#include <limits>
33
34namespace theplu {
35namespace yat {
36namespace utility {
37
38  void to_lower(std::string& s)
39  {
40    transform(s.begin(),s.end(), s.begin(), tolower);
41  }
42
43
44  void to_upper(std::string& s)
45  {
46    transform(s.begin(),s.end(), s.begin(), toupper);
47  }
48
49}}} // end of namespace utility, yat and thep
Note: See TracBrowser for help on using the repository browser.