Lines Matching full:prefix
38 xmlNodePtr FindSeqNode(const xmlNodePtr node, const string& prefix, in FindSeqNode() argument
41 DepthFirstSearch(node, prefix.data(), parent_name.data()); in FindSeqNode()
50 bool GetStringProperty(const xmlNodePtr node, const string& prefix, in GetStringProperty() argument
55 // If prefix is not empty, then the attribute's namespace must not be null. in GetStringProperty()
56 if (((attribute->ns && !prefix.empty() && in GetStringProperty()
57 strcmp(FromXmlChar(attribute->ns->prefix), prefix.data()) == 0) || in GetStringProperty()
58 prefix.empty()) && in GetStringProperty()
71 // E.g. <prefix:node_name>Contents Here</prefix:node_name>
72 bool ReadNodeContent(const xmlNodePtr node, const string& prefix, in ReadNodeContent() argument
74 auto* element = DepthFirstSearch(node, prefix.data(), node_name.data()); in ReadNodeContent()
78 if (!prefix.empty() && in ReadNodeContent()
79 (element->ns == nullptr || element->ns->prefix == nullptr || in ReadNodeContent()
80 strcmp(FromXmlChar(element->ns->prefix), prefix.data()) != 0)) { in ReadNodeContent()
90 bool ReadStringProperty(const xmlNodePtr node, const string& prefix, in ReadStringProperty() argument
100 // Try parsing in the format <Node ... Prefix:Property="Value"/> in ReadStringProperty()
101 bool success = GetStringProperty(node, prefix, property, value); in ReadStringProperty()
103 // Try parsing in the format <Prefix:Property>Value</Prefix:Property> in ReadStringProperty()
104 success = ReadNodeContent(node, prefix, property, value); in ReadStringProperty()
110 bool ReadBase64Property(const xmlNodePtr node, const string& prefix, in ReadBase64Property() argument
113 if (!ReadStringProperty(node, prefix, property, &base64_data)) { in ReadBase64Property()
126 const string& prefix, const string& child_name) const { in CreateDeserializer() argument
132 DepthFirstSearch(node_, prefix.data(), child_name.data()); in CreateDeserializer()
141 DeserializerImpl::CreateDeserializerFromListElementAt(const string& prefix, in CreateDeserializerFromListElementAt() argument
160 list_node_ = DepthFirstSearch(node_, prefix.data(), list_name.data()); in CreateDeserializerFromListElementAt()
183 bool DeserializerImpl::ParseBase64(const string& prefix, const string& name, in ParseBase64() argument
185 return ReadBase64Property(node_, prefix, name, value); in ParseBase64()
188 bool DeserializerImpl::ParseIntArrayBase64(const string& prefix, in ParseIntArrayBase64() argument
192 if (!ReadStringProperty(node_, prefix, name, &base64_data)) { in ParseIntArrayBase64()
198 bool DeserializerImpl::ParseFloatArrayBase64(const string& prefix, in ParseFloatArrayBase64() argument
202 if (!ReadStringProperty(node_, prefix, name, &base64_data)) { in ParseFloatArrayBase64()
209 const string& prefix, const string& name, in ParseDoubleArrayBase64() argument
212 if (!ReadStringProperty(node_, prefix, name, &base64_data)) { in ParseDoubleArrayBase64()
218 bool DeserializerImpl::ParseBoolean(const string& prefix, const string& name, in ParseBoolean() argument
221 if (!ReadStringProperty(node_, prefix, name, &string_value)) { in ParseBoolean()
227 bool DeserializerImpl::ParseDouble(const string& prefix, const string& name, in ParseDouble() argument
230 if (!ReadStringProperty(node_, prefix, name, &string_value)) { in ParseDouble()
237 bool DeserializerImpl::ParseInt(const string& prefix, const string& name, in ParseInt() argument
240 if (!ReadStringProperty(node_, prefix, name, &string_value)) { in ParseInt()
247 bool DeserializerImpl::ParseFloat(const string& prefix, const string& name, in ParseFloat() argument
250 if (!ReadStringProperty(node_, prefix, name, &string_value)) { in ParseFloat()
257 bool DeserializerImpl::ParseLong(const string& prefix, const string& name, in ParseLong() argument
260 if (!ReadStringProperty(node_, prefix, name, &string_value)) { in ParseLong()
267 bool DeserializerImpl::ParseString(const string& prefix, const string& name, in ParseString() argument
269 return ReadStringProperty(node_, prefix, name, value); in ParseString()
272 bool DeserializerImpl::ParseIntArray(const string& prefix, in ParseIntArray() argument
275 xmlNodePtr seq_node = FindSeqNode(node_, prefix, list_name); in ParseIntArray()
297 bool DeserializerImpl::ParseDoubleArray(const string& prefix, in ParseDoubleArray() argument
300 xmlNodePtr seq_node = FindSeqNode(node_, prefix, list_name); in ParseDoubleArray()