Home
last modified time | relevance | path

Searched refs:comment (Results 1 - 6 of 6) sorted by relevance

/commonlibrary/ets_utils/js_api_module/convertxml/
H A Djs_convertxml.h41 std::string comment = "_comment"; member
H A Djs_convertxml.cpp46 strResult = "comment"; in GetNodeType()
125 SetKeyValue(env, elementsObject, options_.comment, curContent); in GetPrevNodeList()
168 SetKeyValue(env, elementsObject, options_.comment, curContent); in SetXmlElementType()
450 case 6: // 6:comment in SetDefaultKey()
451 options_.comment = strRecv; in SetDefaultKey()
/commonlibrary/ets_utils/js_api_module/xml/
H A Dnative_module_xml.cpp300 std::string comment; in SetComment() local
301 object->DealNapiStrValue(env, args[0], comment); in SetComment()
302 object->SetComment(comment); in SetComment()
H A Djs_xml.h88 * Write the comment property.
90 * @param comment The parameter is the comment content of the current element.
92 void SetComment(const std::string &comment);
97 * @param comment The parameter is the content of the CDATA attribute.
104 * @param comment The parameter is the content of the CDATA attribute.
H A Djs_xml.cpp276 void XmlSerializer::SetComment(const std::string &comment) in SetComment() argument
286 out_ += "<!--" + comment + "-->"; in SetComment()
/commonlibrary/ets_utils/js_api_module/convertxml/test/
H A Dtest_convertxml.cpp205 * @tc.desc: Convert the xml object containing comment to a js object.
216 xmlSerializer.SetComment("This is a comment"); in HWTEST_F()
232 EXPECT_EQ(napi_get_named_property(env, element, op.comment.c_str(), &commentText), napi_status::napi_ok); in HWTEST_F()
238 EXPECT_STREQ(commentTypeStr.c_str(), "comment"); in HWTEST_F()
239 EXPECT_STREQ(commentTextStr.c_str(), "This is a comment"); in HWTEST_F()

Completed in 12 milliseconds