20 PString(
const std::string & str);
58 size_t count(
char ch)
const;
60 bool find(
char ch)
const;
65 std::vector<PString>
split(
char separator)
const;
66 std::vector<PString>
split(
const PString & vecSeparator)
const;
std::vector< PString > PVecString
bool phoenix_isCharNumber(char ch)
Tels if the character is a number or not.
PString phoenix_charToString(const char *ch)
Convert a char pointer into a string (event if the char pointer is NULL)
void eraseFirstLastChar(PVecString &vecOut, const PVecString &vecStr, const PString &vecChar)
Erase first and last characters of all PString in given vector.
bool phoenix_isCharUpperCase(char ch)
Tels if the character is upper case letter.
bool phoenix_isCharLowerCase(char ch)
Tels if the character is lower case letter.
PString & operator=(const PString &other)
Definition of equal operator of PString.
PString & add(const PString &other)
Add a PString to an other.
bool isLowerCase() const
Say if the given PString is in lowercase.
PString toLowerUnderscore() const
Convert std::string in lower case and space in '_'.
PString getCommonBegining(const PString &other) const
Get the common begining between the current PString and other.
virtual ~PString()
Destructeur of PString.
PString & fromValue(const T &other)
Convert a value to a PString.
static PString toString(const T &value)
Convert a value to a PString.
PString replace(const PString &pattern, const PString &replaceStr) const
Replace a PString into an other PString.
PString eraseChar(char ch) const
Erase char ch of current string.
PString format(const PString &arg) const
Replace first {} with arg.
std::vector< PString > split(char separator) const
Cut a PString on the given separator char.
PString toLower() const
Convert PString in lower case.
PString toUpper() const
Convert std::string in upper case.
PString replaceChar(const PString &vecChar, const PString &replaceStr) const
Replace characters in vecChar by replaceStr.
bool find(char ch) const
Find a char in a string.
PString firstToLower() const
Convert first letter of the PString in lower case.
PString escapeStr(const PString &strCharToEscape, const PString &escapeSeq) const
Escape given string with passed characters.
PString & operator<<(const T &other)
Append type in PString.
PString & operator+=(const PString &other)
Add a PString to an other.
bool isNumber() const
Say if the given PString is composed of numbers.
bool isSameBegining(const PString &beginStr) const
Say if the current PString has the same begining of beginStr.
T toValue() const
Convert the current string into a value.
size_t count(char ch) const
Count the number of char ch in the current PString.
PString & merge(const std::vector< PString > &vecStr, const PString &separator="")
Merge a set of PString.
PString eraseFirstLastChar(const PString &vecChar) const
Erase first and last char in a string.
void copyPString(const PString &other)
Copy function of PString.
void concatenatePString(const PString &other)
Concatenate a PString into the current PString.
PString eraseFirstChar(const PString &vecChar) const
Erase first char in a string.
PString()
Default constructor of PString.
bool isUpperCase() const
Say if the given PString is in uppercase.
void initialisationPString()
Initialisation function of the class PString.
PString firstToUpper() const
Convert first letter of the PString in upper case.
PString eraseLastChar(const PString &vecChar) const
Erase first and last char in a string.