![]() |
Klang C++
Language Reference (draft)
|
String of characters representing text. More...
#include <klang.h>
Public Member Functions | |
| int | capacity () const |
| Maximum size of the string. | |
| operator const char * () const | |
| Automatic cast to constant C-string. | |
| const char * | c_str () const |
| Return constant C-string. | |
| void | operator= (const char *in) |
| Assign C-String to Text object. | |
| bool | operator== (const char *in) const |
| Returns true if Text matches the given C-string. | |
| bool | operator!= (const char *in) const |
| Returns true if Text does not matches the given C-string. | |
Static Public Member Functions | |
| static Text | from (const char *in) |
| Create a new Text object from a C-string. | |
Public Attributes | |
| char | string [SIZE+1] = { 0 } |
| The character buffer. | |
|
inline |
|
inline |
Definition at line 322 of file klang.h.
Referenced by klang::Console::operator+=(), klang::Console::operator=(), and klang::Console::operator=().
|
inlinestatic |
Definition at line 331 of file klang.h.
Referenced by klang::Button(), klang::Dial(), klang::Meter(), klang::Slider(), and klang::Toggle().
|
inline |
|
inline |
Definition at line 349 of file klang.h.
References klang::Text< SIZE >::operator==().
Referenced by klang::Debug::printOnce().
|
inline |
Definition at line 338 of file klang.h.
References klang::Text< SIZE >::string.
Referenced by klang::Controls::add().
|
inline |
Definition at line 344 of file klang.h.
References klang::Text< SIZE >::string.
Referenced by klang::Text< SIZE >::operator!=().
| char klang::Text< SIZE >::string[SIZE+1] = { 0 } |
Definition at line 319 of file klang.h.
Referenced by klang::Text< SIZE >::operator const char *(), klang::Text< SIZE >::operator=(), and klang::Text< SIZE >::operator==().