Change toString() to str() to better replicate the std

v1
Brett 2023-07-10 18:55:20 -04:00
parent 5426aa8359
commit d883adaf5c
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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};
}