src/lib/util/astring.h
| r8849 | r8850 | |
| 333 | 333 | astring &reset() { return cpy(""); } |
| 334 | 334 | astring &expand(int length) { astring_expand(this, length); return *this; } |
| 335 | 335 | |
| 336 | | operator bool() const { return this->text[0] != 0; } |
| 337 | | operator char *() { return this->text; } |
| 336 | operator char *() { return (this->text[0] != 0) ? this->text : NULL; } |
| 338 | 337 | operator const char *() const { return astring_c(this); } |
| 339 | 338 | const char *cstr() const { return astring_c(this); } |
| 340 | 339 | int len() const { return astring_len(this); } |