XML document type description. More...
#include <xmlstorage.h>
Public Member Functions | |
void | parse (const char *str) |
bool | empty () const |
Public Attributes | |
std::string | _name |
std::string | _public |
std::string | _system |
XML document type description.
Definition at line 953 of file xmlstorage.h.
bool XMLStorage::DocType::empty | ( | ) | const [inline] |
void XMLStorage::DocType::parse | ( | const char * | str ) |
Definition at line 765 of file xmlstorage.cpp.
Referenced by XMLStorage::ParseContext::process_next().
{ while(isspace((unsigned char)*p)) ++p; const char* start = p; p = get_xmlsym_end_utf8(p); _name.assign(start, p-start); while(isspace((unsigned char)*p)) ++p; start = p; p = get_xmlsym_end_utf8(p); std::string keyword(p, p-start); // "PUBLIC" or "SYSTEM" while(isspace((unsigned char)*p)) ++p; if (*p=='"' || *p=='\'') { char delim = *p; start = ++p; while(*p && *p!=delim) ++p; if (*p == delim) _public.assign(start, p++-start); } else _public.erase(); while(isspace((unsigned char)*p)) ++p; if (*p=='"' || *p=='\'') { char delim = *p; start = ++p; while(*p && *p!=delim) ++p; if (*p == delim) _system.assign(start, p++-start); } else _system.erase(); }
std::string XMLStorage::DocType::_name |
Definition at line 955 of file xmlstorage.h.
Referenced by empty(), and Favorites::write().
std::string XMLStorage::DocType::_public |
Definition at line 958 of file xmlstorage.h.
Referenced by Favorites::write().
std::string XMLStorage::DocType::_system |
Definition at line 959 of file xmlstorage.h.
Referenced by Favorites::write().
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |