68 virtual void Print(
const char *str);
166 int Find(
const char *str)
const;
221 operator const char *()
const {
234 unsigned int mCapacity;
char * gStringEmptyBuffer
The shared terminator of every empty String.
char * FormatString(const char *format,...)
Format text with printf() conventions into a static buffer.
Text output stream.
Definition prnstream.h:16
Growable text buffer that is also a PrnStream.
Definition string.h:19
String & Replace(unsigned int pos, unsigned int count, const String &str)
Replace part of the text with another String.
static constexpr int npos
The position Find() reports when the text does not occur.
Definition string.h:187
bool operator==(const String &other) const
Compare with another String.
friend class BinStream
Definition Str.h:231
String(const char *str)
Copy text.
unsigned int size() const
Definition Str.h:226
String & operator+=(const char *str)
Append text.
String & Clear()
Empty the String.
String & operator=(const String &other)
Replace the text with a copy of another String.
void Resize(unsigned int length)
Replace the text with a length of zero bytes.
int FindLast(char c) const
Find the last occurrence of a character.
bool operator==(const char *str) const
Compare with text.
String()
Definition Str.h:36
const char * c_str() const
Definition Str.h:216
int Find(const char *str) const
Find the first occurrence of text.
String Substring(unsigned int pos) const
Copy the text from a position to the end.
virtual void Print(const char *str)
Append printed text.
bool operator<(const String &other) const
Order by the bytes of the text.
String & operator+=(const String &other)
Append another String.
virtual ~String()
Free the buffer.
String & operator=(const char *str)
Replace the text.
String Substring(unsigned int pos, unsigned int count) const
Copy part of the text.
bool operator!=(const String &other) const
Compare with another String.
bool operator!=(const char *str) const
Compare with text.
String(const String &other)
Copy another String.