Change toString() to str() to better replicate the std
parent
5426aa8359
commit
d883adaf5c
|
@ -26,7 +26,7 @@ namespace blt::string {
|
|||
void expand();
|
||||
public:
|
||||
void trim();
|
||||
std::string toString();
|
||||
std::string str();
|
||||
|
||||
StringBuffer(){
|
||||
characterBuffer = static_cast<char*>(malloc(BLOCK_SIZE));
|
||||
|
|
|
@ -23,7 +23,7 @@ blt::string::StringBuffer& blt::string::StringBuffer::operator<<(char c) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
std::string blt::string::StringBuffer::toString() {
|
||||
std::string blt::string::StringBuffer::str() {
|
||||
trim();
|
||||
return std::string{characterBuffer};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue