port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,100 @@
/***********************************************************************************/
/** \file StringHelper.h
** \brief Header File zur Klasse StringHelper
*************************************************************************************
** Autor: Christian Roesch
*************************************************************************************
** _tut nichts_
**
*//*********************************************************************************/
#ifndef _StringHelper_H
#define _StringHelper_H
// includes
#include <string>
#include <vector>
// Klassen-Deklaration
namespace FrameWork
{
/***********************************************************************************/
/** \brief StringHelper _tut nichts_
*************************************************************************************
** Genau genommen _tut dies nichts_
**
*//*********************************************************************************/
class StringHelper
{
public:
static bool splitAt(
std::string& strInput,
const std::string& strSeperator,
std::string& strOutput );
static bool splitLoop(
std::string& strInput,
const std::string& strSeperator,
std::string& strOutput );
static bool tokenize( std::string& strInput,
const std::string& strSeperator,
std::vector< std::string >& vecOutput );
static bool trim(
std::string& strData,
std::vector< char >& WhiteSpaces );
static bool trim(
std::string& strData,
char cWhiteSpace );
static bool trimFront(
std::string& strData,
std::vector< char >& WhiteSpaces );
static bool trimFront(
std::string& strData,
char cWhiteSpace );
static bool trimBack(
std::string& strData,
std::vector< char >& WhiteSpaces );
static bool trimBack(
std::string& strData,
char cWhiteSpace );
static void toUpper( std::string& strData );
static void toLower( std::string& strData );
struct StringHelperPreparer
{
StringHelperPreparer()
{
StringHelper::m_SpaceTab.push_back( ' ' );
StringHelper::m_SpaceTab.push_back( '\t' );
}
};
static std::vector< char >& getSpaceTab();
protected:
private:
static StringHelperPreparer m_shpDummy;
static std::vector< char > m_SpaceTab;
};
}
#endif//_StringHelper_H
class FrameWork::StringHelper;
/************************************************************************************
** Ende der Datei: StringHelper.h
************************************************************************************/