Lines Matching defs:html

18 #include "html.h"
48 auto *html = new (std::nothrow) HtmlNapi();
49 ASSERT_ERR(ctxt->env, html != nullptr, Status::E_ERROR, "no memory for html!");
50 html->value_ = std::make_shared<Html>();
51 ASSERT_CALL(env, napi_wrap(env, ctxt->self, html, Destructor, nullptr, nullptr), html);
59 auto *html = new (std::nothrow) HtmlNapi();
60 ASSERT_ERR_VOID(env, html != nullptr, Status::E_ERROR, "no memory for html!");
61 html->value_ = std::static_pointer_cast<Html>(in);
62 ASSERT_CALL_DELETE(env, napi_wrap(env, out, html, Destructor, nullptr, nullptr), html);
68 auto *html = static_cast<HtmlNapi *>(data);
69 ASSERT_VOID(html != nullptr, "finalize null!");
70 delete html;
85 auto html = GetHtml(env, info, ctxt);
87 ctxt->env, (html != nullptr && html->value_ != nullptr), Status::E_ERROR, "invalid object!");
88 ctxt->status = NapiDataUtils::SetValue(env, html->value_->GetPlainContent(), ctxt->output);
107 auto html = static_cast<HtmlNapi *>(ctxt->native);
109 ctxt->env, (html != nullptr && html->value_ != nullptr), Status::E_ERROR, "invalid object!");
110 html->value_->SetPlainContent(plainContent);
118 auto html = GetHtml(env, info, ctxt);
120 ctxt->env, (html != nullptr && html->value_ != nullptr), Status::E_ERROR, "invalid object!");
121 ctxt->status = NapiDataUtils::SetValue(env, html->value_->GetHtmlContent(), ctxt->output);
122 ASSERT_ERR(ctxt->env, ctxt->status == napi_ok, Status::E_ERROR, "set html failed!");
140 auto html = static_cast<HtmlNapi *>(ctxt->native);
142 ctxt->env, (html != nullptr && html->value_ != nullptr), Status::E_ERROR, "invalid object!");
143 html->value_->SetHtmlContent(htmlContent);