2017-03-30 17:53:36 +02:00
|
|
|
#ifndef _CPSTRING_TOOLS_H_
|
|
|
|
#define _CPSTRING_TOOLS_H_
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2017-05-07 14:44:09 +02:00
|
|
|
#include <gctypes.h>
|
2017-03-30 17:53:36 +02:00
|
|
|
|
|
|
|
class CPStringTools{
|
|
|
|
public:
|
|
|
|
static bool EndsWith(const std::string& a, const std::string& b);
|
|
|
|
static std::vector<std::string> StringSplit(const std::string & inValue, const std::string & splitter);
|
|
|
|
static std::string removeCharFromString(std::string& input,char toBeRemoved);
|
2017-04-10 11:00:55 +02:00
|
|
|
static const char *byte_to_binary(s32 x);
|
2017-03-30 17:53:36 +02:00
|
|
|
static std::string strfmt(const char * format, ...);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _CPSTRING_TOOLS_H_ */
|