/
jiteman
/
jsd-foreign-libreoffice-cppunit
Обзор
Документация
Войти
/
jiteman
/
jsd-foreign-libreoffice-cppunit
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
include/cppunit/tools/StringTools.h
34 строки
720 B
jiteman
initial commit has been done
14 апр 2024, 15:49
14 апр 2024, 15:49
4c53812
Код
Авторство
О чём код?
#ifndef CPPUNIT_TOOLS_STRINGTOOLS_H #define CPPUNIT_TOOLS_STRINGTOOLS_H #include <cppunit/Portability.h> #include <string> #include <vector> CPPUNIT_NS_BEGIN /*! \brief Tool functions to manipulate string. */ struct StringTools { typedef std::vector<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