Searched refs:attributes (Results 1 - 6 of 6) sorted by relevance
/commonlibrary/ets_utils/js_api_module/xml/test/ |
H A D | test_xml.h | 211 xml.attributes.push_back(""); in TestParseNsp() 212 xml.attributes.push_back(""); in TestParseNsp() 213 xml.attributes.push_back("xmlns"); in TestParseNsp() 214 xml.attributes.push_back(""); in TestParseNsp() 224 xml.attributes.push_back(""); in TestParseDeclaration() 225 xml.attributes.push_back(""); in TestParseDeclaration() 226 xml.attributes.push_back(""); in TestParseDeclaration() 227 xml.attributes.push_back("1.0"); in TestParseDeclaration() 366 xmlPullParser.attributes.push_back("q"); in ParseNspFunc() 367 xmlPullParser.attributes in ParseNspFunc() [all...] |
/commonlibrary/ets_utils/js_api_module/xml/ |
H A D | js_xml.cpp | 540 napi_create_string_utf8(env, attributes[i * 4 + 2].c_str(), // 4 and 2: number of args in ParseAttri() 541 attributes[i * 4 + 2].size(), &key); // 4 and 2: number of args in ParseAttri() 543 napi_create_string_utf8(env, attributes[i * 4 + 3].c_str(), // 4 and 3: number of args in ParseAttri() 544 attributes[i * 4 + 3].size(), &value); // 3 and 4: number of args in ParseAttri() 989 nspStack_[j + 1] = attributes[i + 3]; // 3: number of args in ParseNspFunc() 990 if (attrName != "" && attributes[i + 3].empty()) { // 3: number of args in ParseNspFunc() 994 attributes[i] = "http://www.w3.org/2000/xmlns/"; in ParseNspFunc() 998 attributes[iCount] = attributes[iCount + 4]; // 4: number of args in ParseNspFunc() 1008 std::string attrName = attributes[ in ParseNspFunction() [all...] |
H A D | js_xml.h | 95 * Write CDATA attributes. 102 * Write CDATA attributes. 217 * Get the number of attributes of the current start tag. 219 * @param info The parameter is the number of attributes of the current start tag. 414 std::vector<std::string> attributes; member in OHOS::xml::XmlPullParser
|
/commonlibrary/ets_utils/js_api_module/convertxml/ |
H A D | js_convertxml.cpp | 153 napi_set_named_property(env, elementsObject, options_.attributes.c_str(), attrTitleObj);
in SetAttributes() 327 napi_set_named_property(env, subObject, options_.attributes.c_str(), subSubObject);
in Convert() 438 case 2: // 2:attributes
in SetDefaultKey() 439 options_.attributes = strRecv;
in SetDefaultKey() 509 napi_set_named_property(env, declObj, options_.attributes.c_str(), attrObj);
in DealSingleLine()
|
H A D | js_convertxml.h | 37 std::string attributes = "_attributes";
member
|
/commonlibrary/ets_utils/js_api_module/convertxml/test/ |
H A D | test_convertxml.cpp | 113 napi_get_named_property(env, declarationObj, op.attributes.c_str(), &declarationProp); in HWTEST_F() 164 * @tc.desc: Convert the xml object containing attributes to a js object. 187 napi_value attributes = nullptr; in HWTEST_F() local 192 napi_get_named_property(env, element, op.attributes.c_str(), &attributes); in HWTEST_F() 193 napi_get_named_property(env, attributes, "colour", &colour); in HWTEST_F() 194 napi_get_named_property(env, attributes, "shape", &shape); in HWTEST_F()
|
Completed in 7 milliseconds