libH/stringconverter.cpp

Go to the documentation of this file.
00001 
00012 /*
00013   
00014   Copyright (c) 2007, Tim Burrell
00015   Licensed under the Apache License, Version 2.0 (the "License");
00016   you may not use this file except in compliance with the License.
00017   You may obtain a copy of the License at 
00018 
00019         http://www.apache.org/licenses/LICENSE-2.0
00020 
00021   Unless required by applicable law or agreed to in writing, software
00022   distributed under the License is distributed on an "AS IS" BASIS,
00023   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   See the License for the specific language governing permissions and 
00025   limitations under the License. 
00026   
00027 */
00028 
00029 #include "stringconverter.hpp"
00030 #include <string>
00031 #include <sstream>
00032 #include <algorithm>
00033 #include <boost/algorithm/string/case_conv.hpp>
00034 
00035 using namespace std;
00036 using namespace boost;
00037 using namespace H;
00038 
00040 // Type Defs
00042 
00044 // Construction
00046 
00050 stringconverter::stringconverter(int Value) {
00051         stringstream ss;
00052         ss << Value;
00053         ss >> *this;
00054 }
00055 
00059 stringconverter::~stringconverter() throw() {
00060 }
00061 
00063 // Class Body
00065 
00070 std::string stringconverter::toLower(std::string const & convertee) {
00071         string t = convertee;
00072         boost::to_lower(t);
00073         return t;
00074 }
00075 
00080 std::string stringconverter::toUpper(std::string const & convertee) {
00081         string t = convertee;
00082         boost::to_upper(t);
00083         return t;
00084 }

Generated on Wed Nov 7 10:04:16 2007 for gizmod by  doxygen 1.5.3