Added cppunit to the ./contrib dir. Build config for x64 and dll builds (some bugs remaining, but most configs are working)
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@70 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
34
contrib/cppunit-1.12.1/include/cppunit/tools/StringTools.h
Normal file
34
contrib/cppunit-1.12.1/include/cppunit/tools/StringTools.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef CPPUNIT_TOOLS_STRINGTOOLS_H
|
||||
#define CPPUNIT_TOOLS_STRINGTOOLS_H
|
||||
|
||||
#include <cppunit/Portability.h>
|
||||
#include <string>
|
||||
#include <cppunit/portability/CppUnitVector.h>
|
||||
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
|
||||
/*! \brief Tool functions to manipulate string.
|
||||
*/
|
||||
struct StringTools
|
||||
{
|
||||
|
||||
typedef CppUnitVector<std::string> Strings;
|
||||
|
||||
static std::string CPPUNIT_API toString( int value );
|
||||
|
||||
static std::string CPPUNIT_API toString( double value );
|
||||
|
||||
static Strings CPPUNIT_API split( const std::string &text,
|
||||
char separator );
|
||||
|
||||
static std::string CPPUNIT_API wrap( const std::string &text,
|
||||
int wrapColumn = CPPUNIT_WRAP_COLUMN );
|
||||
|
||||
};
|
||||
|
||||
|
||||
CPPUNIT_NS_END
|
||||
|
||||
#endif // CPPUNIT_TOOLS_STRINGTOOLS_H
|
||||
Reference in New Issue
Block a user