44 lines
878 B
C++
44 lines
878 B
C++
/*
|
|
* File: StringUtil.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on July 10, 2012, 8:13 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef STRINGUTIL_H
|
|
#define STRINGUTIL_H
|
|
|
|
#include "common/Defines.h"
|
|
#include "container/StringList.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Provides utility methods for string handling
|
|
* @class StringUtil
|
|
* @ingroup Moversight
|
|
* @author Jan Gäbler
|
|
*/
|
|
class StringUtil {
|
|
public:
|
|
StringUtil();
|
|
StringUtil(const StringUtil& orig);
|
|
virtual ~StringUtil();
|
|
|
|
static StringList split(const std::string &s, char delimiter);
|
|
|
|
static std::string int2String(int i);
|
|
|
|
private:
|
|
static StringList & split(const std::string &s, char delim, StringList &elems);
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* STRINGUTIL_H */
|
|
|