--- trunk/OOPSE-4/src/utils/StringUtils.hpp 2005/02/07 19:13:43 1980 +++ trunk/OOPSE-4/src/utils/StringUtils.hpp 2005/03/08 21:07:34 2090 @@ -55,7 +55,6 @@ namespace oopse { namespace oopse { - /** * Converts a string to UPPER CASE * @param S @@ -110,31 +109,35 @@ namespace oopse { * @param v data to be converted * @return a string */ - template - std::string toString(const T& v) { - std::ostringstream oss; - if (!oss << v) { - std::cerr << "toString Error" << std::endl; - } - return oss.str(); + template + std::string toString(const T& v) { + std::ostringstream oss; + if (!oss << v) { + std::cerr << "toString Error" << std::endl; } - - template - T lexi_cast(const std::string& str) { - T result; - std::istringstream iss(str); - if (!(iss >> result)) { - std::cerr << "lexi_cast Error" << std::endl; - } - return result; + return oss.str(); + } + + template + T lexi_cast(const std::string& str) { + T result; + std::istringstream iss(str); + if (!(iss >> result)) { + std::cerr << "lexi_cast Error" << std::endl; } + return result; + } + + std::string OOPSE_itoa(int value, unsigned int base); + + /**@todo need implementation */ + std::string getPrefix(const std::string& str); + + /**@todo need implementation */ + std::string getSuffix(const std::string& str); + + - /**@todo need implementation */ - std::string getPrefix(const std::string& str); - - /**@todo need implementation */ - std::string getSuffix(const std::string& str); - -} - + +} #endif