~ubuntu-branches/ubuntu/wily/psi/wily

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/include/cppunit/tools/StringTools.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CPPUNIT_TOOLS_STRINGTOOLS_H
 
2
#define CPPUNIT_TOOLS_STRINGTOOLS_H
 
3
 
 
4
#include <cppunit/Portability.h>
 
5
#include <string>
 
6
#include <cppunit/portability/CppUnitVector.h>
 
7
 
 
8
 
 
9
CPPUNIT_NS_BEGIN
 
10
 
 
11
 
 
12
/*! \brief Tool functions to manipulate string.
 
13
 */
 
14
struct StringTools
 
15
{
 
16
 
 
17
  typedef CppUnitVector<std::string> Strings;
 
18
 
 
19
  static std::string CPPUNIT_API toString( int value );
 
20
 
 
21
  static std::string CPPUNIT_API toString( double value );
 
22
 
 
23
  static Strings CPPUNIT_API split( const std::string &text, 
 
24
                                    char separator );
 
25
 
 
26
  static std::string CPPUNIT_API wrap( const std::string &text,
 
27
                                       int wrapColumn = CPPUNIT_WRAP_COLUMN );
 
28
 
 
29
};
 
30
 
 
31
 
 
32
CPPUNIT_NS_END
 
33
 
 
34
#endif  // CPPUNIT_TOOLS_STRINGTOOLS_H