CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

StringTools.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_TOOLS_STRINGTOOLS_H 00002 #define CPPUNIT_TOOLS_STRINGTOOLS_H 00003 00004 #include <cppunit/Portability.h> 00005 #include <string> 00006 #include <cppunit/portability/CppUnitVector.h> 00007 00008 00009 CPPUNIT_NS_BEGIN 00010 00011 00014 struct StringTools 00015 { 00016 00017 typedef CppUnitVector<std::string> Strings; 00018 00019 static std::string CPPUNIT_API toString( int value ); 00020 00021 static std::string CPPUNIT_API toString( double value ); 00022 00023 static Strings CPPUNIT_API split( const std::string &text, 00024 char separator ); 00025 00026 static std::string CPPUNIT_API wrap( const std::string &text, 00027 int wrapColumn = CPPUNIT_WRAP_COLUMN ); 00028 00029 }; 00030 00031 00032 CPPUNIT_NS_END 00033 00034 #endif // CPPUNIT_TOOLS_STRINGTOOLS_H

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers