Commit 193d4aa2 authored by jan.koester's avatar jan.koester
Browse files

added empty method

parent 84eeabe1
Loading
Loading
Loading
Loading
+5 −0
Changes for src/html.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -111,6 +111,11 @@ void libhtmlpp::HtmlString::clear(){
    _InitString();
}

bool libhtmlpp::HtmlString::empty(){
    return _Data.empty();
}


libhtmlpp::HtmlString &libhtmlpp::HtmlString::operator+=(const char *src){
    append(src);
    return *this;
+1 −0
Changes for src/html.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@ namespace libhtmlpp {
        const size_t       size() ;
        const size_t       length() const;
        void               clear();
        bool               empty();
        const char *       c_str();
        HtmlElement*       parse();
        bool               validate(std::string &err);