summaryrefslogtreecommitdiff
path: root/include/cppunit/tools/StringTools.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit/tools/StringTools.h')
-rw-r--r--include/cppunit/tools/StringTools.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/cppunit/tools/StringTools.h b/include/cppunit/tools/StringTools.h
index cc325dc..d08c6e0 100644
--- a/include/cppunit/tools/StringTools.h
+++ b/include/cppunit/tools/StringTools.h
@@ -6,30 +6,29 @@
#include <vector>
-namespace CppUnit
-{
+CPPUNIT_NS_BEGIN
+
/*! \brief Tool functions to manipulate string.
*/
-namespace StringTools
+struct StringTools
{
typedef std::vector<std::string> Strings;
- std::string CPPUNIT_API toString( int value );
-
- std::string CPPUNIT_API toString( double value );
+ static std::string CPPUNIT_API toString( int value );
- Strings CPPUNIT_API split( const std::string &text,
- char separator );
+ static std::string CPPUNIT_API toString( double value );
- std::string CPPUNIT_API wrap( const std::string &text,
- int wrapColumn = 79 );
+ static Strings CPPUNIT_API split( const std::string &text,
+ char separator );
-} // namespace StringTools
+ static std::string CPPUNIT_API wrap( const std::string &text,
+ int wrapColumn = CPPUNIT_WRAP_COLUMN );
+};
-} // namespace CppUnit
+CPPUNIT_NS_END
#endif // CPPUNIT_TOOLS_STRINGTOOLS_H