46 this->m_string[0] =
'\0';
50 this->m_string[this->m_size++] = c;
51 this->m_string[this->m_size] =
'\0';
54 void puts (
const char string[]) {
55 for (
const char *s =
string; *s; ++s)
56 this->m_string[this->m_size++] = *s;
57 this->m_string[this->m_size] =
'\0';
64 return this->m_string;
78 this->m_string[0] =
'\0';
void clear()
Remove all characters from the string.
uint16_t get_size() const
Determine the number of characters in the string.
StaticStringBuilder(char buffer[])
Wrap an already allocated character array with extra functionality.
Generic definitions and functions for the Parallax Propeller.
void puts(const char string[])
Send a null-terminated character array. Though this method could be created using put_char...
Build a statically-sized string in RAM using the PropWare::Printer interface.
Interface for all classes capable of printing.
const char * to_string() const
Retrieve the internal string address.
void put_char(const char c)
Print a single character.