Loading src/html.cpp +0 −63 Changes for src/html.cpp: 0 added lines, 63 removed lines. Original line number Diff line number Diff line Loading @@ -376,66 +376,3 @@ libhtmlpp::HtmlTable::HtmlTable() { libhtmlpp::HtmlTable::~HtmlTable(){ } // class Row { // public: // Row &operator<<(const char *value){ // _Data.assign(value,value+libhttppp::getlen(value)); // return *this; // }; // // Row &operator<<(int value){ // char buf[255]; // snprintf(buf,255, "%d", value); // return *this << buf; // }; // // private: // std::vector<char> _Data; // int _Size; // Row(){ // _Size=0; // _nextRow=nullptr; // }; // ~Row(){ // delete _nextRow; // }; // Row *_nextRow; // friend class HtmlTable; // }; // // // // Row &createRow(){ // if(_firstRow!=nullptr){ // _lastRow->_nextRow=new Row; // _lastRow=_lastRow->_nextRow; // }else{ // _firstRow=new Row; // _lastRow=_firstRow; // } // return *_lastRow; // } // // const char *printHtml(){ // _Buffer.clear(); // if(_Id!=NULL) // _Buffer << "<table id=\"" << _Id << "\">"; // else // _Buffer << "<table>"; // for(Row *curow=_firstRow; curow; curow=curow->_nextRow){ // _Buffer << "<tr>"; // _Buffer.assign(curow->_Data.begin(),curow->_Data.end()); // _Buffer << "</tr>"; // } // _Buffer << "</table>"; // _Buffer.push_back('\0'); // return _Buffer.data(); // } // private: // std::vector<char> _Buffer; // // Row *_firstRow; // Row *_lastRow; // }; Loading
src/html.cpp +0 −63 Changes for src/html.cpp: 0 added lines, 63 removed lines. Original line number Diff line number Diff line Loading @@ -376,66 +376,3 @@ libhtmlpp::HtmlTable::HtmlTable() { libhtmlpp::HtmlTable::~HtmlTable(){ } // class Row { // public: // Row &operator<<(const char *value){ // _Data.assign(value,value+libhttppp::getlen(value)); // return *this; // }; // // Row &operator<<(int value){ // char buf[255]; // snprintf(buf,255, "%d", value); // return *this << buf; // }; // // private: // std::vector<char> _Data; // int _Size; // Row(){ // _Size=0; // _nextRow=nullptr; // }; // ~Row(){ // delete _nextRow; // }; // Row *_nextRow; // friend class HtmlTable; // }; // // // // Row &createRow(){ // if(_firstRow!=nullptr){ // _lastRow->_nextRow=new Row; // _lastRow=_lastRow->_nextRow; // }else{ // _firstRow=new Row; // _lastRow=_firstRow; // } // return *_lastRow; // } // // const char *printHtml(){ // _Buffer.clear(); // if(_Id!=NULL) // _Buffer << "<table id=\"" << _Id << "\">"; // else // _Buffer << "<table>"; // for(Row *curow=_firstRow; curow; curow=curow->_nextRow){ // _Buffer << "<tr>"; // _Buffer.assign(curow->_Data.begin(),curow->_Data.end()); // _Buffer << "</tr>"; // } // _Buffer << "</table>"; // _Buffer.push_back('\0'); // return _Buffer.data(); // } // private: // std::vector<char> _Buffer; // // Row *_firstRow; // Row *_lastRow; // };