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