PCL
|
Utility functions and data for XML document parsing and generation. More...
#include <XML.h>
Public Member Functions | |
XML ()=delete | |
XML (const XML &)=delete | |
~XML ()=delete | |
XML & | operator= (const XML &)=delete |
Static Public Member Functions | |
static String | CollapsedSpaces (const String &text) |
static String | CollapsedSpaces (String::const_iterator i, String::const_iterator j) |
static String | DecodedText (const String &text) |
static String | DecodedText (String::const_iterator i, String::const_iterator j) |
static String | EncodedText (const String &text, bool apos=true) |
static String | EncodedText (String::const_iterator i, String::const_iterator j, bool apos=true) |
template<typename T > | |
static bool | IsLineBreakChar (T c) |
template<typename T > | |
static bool | IsNameChar (T c) |
template<typename T > | |
static bool | IsNameStartChar (T c) |
template<typename T > | |
static bool | IsRestrictedChar (T c) |
template<typename T > | |
static bool | IsSpaceChar (T c) |
static bool | IsValidName (const String &name) |
template<typename T > | |
static bool | IsWhiteSpaceChar (T c) |
static String | ReferenceValue (const String &reference) |
static String | ReferenceValue (String::const_iterator i, String::const_iterator j) |
static String | TrimmedSpaces (const String &text) |
static String | TrimmedSpaces (String::const_iterator i, String::const_iterator j) |
|
delete |
Default constructor. This constructor is disabled because XML is not an instantiable class.
|
delete |
Copy constructor. This constructor is disabled because XML is not an instantiable class.
|
delete |
Destructor. This destructor is disabled because XML is not an instantiable class.
Returns a copy of the specified text with all sequences of one or more space characters replaced with single white space characters (#x20).
|
static |
Returns a copy of the text fragment defined by the range [i,j) of string iterators with all sequences of one or more space characters replaced with single white space characters (#x20).
Referenced by pcl::XMLText::SpaceTransformedText().
Returns a copy of the specified text with all XML references replaced by their corresponding UTF-16 characters.
See DecodedText( String::const_iterator, String::const_iterator ) for a detailed description.
|
static |
Returns a copy of the text fragment defined by the range [i,j) of string iterators with all XML references replaced by their corresponding UTF-16 characters.
Both entity and character references are decoded by this function. For entity references, the entire set of XML reference names is supported:
http://www.w3.org/TR/xml-entity-names/
Character references are interpreted as defined in the XML specification:
Returns a copy of the specified text with all occurences of '&', '<', '>' and '"' replaced with the entity references "amp", "lt", "gt" and "quot", respectively. If apos is true, single quotes will also be replaced with "apos" entities.
|
inlinestatic |
Returns a copy of the text fragment defined by the range [i,j) of string iterators with all occurences of '&', '<', '>' and '"' replaced with the entity references "amp", "lt", "gt" and "quot", respectively. If apos is true, single quotes will also be replaced with "apos" entities.
Definition at line 278 of file XML.h.
Referenced by pcl::XMLText::EncodedText(), and pcl::XMLAttribute::EncodedValue().
|
inlinestatic |
|
inlinestatic |
Returns true iff the specified character c is an XML NameChar:
|
inlinestatic |
Returns true iff the specified character c is an XML NameStartChar:
|
inlinestatic |
Returns true iff the specified character c is an XML RestrictedChar:
|
inlinestatic |
Returns true iff the specified character c is an XML space character:
|
inlinestatic |
Returns true iff the specified name is a valid XML qualified element or attribute name:
https://www.w3.org/TR/xml-names/#ns-qualnames
Definition at line 207 of file XML.h.
References pcl::GenericString< T, R, A >::Begin(), pcl::GenericString< T, R, A >::End(), and pcl::GenericString< T, R, A >::IsEmpty().
|
inlinestatic |
Copy assignment. This operator is disabled because XML is not an instantiable class.
Returns the Unicode value (encoded as UTF-16) corresponding to the specified XML reference.
See ReferenceValue( String::const_iterator, String::const_iterator ) for a detailed description.
Definition at line 316 of file XML.h.
References pcl::GenericString< T, R, A >::Begin(), and pcl::GenericString< T, R, A >::End().
|
static |
Returns the Unicode value (encoded as UTF-16) corresponding to an XML reference defined by the range [i,j) of string iterators:
https://www.w3.org/TR/xml11/#NT-Reference
Both entity and character references are decoded by this function. For entity references, the entire set of XML reference names is supported:
http://www.w3.org/TR/xml-entity-names/
Character references are interpreted as defined in the XML specification:
Returns a copy of the specified text with all leading and trailing space characters removed.
|
static |
Returns a copy of the text fragment defined by the range [i,j) of string iterators with all leading and trailing space characters removed.
Referenced by pcl::XMLText::SpaceTransformedText().