added a pretty output to JString.
This commit is contained in:
1 parent
d74fa9689d
commit
7eb2417456
4 files changed
+29
-18
No files matched your search
+5
-7
@@ -186,13 +186,11 @@ namespace coreutils {
|
||||
return *this;
|
||||
}
|
||||
|
||||
// MString &MString::operator<<(std::string value) {
|
||||
// int temp = length;
|
||||
// int len = length + value.length();
|
||||
// setSize(len);
|
||||
// memcpy(data + temp, value.c_str(), value.length());
|
||||
// return *this;
|
||||
// }
|
||||
MString &MString::operator<<(char value) {
|
||||
setSize(length + 1);
|
||||
data[length - 1] = value;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// MString &MString::operator<<(std::ostream (*f)(std::ostream&)) {
|
||||
MString &MString::operator<<(std::basic_ostream<char> (*pf)(std::basic_ostream<char>&)) {
|
||||
|
||||
Reference in new issue
Block a user