5#include <xml/xml_date_time_serialization_mode.h>
6#include <xml/xml_char_type.h>
7#include <system/object_ext.h>
8#include <system/exceptions.h>
9#include <system/enum_helpers.h>
10#include <system/enum.h>
11#include <system/array.h>
33class XPathComparerHelper;
41namespace RegularExpressions
50class CharEntityEncoderFallbackBuffer;
51class DocumentSchemaValidator;
52class DocumentXmlWriter;
57class Datatype_boolean;
60class Datatype_decimal;
62class Datatype_duration;
65class Datatype_hexBinary;
67class Datatype_integer;
71class Datatype_unsignedByte;
72class Datatype_unsignedInt;
73class Datatype_unsignedLong;
74class Datatype_unsignedShort;
78class SchemaCollectionPreprocessor;
79class StringFacetsChecker;
80class XmlBaseConverter;
81class XmlListConverter;
82class XmlMiscConverter;
83class XmlNumeric10Converter;
84class XmlSchemaParticle;
85class XmlSchemaValidator;
86class XmlUntypedConverter;
87class XmlUntypedStringConverter;
90class XmlCharCheckingReader;
91class XmlCharCheckingWriter;
92class XmlEncodedRawTextWriter;
94class XmlQualifiedName;
96class XmlSqlBinaryReader;
98class XmlTextReaderImpl;
100class XmlUtf8RawTextWriter;
101class XmlWellFormedWriter;
106class XPathNavigatorReader;
108class XsdValidatingReader;
114class ContainerAction;
119class UseAttributeSetsAction;
120class XsltCompileContext;
145 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
146 ASPOSECPP_SHARED_RTTI_INFO_DECL();
155 friend class XmlSqlBinaryReader;
157 friend class CharEntityEncoderFallbackBuffer;
158 friend class XmlEncodedRawTextWriter;
159 friend class XmlUtf8RawTextWriter;
161 friend class XmlCharCheckingReader;
162 friend class XmlCharCheckingWriter;
164 friend class XmlTextEncoder;
165 friend class XmlTextReaderImpl;
167 friend class XmlWellFormedWriter;
168 friend class XmlWellFormedWriter;
169 friend class XsdValidatingReader;
170 friend class DocumentSchemaValidator;
171 friend class DocumentXmlWriter;
173 friend class Schema::Datatype_List;
174 friend class Schema::Datatype_boolean;
175 friend class Schema::Datatype_float;
176 friend class Schema::Datatype_double;
177 friend class Schema::Datatype_decimal;
178 friend class Schema::Datatype_duration;
179 friend class Schema::Datatype_hexBinary;
180 friend class Schema::Datatype_anyURI;
181 friend class Schema::Datatype_integer;
182 friend class Schema::Datatype_long;
183 friend class Schema::Datatype_int;
184 friend class Schema::Datatype_short;
185 friend class Schema::Datatype_byte;
186 friend class Schema::Datatype_unsignedLong;
187 friend class Schema::Datatype_unsignedInt;
188 friend class Schema::Datatype_unsignedShort;
189 friend class Schema::Datatype_unsignedByte;
190 friend class Schema::Datatype_char;
191 friend class Schema::Datatype_fixed;
192 friend class Schema::Datatype_uuid;
193 friend class DtdParser;
195 friend class Schema::StringFacetsChecker;
196 friend class Schema::NamespaceList;
197 friend class Schema::Preprocessor;
198 friend class Schema::SchemaCollectionPreprocessor;
200 friend class Schema::XmlUntypedStringConverter;
201 friend class Schema::XmlBaseConverter;
202 friend class Schema::XmlNumeric10Converter;
203 friend class Schema::XmlMiscConverter;
204 friend class Schema::XmlUntypedConverter;
205 friend class Schema::XmlListConverter;
206 friend class Schema::XsdBuilder;
208 friend class Internal::Xml::XPath::XPathComparerHelper;
209 friend class Internal::Xml::XPath::IDQuery;
210 friend class Internal::Xml::XPath::NumberFunctions;
211 friend class Internal::Xml::XPath::NumericExpr;
212 friend class Internal::Xml::XPath::StringFunctions;
213 friend class Internal::Xml::XPath::XPathScanner;
215 friend class XPath::XPathNavigatorReader;
216 friend class Xsl::XsltOld::ContainerAction;
217 friend class Xsl::XsltOld::Compiler;
218 friend class Xsl::XsltOld::CopyOfAction;
219 friend class Xsl::XsltOld::TemplateAction;
220 friend class Xsl::XsltOld::UseAttributeSetsAction;
221 friend class Xsl::XsltOld::NumberAction;
222 friend class Xsl::XsltOld::Processor;
223 friend class Xsl::XsltOld::XsltCompileContext;
224 friend class Xsl::XsltOld::XsltCompileContext;
225 friend class Xsl::XsltOld::XsltOutput;
296 static ASPOSECPP_SHARED_API
bool IsXmlChar(
char16_t ch);
592 static double XPathRound(
double value);
603 static bool IsNegativeZero(
double value);
607 static String EscapeValueForDebuggerDisplay(
const String& value);
613 static Exception CreateInvalidSurrogatePairException(
char16_t low,
char16_t hi);
614 static Exception CreateInvalidSurrogatePairException(
char16_t low,
char16_t hi,
ExceptionType exceptionType);
615 static Exception CreateInvalidSurrogatePairException(
char16_t low,
char16_t hi,
ExceptionType exceptionType, int32_t lineNo, int32_t linePos);
616 static Exception CreateInvalidHighSurrogateCharException(
char16_t hi);
618 static Exception CreateInvalidHighSurrogateCharException(
char16_t hi,
ExceptionType exceptionType, int32_t lineNo, int32_t linePos);
620 static Exception CreateInvalidCharException(
const String& data, int32_t invCharPos);
622 static Exception CreateInvalidCharException(
char16_t invChar,
char16_t nextChar);
623 static Exception CreateInvalidCharException(
char16_t invChar,
char16_t nextChar,
ExceptionType exceptionType);
631 static int32_t s_encodedCharLength;
638 static String EncodeName(
const String& name,
bool first,
bool local);
639 static int32_t FromHex(
char16_t digit);
640 static void CreateAllDateTimeFormats();
643 static int64_t DoubleToInt64Bits(
double value);
645 static struct __StaticConstructor__ { __StaticConstructor__(); } s_constructor__;
654struct EnumMetaInfo<
System::Xml::ExceptionType>
656 static const ASPOSECPP_SHARED_API std::array<std::pair<System::Xml::ExceptionType, const char_t*>, 2>& values();
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Contains the date and time of day relative to Coordinated Universal Time. Objects of this class shoul...
Definition: date_time_offset.h:16
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
ArgumentException is thrown when an argument passed to a method being invoked is invalid....
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:34
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a time interval. This type should be allocated on stack and passed to functions by value o...
Definition: timespan.h:59
A base class for that is the base class for all particle types (e.g. XmlSchemaAny).
Definition: xml_schema_particle.h:47
Represents an XML Schema Definition Language (XSD) Schema validation engine. The XmlSchemaValidator c...
Definition: xml_schema_validator.h:93
Provides a cursor model for navigating and editing XML data.
Definition: xpath_navigator.h:89
For internal purposes. Do not use this class directly.
Definition: xml_char_type.h:61
Encodes and decodes XML names, and provides methods for converting between runtime types and XML Sche...
Definition: xml_convert.h:141
static String DecodeName(const String &name)
Decodes a name. This method does the reverse of the XmlConvert::EncodeName(String) and XmlConvert::En...
static String ToString(uint64_t value)
Converts the UInt64 to a String.
static String ToString(uint16_t value)
Converts the UInt16 to a String.
static bool IsStartNCNameChar(char16_t ch)
Checks if the passed-in character is a valid Start Name Character type.
static DateTimeOffset ToDateTimeOffset(const String &s, const ArrayPtr< String > &formats)
Converts the supplied String to a DateTimeOffset equivalent.
static String ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption)
Converts the DateTime to a String using the XmlDateTimeSerializationMode specified.
static uint16_t ToUInt16(const String &s)
Converts the String to a UInt16 equivalent.
static String VerifyXmlChars(const String &content)
Returns the passed-in string if all the characters and surrogate pair characters in the string argume...
static String VerifyTOKEN(const String &token)
Verifies that the string is a valid token according to the W3C XML Schema Part2: Datatypes recommenda...
static String VerifyWhitespace(const String &content)
Returns the passed-in string instance if all the characters in the string argument are valid whitespa...
static DateTime ToDateTime(const String &s, XmlDateTimeSerializationMode dateTimeOption)
Converts the String to a DateTime using the XmlDateTimeSerializationMode specified.
static int32_t ToInt32(const String &s)
Converts the String to a Int32 equivalent.
static DateTimeOffset ToDateTimeOffset(const String &s, const String &format)
Converts the supplied String to a DateTimeOffset equivalent.
static DateTime ToDateTime(const String &s)
Converts the String to a DateTime equivalent.
static uint8_t ToByte(const String &s)
Converts the String to a Byte equivalent.
static String ToString(uint8_t value)
Converts the Byte to a String.
static String ToString(double value)
Converts the Double to a String.
static DateTime ToDateTime(const String &s, const String &format)
Converts the String to a DateTime equivalent.
static String ToString(float value)
Converts the Single to a String.
static String ToString(int32_t value)
Converts the Int32 to a String.
static String ToString(DateTimeOffset value)
Converts the supplied DateTimeOffset to a String.
static bool IsPublicIdChar(char16_t ch)
Returns the passed-in character instance if the character in the argument is a valid public id charac...
static String ToString(DateTime value, const String &format)
Converts the DateTime to a String.
static Decimal ToDecimal(const String &s)
Converts the String to a Decimal equivalent.
static bool IsWhitespaceChar(char16_t ch)
Checks if the passed-in character is a valid XML whitespace character.
static bool IsXmlSurrogatePair(char16_t lowChar, char16_t highChar)
Checks if the passed-in surrogate pair of characters is a valid XML character.
static DateTime ToDateTime(const String &s, const ArrayPtr< String > &formats)
Converts the String to a DateTime equivalent.
static bool ToBoolean(String s)
Converts the String to a Boolean equivalent.
static float ToSingle(String s)
Converts the String to a Single equivalent.
static String EncodeLocalName(const String &name)
Converts the name to a valid XML local name.
static String VerifyNMTOKEN(const String &name)
Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommen...
static String ToString(int8_t value)
Converts the SByte to a String.
static String ToString(TimeSpan value)
Converts the TimeSpan to a String.
static int8_t ToSByte(const String &s)
Converts the String to a SByte equivalent.
static uint64_t ToUInt64(const String &s)
Converts the String to a UInt64 equivalent.
static String ToString(DateTime value)
Converts the DateTime to a String.
static String ToString(int16_t value)
Converts the Int16 to a String.
static int64_t ToInt64(const String &s)
Converts the String to a Int64 equivalent.
static String ToString(Decimal value)
Converts the Decimal to a String.
static String VerifyNCName(const String &name)
Verifies that the name is a valid NCName according to the W3C Extended Markup Language recommendation...
static String EncodeNmToken(const String &name)
Verifies the name is valid according to the XML specification.
static Guid ToGuid(const String &s)
Converts the String to a Guid equivalent.
static String ToString(char16_t value)
Converts the Char to a String.
static String ToString(uint32_t value)
Converts the UInt32 to a String.
static uint32_t ToUInt32(const String &s)
Converts the String to a UInt32 equivalent.
static String VerifyPublicId(const String &publicId)
Returns the passed in string instance if all the characters in the string argument are valid public i...
static String ToString(DateTimeOffset value, const String &format)
Converts the supplied DateTimeOffset to a String in the specified format.
static DateTimeOffset ToDateTimeOffset(const String &s)
Converts the supplied String to a DateTimeOffset equivalent.
static bool IsXmlChar(char16_t ch)
Checks if the passed-in character is a valid XML character.
static int16_t ToInt16(const String &s)
Converts the String to a Int16 equivalent.
static bool IsNCNameChar(char16_t ch)
Checks whether the passed-in character is a valid non-colon character type.
static String EncodeName(const String &name)
Converts the name to a valid XML name.
static double ToDouble(String s)
Converts the String to a Double equivalent.
static String VerifyName(const String &name)
Verifies that the name is a valid name according to the W3C Extended Markup Language recommendation.
static String ToString(Guid value)
Converts the Guid to a String.
static String ToString(int64_t value)
Converts the Int64 to a String.
static TimeSpan ToTimeSpan(const String &s)
Converts the String to a TimeSpan equivalent.
static String ToString(bool value)
Converts the Boolean to a String.
static char16_t ToChar(const String &s)
Converts the String to a Char equivalent.
Represents a single node in the XML document.
Definition: xml_node.h:75
Represents an XML qualified name.
Definition: xml_qualified_name.h:55
Represents a reader that provides fast, noncached, forward-only access to XML data.
Definition: xml_reader.h:73
Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files...
Definition: xml_text_writer.h:52
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
Definition: xml_writer.h:45
@ Text
Defines color adjustment information for text.
ExceptionType
Definition: xml_convert.h:133
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ Xml
Serialize according to the XML 1.0 rules.
XmlDateTimeSerializationMode
Specifies how to treat the time value when converting between string and DateTime.
Definition: xml_date_time_serialization_mode.h:15
Definition: db_command.h:9
@ DateTime
A type representing a date and time value.
@ Decimal
A simple type representing values ranging from 1.0 x 10 -28 to approximately 7.9 x 10 28 with 28-29 s...
StringSplitOptions
Determines string splitting behavior.
Definition: string.h:54