StrUtil.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *   http://www.apache.org/licenses/LICENSE-2.0
00009 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016  
00017 
00018 #ifndef STRUTIL_H
00019 #define STRUTIL_H
00020 
00021 #include <sstream>
00022 #include <iomanip>
00023 
00027 std::string StringToUpper(std::string strToConvert);
00028 
00032 std::string StringToLower(std::string strToConvert);
00033 
00037 std::string NumToString(const int n);
00038 
00042 std::string NumToString(const unsigned int n);
00043 
00047 std::string NumToString(const long l);
00048 
00054 std::string NumToString(const float f, unsigned int width=10, unsigned int precise=7);
00055 
00061 std::string NumToString(const double d, unsigned int width=16, unsigned int precise=12);
00062 
00070 char* itoa( int value, char* result, int base ) ;
00071 
00078 std::string itoa(int value, int base);
00079 
00080 #endif


cob_relayboard
Author(s): Christian Connette
autogenerated on Sat Jun 8 2019 21:02:18