Lines Matching refs:string
14 static string
15 xml_text_escape(const string& s) in xml_text_escape()
17 string result; in xml_text_escape()
39 static string
40 xml_attr_escape(const string& s) in xml_attr_escape()
42 string result; in xml_attr_escape()
71 string
72 XMLNamespaceMap::Get(const string& ns) const in Get()
77 map<string,string>::const_iterator it = m_map.find(ns); in Get()
85 string
86 XMLNamespaceMap::GetPrefix(const string& ns) const in GetPrefix()
91 map<string,string>::const_iterator it = m_map.find(ns); in GetPrefix()
106 map<string,string>::const_iterator it; in AddToAttributes()
134 XMLAttribute::XMLAttribute(string n, string na, string v) in XMLAttribute()
157 string
158 XMLAttribute::Find(const vector<XMLAttribute>& list, const string& ns, const string& name, in Find()
159 const string& def) in Find()
175 string filename;
208 XMLNode::NewElement(const SourcePos& pos, const string& ns, const string& name, in NewElement()
222 XMLNode::NewText(const SourcePos& pos, const string& text, int pretty) in NewText()
242 string
248 string
254 string
260 string
261 XMLNode::contents_to_string(const XMLNamespaceMap& nspaces, const string& indent) const in contents_to_string()
263 string result; in contents_to_string()
281 string
282 trim_string(const string& str) in trim_string()
293 return string(p, q-p); in trim_string()
296 string
297 XMLNode::open_tag_to_string(const XMLNamespaceMap& nspaces, const string& indent, int pretty) const in open_tag_to_string()
302 string result = "<"; in open_tag_to_string()
337 string
338 XMLNode::to_string(const XMLNamespaceMap& nspaces, const string& indent) const in to_string()
350 string result = open_tag_to_string(nspaces, indent, PRETTY); in to_string()
372 string
379 string result; in CollapseTextContents()
394 XMLNode::GetElementsByName(const string& ns, const string& name) const in GetElementsByName()
408 XMLNode::GetElementByNameAt(const string& ns, const string& name, size_t index) const in GetElementByNameAt()
426 XMLNode::CountElementsByName(const string& ns, const string& name) const in CountElementsByName()
439 string
440 XMLNode::GetAttribute(const string& ns, const string& name, const string& def) const in GetAttribute()
446 parse_namespace(const char* data, string* ns, string* name) in parse_namespace()
490 string nsString; in start_element_handler()
491 string nameString; in start_element_handler()
534 string nsString; in end_element_handler()
535 string nameString; in end_element_handler()
548 handler->OnText(pos, string(s, len)); in text_handler()
557 handler->OnComment(pos, string(comment)); in comment_handler()
561 XMLHandler::ParseFile(const string& filename, XMLHandler* handler) in ParseFile()
607 XMLHandler::ParseString(const string& filename, const string& text, XMLHandler* handler) in ParseString()
640 XMLHandler::OnStartElement(const SourcePos& pos, const string& ns, const string& name, in OnStartElement()
647 XMLHandler::OnEndElement(const SourcePos& pos, const string& ns, const string& name) in OnEndElement()
653 XMLHandler::OnText(const SourcePos& pos, const string& text) in OnText()
659 XMLHandler::OnComment(const SourcePos& pos, const string& text) in OnComment()
670 TopElementHandler::TopElementHandler(const string& ns, const string& name, XMLHandler* next) in TopElementHandler()
678 TopElementHandler::OnStartElement(const SourcePos& pos, const string& ns, const string& name, in OnStartElement()
686 TopElementHandler::OnEndElement(const SourcePos& pos, const string& ns, const string& name) in OnEndElement()
692 TopElementHandler::OnText(const SourcePos& pos, const string& text) in OnText()
718 NodeHandler::OnStartElement(const SourcePos& pos, const string& ns, const string& name, in OnStartElement()
742 NodeHandler::OnEndElement(const SourcePos& pos, const string& ns, const string& name) in OnEndElement()
749 NodeHandler::OnText(const SourcePos& pos, const string& text) in OnText()
760 NodeHandler::OnComment(const SourcePos& pos, const string& text) in OnComment()
772 NodeHandler::ParseFile(const string& filename, int pretty) in ParseFile()
783 NodeHandler::ParseString(const string& filename, const string& text, int pretty) in ParseString()