ReactOS 0.4.15-dev-7958-gcd0bb1a
XMLStorage::DocType Struct Reference

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
 

Detailed Description

XML document type description.

Definition at line 759 of file xmlstorage.h.

Member Function Documentation

◆ empty()

bool XMLStorage::DocType::empty ( ) const
inline

Definition at line 770 of file xmlstorage.h.

770{return _name.empty();}
std::string _name
Definition: xmlstorage.h:761

Referenced by XMLStorage::XMLFormat::print_header().

◆ parse()

void XMLStorage::DocType::parse ( const char str)

Definition at line 698 of file xmlstorage.cpp.

699{
700 while(isspace((unsigned char)*p)) ++p;
701
702 const char* start = p;
704 _name.assign(start, p-start);
705
706 while(isspace((unsigned char)*p)) ++p;
707
708 start = p;
710 std::string keyword(p, p-start); // "PUBLIC" or "SYSTEM"
711
712 while(isspace((unsigned char)*p)) ++p;
713
714 if (*p=='"' || *p=='\'') {
715 char delim = *p;
716
717 start = ++p;
718 while(*p && *p!=delim) ++p;
719
720 if (*p == delim)
721 _public.assign(start, p++-start);
722 } else
723 _public.erase();
724
725 while(isspace((unsigned char)*p)) ++p;
726
727 if (*p=='"' || *p=='\'') {
728 char delim = *p;
729
730 start = ++p;
731 while(*p && *p!=delim) ++p;
732
733 if (*p == delim)
734 _system.assign(start, p++-start);
735 } else
736 _system.erase();
737}
#define isspace(c)
Definition: acclib.h:69
GLuint start
Definition: gl.h:1545
GLfloat GLfloat p
Definition: glext.h:8902
const char * get_xmlsym_end_utf8(const char *p)
Definition: xmlstorage.cpp:682
std::string _public
Definition: xmlstorage.h:764
std::string _system
Definition: xmlstorage.h:765

Referenced by XMLStorage::XMLReaderBase::parse().

Member Data Documentation

◆ _name

std::string XMLStorage::DocType::_name

Definition at line 761 of file xmlstorage.h.

Referenced by empty(), parse(), and XMLStorage::XMLFormat::print_header().

◆ _public

std::string XMLStorage::DocType::_public

Definition at line 764 of file xmlstorage.h.

Referenced by parse(), and XMLStorage::XMLFormat::print_header().

◆ _system

std::string XMLStorage::DocType::_system

Definition at line 765 of file xmlstorage.h.

Referenced by parse(), and XMLStorage::XMLFormat::print_header().


The documentation for this struct was generated from the following files: