38 lines
919 B
C++
38 lines
919 B
C++
/**
|
|
* @file StringUtils.h
|
|
* @brief String工具类
|
|
*
|
|
* @author 黄军
|
|
* @date 2011-9-14
|
|
*/
|
|
|
|
#ifndef PAI_FRAME_WORKFLOWENGINE_STRINGUTILS_H
|
|
#define PAI_FRAME_WORKFLOWENGINE_STRINGUTILS_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "Turtle.h"
|
|
namespace pai {
|
|
namespace workflow {
|
|
|
|
class PAI_WORKFLOWENGINE_EXPORT CStringUtils {
|
|
public:
|
|
CStringUtils();
|
|
virtual ~CStringUtils();
|
|
public:
|
|
std::string static Long2String(long value);
|
|
std::string static Int2String(int value);
|
|
int static String2Int(const std::string& value);
|
|
void static Split(const std::string &s, char delim, std::vector<std::string> &elems);
|
|
std::string static ToUpperCase(const std::string &src);
|
|
std::string static ToLowerCase(const std::string &src);
|
|
std::string static TrimLeft(const std::string& content);
|
|
std::string static TrimRight(const std::string& content);
|
|
std::string static Trim(const std::string& content);
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|