PropWare
C++ objects and CMake build system for Parallax Propeller
|
Build a statically-sized string in RAM using the PropWare::Printer
interface.
More...
#include <staticstringbuilder.h>
Public Member Functions | |
StaticStringBuilder (char buffer[]) | |
Wrap an already allocated character array with extra functionality. More... | |
void | put_char (const char c) |
Print a single character. More... | |
void | puts (const char string[]) |
Send a null-terminated character array. Though this method could be created using put_char, some objects (such as PropWare::UART), have optimized methods for sending a string and PrintCapable::puts can utilize them. More... | |
const char * | to_string () const |
Retrieve the internal string address. | |
uint16_t | get_size () const |
Determine the number of characters in the string. | |
void | clear () |
Remove all characters from the string. | |
Build a statically-sized string in RAM using the PropWare::Printer
interface.
Definition at line 36 of file staticstringbuilder.h.
PropWare::StaticStringBuilder::StaticStringBuilder | ( | char | buffer[] | ) |
Wrap an already allocated character array with extra functionality.
[in] | buffer | Location in memory that can be used for string manipulation |
Definition at line 43 of file staticstringbuilder.h.
|
virtual |
Print a single character.
[in] | c | Individual char to be printed |
Implements PropWare::PrintCapable.
Definition at line 49 of file staticstringbuilder.h.
|
virtual |
Send a null-terminated character array. Though this method could be created using put_char, some objects (such as PropWare::UART), have optimized methods for sending a string and PrintCapable::puts can utilize them.
string[]
must be terminated with a null terminator[in] | string[] | Array of data words with the final word being 0 - the null terminator |
Implements PropWare::PrintCapable.
Definition at line 54 of file staticstringbuilder.h.