![]() |
Max OS 0.3
|
Creates a string using a using a combination of parts with the '<<' operator. Simmilar to the logger. More...
#include <string.h>
Public Member Functions | |
| operator String () const | |
| Convert to string. | |
| StringBuilder & | operator<< (char const *str) |
| Append C-string to the StringBuilder. | |
| StringBuilder & | operator<< (String const &other) |
| Append String to the StringBuilder. | |
| StringBuilder & | operator<< (int value) |
| Append int to the StringBuilder. | |
| StringBuilder & | operator<< (uint64_t value) |
| Append a hex to the StringBuilder. | |
| StringBuilder & | operator<< (bool value) |
| Append bool to the StringBuilder. | |
Public Attributes | |
| String | out |
| The output string. | |
Creates a string using a using a combination of parts with the '<<' operator. Simmilar to the logger.
|
inline |
| StringBuilder & StringBuilder::operator<< | ( | bool | value | ) |
Append bool to the StringBuilder.
| value | The bool value to append |
Definition at line 932 of file string.cpp.
References out.
| StringBuilder & StringBuilder::operator<< | ( | char const * | str | ) |
Append C-string to the StringBuilder.
| str | The C-string to append |
Definition at line 888 of file string.cpp.
References out.
| StringBuilder & StringBuilder::operator<< | ( | int | value | ) |
Append int to the StringBuilder.
| value | The int value to append |
Definition at line 910 of file string.cpp.
References out.
| StringBuilder & StringBuilder::operator<< | ( | String const & | other | ) |
Append String to the StringBuilder.
| other | The String to append |
Definition at line 899 of file string.cpp.
References out.
| StringBuilder & StringBuilder::operator<< | ( | uint64_t | value | ) |
Append a hex to the StringBuilder.
| value | The hex value to append |
Definition at line 921 of file string.cpp.
References out.
| String MaxOS::StringBuilder::out |
The output string.
Definition at line 99 of file string.h.
Referenced by operator String(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), and MaxOS::tests::Test::run().