66 size_t len = strlen(source);
77 void Append(
const char TailIncrement);
80 void Append(
const char * TailIncrement);
83 const char *
Str()
const;
86 operator const char * ()
const;
116 int Replace(
const char * old_str,
const char * new_str);
119 int Find(
const char * find_str);
void Optimize()
Internally allocates the exact string size to store it.
void operator=(const char *source)
Operator attribution. Resizes if necessary.
~TPZString()
Default destructor.
int Replace(const char *old_str, const char *new_str)
Replace the subset of string. Return the times of replacement.
TPZVec< TPZString > TPZText
Typedef to vector of strings.
void operator+=(const char *increment)
Appends a string at the tail. Resizes the TPZString if necessary.
const char * Str() const
Explicitly convertes a TPZString into a const null ended char string.
This class implements a simple vector storage scheme for a templated class T. Utility.
virtual void Resize(const int64_t newsize, const char &object)
Resizes the vector object.
void Empty()
Empties the string.
int64_t size() const
Returns the number of elements of the vector.
size_t Length() const
Similar to strlen(string). Also returns the number of non-null characters.
Free store vector implementation.
void Append(const char TailIncrement)
Appends a character at the end. Resizes if necessary.
bool operator==(const TPZString cmp)
Operator equal. Resizes if necessary.
TPZString()
Default Constructor.
Implements strings as stack. Utility.
TPZString SubStr(const int start, const int end) const
Returns a subset string.
TPZString operator+(const char *increment) const
Concatenates the 'this' string with another character string (increment)
char * fStore
Allocated storage for the vector object.
This class implements a stack object. Utility.
int64_t NElements() const
Returns the number of elements of the vector.
void SimplifyWhiteSpace()
Remove the repeat white spaces.
int Find(const char *find_str)
Find the positions of the first occurence of the find string.
char * end() const
Returns a pointer to the last+1 element.