31 lines
573 B
C++
31 lines
573 B
C++
#ifndef __SString_h__
|
|
#define __SString_h__
|
|
|
|
#include "includes"
|
|
|
|
namespace coreutils {
|
|
|
|
class PString {
|
|
|
|
public:
|
|
PString();
|
|
PString(std::string pstring);
|
|
|
|
std::string str();
|
|
std::vector<PString> split(std::string delimiter, int maxSize = 0);
|
|
std::string getTokenInclude(std::string include);
|
|
std::string getTokenExclude(std::string exclude);
|
|
bool ifNext(std::string value);
|
|
void skipWhitespace();
|
|
int cursor = 0;
|
|
int size();
|
|
|
|
private:
|
|
std::string pstring;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|