CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_convert.h
1
2
3#pragma once
4
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>
12#include <cstdint>
13
14
16namespace System
17{
19class DateTime;
20class DateTimeOffset;
21class Decimal;
22class Guid;
23namespace Internal
24{
25namespace Xml
26{
27namespace XPath
28{
29class IDQuery;
30class NumberFunctions;
31class NumericExpr;
32class StringFunctions;
33class XPathComparerHelper;
34class XPathScanner;
35} // namespace XPath
36} // namespace Xml
37} // namespace Internal
38enum class StringSplitOptions;
39namespace Text
40{
41namespace RegularExpressions
42{
43class Regex;
44} // namespace RegularExpressions
45} // namespace Text
46class TimeSpan;
47class Uri;
48namespace Xml
49{
50class CharEntityEncoderFallbackBuffer;
51class DocumentSchemaValidator;
52class DocumentXmlWriter;
53class DtdParser;
54namespace Schema
55{
56class Datatype_anyURI;
57class Datatype_boolean;
58class Datatype_byte;
59class Datatype_char;
60class Datatype_decimal;
61class Datatype_double;
62class Datatype_duration;
63class Datatype_fixed;
64class Datatype_float;
65class Datatype_hexBinary;
66class Datatype_int;
67class Datatype_integer;
68class Datatype_List;
69class Datatype_long;
70class Datatype_short;
71class Datatype_unsignedByte;
72class Datatype_unsignedInt;
73class Datatype_unsignedLong;
74class Datatype_unsignedShort;
75class Datatype_uuid;
76class NamespaceList;
77class Preprocessor;
78class SchemaCollectionPreprocessor;
79class StringFacetsChecker;
80class XmlBaseConverter;
81class XmlListConverter;
82class XmlMiscConverter;
83class XmlNumeric10Converter;
84class XmlSchemaParticle;
85class XmlSchemaValidator;
86class XmlUntypedConverter;
87class XmlUntypedStringConverter;
88class XsdBuilder;
89} // namespace Schema
90class XmlCharCheckingReader;
91class XmlCharCheckingWriter;
92class XmlEncodedRawTextWriter;
93class XmlNode;
94class XmlQualifiedName;
95class XmlReader;
96class XmlSqlBinaryReader;
97class XmlTextEncoder;
98class XmlTextReaderImpl;
99class XmlTextWriter;
100class XmlUtf8RawTextWriter;
101class XmlWellFormedWriter;
102class XmlWriter;
103namespace XPath
104{
105class XPathNavigator;
106class XPathNavigatorReader;
107} // namespace XPath
108class XsdValidatingReader;
109namespace Xsl
110{
111namespace XsltOld
112{
113class Compiler;
114class ContainerAction;
115class CopyOfAction;
116class NumberAction;
117class Processor;
118class TemplateAction;
119class UseAttributeSetsAction;
120class XsltCompileContext;
121class XsltOutput;
122} // namespace XsltOld
123} // namespace Xsl
124} // namespace Xml
125} // namespace System
127
128namespace System {
129
130namespace Xml {
131
133{
136};
137
140class ASPOSECPP_SHARED_CLASS XmlConvert : public System::Object
141{
142 typedef XmlConvert ThisType;
143 typedef System::Object BaseType;
144
145 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
146 ASPOSECPP_SHARED_RTTI_INFO_DECL();
147
148public:
149
152
153private:
155 friend class XmlSqlBinaryReader;
156 friend class XmlReader;
157 friend class CharEntityEncoderFallbackBuffer;
158 friend class XmlEncodedRawTextWriter;
159 friend class XmlUtf8RawTextWriter;
160 friend class XmlWriter;
161 friend class XmlCharCheckingReader;
162 friend class XmlCharCheckingWriter;
163 friend class XmlReader;
164 friend class XmlTextEncoder;
165 friend class XmlTextReaderImpl;
166 friend class XmlTextWriter;
167 friend class XmlWellFormedWriter;
168 friend class XmlWellFormedWriter;
169 friend class XsdValidatingReader;
170 friend class DocumentSchemaValidator;
171 friend class DocumentXmlWriter;
172 friend class XmlNode;
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;
194 friend class Schema::XmlSchemaParticle;
195 friend class Schema::StringFacetsChecker;
196 friend class Schema::NamespaceList;
197 friend class Schema::Preprocessor;
198 friend class Schema::SchemaCollectionPreprocessor;
199 friend class Schema::XmlSchemaValidator;
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;
207 friend class XmlQualifiedName;
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;
214 friend class XPath::XPathNavigator;
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;
227
228public:
229
233 static ASPOSECPP_SHARED_API String EncodeName(const String& name);
237 static ASPOSECPP_SHARED_API String EncodeNmToken(const String& name);
241 static ASPOSECPP_SHARED_API String EncodeLocalName(const String& name);
245 static ASPOSECPP_SHARED_API String DecodeName(const String& name);
251 static ASPOSECPP_SHARED_API String VerifyName(const String& name);
258 static ASPOSECPP_SHARED_API String VerifyNCName(const String& name);
263 static ASPOSECPP_SHARED_API String VerifyTOKEN(const String& token);
269 static ASPOSECPP_SHARED_API String VerifyNMTOKEN(const String& name);
275 static ASPOSECPP_SHARED_API String VerifyXmlChars(const String& content);
279 static ASPOSECPP_SHARED_API String VerifyPublicId(const String& publicId);
284 static ASPOSECPP_SHARED_API String VerifyWhitespace(const String& content);
288 static ASPOSECPP_SHARED_API bool IsStartNCNameChar(char16_t ch);
292 static ASPOSECPP_SHARED_API bool IsNCNameChar(char16_t ch);
296 static ASPOSECPP_SHARED_API bool IsXmlChar(char16_t ch);
301 static ASPOSECPP_SHARED_API bool IsXmlSurrogatePair(char16_t lowChar, char16_t highChar);
305 static ASPOSECPP_SHARED_API bool IsPublicIdChar(char16_t ch);
309 static ASPOSECPP_SHARED_API bool IsWhitespaceChar(char16_t ch);
313 static ASPOSECPP_SHARED_API String ToString(bool value);
317 static ASPOSECPP_SHARED_API String ToString(char16_t value);
321 static ASPOSECPP_SHARED_API String ToString(Decimal value);
325 static ASPOSECPP_SHARED_API String ToString(int8_t value);
329 static ASPOSECPP_SHARED_API String ToString(int16_t value);
333 static ASPOSECPP_SHARED_API String ToString(int32_t value);
337 static ASPOSECPP_SHARED_API String ToString(int64_t value);
341 static ASPOSECPP_SHARED_API String ToString(uint8_t value);
345 static ASPOSECPP_SHARED_API String ToString(uint16_t value);
349 static ASPOSECPP_SHARED_API String ToString(uint32_t value);
353 static ASPOSECPP_SHARED_API String ToString(uint64_t value);
357 static ASPOSECPP_SHARED_API String ToString(float value);
361 static ASPOSECPP_SHARED_API String ToString(double value);
365 static ASPOSECPP_SHARED_API String ToString(TimeSpan value);
369 static ASPOSECPP_SHARED_API String ToString(DateTime value);
375 static ASPOSECPP_SHARED_API String ToString(DateTime value, const String& format);
382 static ASPOSECPP_SHARED_API String ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption);
386 static ASPOSECPP_SHARED_API String ToString(DateTimeOffset value);
392 static ASPOSECPP_SHARED_API String ToString(DateTimeOffset value, const String& format);
396 static ASPOSECPP_SHARED_API String ToString(Guid value);
402 static ASPOSECPP_SHARED_API bool ToBoolean(String s);
408 static ASPOSECPP_SHARED_API char16_t ToChar(const String& s);
415 static ASPOSECPP_SHARED_API Decimal ToDecimal(const String& s);
422 static ASPOSECPP_SHARED_API int8_t ToSByte(const String& s);
429 static ASPOSECPP_SHARED_API int16_t ToInt16(const String& s);
436 static ASPOSECPP_SHARED_API int32_t ToInt32(const String& s);
443 static ASPOSECPP_SHARED_API int64_t ToInt64(const String& s);
450 static ASPOSECPP_SHARED_API uint8_t ToByte(const String& s);
457 static ASPOSECPP_SHARED_API uint16_t ToUInt16(const String& s);
464 static ASPOSECPP_SHARED_API uint32_t ToUInt32(const String& s);
471 static ASPOSECPP_SHARED_API uint64_t ToUInt64(const String& s);
478 static ASPOSECPP_SHARED_API float ToSingle(String s);
485 static ASPOSECPP_SHARED_API double ToDouble(String s);
490 static ASPOSECPP_SHARED_API TimeSpan ToTimeSpan(const String& s);
496 static ASPOSECPP_SHARED_API DateTime ToDateTime(const String& s);
506 static ASPOSECPP_SHARED_API DateTime ToDateTime(const String& s, const String& format);
516 static ASPOSECPP_SHARED_API DateTime ToDateTime(const String& s, const ArrayPtr<String>& formats);
525 static ASPOSECPP_SHARED_API DateTime ToDateTime(const String& s, XmlDateTimeSerializationMode dateTimeOption);
535 static ASPOSECPP_SHARED_API DateTimeOffset ToDateTimeOffset(const String& s);
544 static ASPOSECPP_SHARED_API DateTimeOffset ToDateTimeOffset(const String& s, const String& format);
552 static ASPOSECPP_SHARED_API DateTimeOffset ToDateTimeOffset(const String& s, const ArrayPtr<String>& formats);
556 static ASPOSECPP_SHARED_API Guid ToGuid(const String& s);
557
558protected:
559
561 static ArrayPtr<char16_t> crt;
562 static ArrayPtr<char16_t> WhitespaceChars;
563
564 static ArrayPtr<uint8_t> FromBinHexString(const String& s);
565 static ArrayPtr<uint8_t> FromBinHexString(const String& s, bool allowOddCount);
566 static String ToBinHexString(const ArrayPtr<uint8_t>& inArray);
567 static Exception TryVerifyName(const String& name);
568 static String VerifyQName(const String& name, ExceptionType exceptionType);
569 static String VerifyNCName(const String& name, ExceptionType exceptionType);
570 static Exception TryVerifyNCName(const String& name);
571 static Exception TryVerifyTOKEN(const String& token);
572 static String VerifyNMTOKEN(const String& name, ExceptionType exceptionType);
573 static Exception TryVerifyNMTOKEN(const String& name);
574 static Exception TryVerifyNormalizedString(const String& str);
575 static Exception TryToBoolean(String s, bool& result);
576 static Exception TryToChar(const String& s, char16_t& result);
577 static Exception TryToDecimal(const String& s, Decimal& result);
578 static Decimal ToInteger(const String& s);
579 static Exception TryToInteger(const String& s, Decimal& result);
580 static Exception TryToSByte(const String& s, int8_t& result);
581 static Exception TryToInt16(const String& s, int16_t& result);
582 static Exception TryToInt32(const String& s, int32_t& result);
583 static Exception TryToInt64(const String& s, int64_t& result);
584 static Exception TryToByte(const String& s, uint8_t& result);
585 static Exception TryToUInt16(const String& s, uint16_t& result);
586 static Exception TryToUInt32(const String& s, uint32_t& result);
587 static Exception TryToUInt64(const String& s, uint64_t& result);
588 static Exception TryToSingle(String s, float& result);
589 static Exception TryToDouble(String s, double& result);
590 static double ToXPathDouble(const SharedPtr<Object>& o);
591 static String ToXPathString(const SharedPtr<Object>& value);
592 static double XPathRound(double value);
593 static Exception TryToTimeSpan(const String& s, TimeSpan& result);
594 static Exception TryToGuid(const String& s, Guid& result);
595 static SharedPtr<Uri> ToUri(String s);
596 static Exception TryToUri(String s, SharedPtr<Uri>& result);
597 static bool StrEqual(const ArrayPtr<char16_t>& chars, int32_t strPos1, int32_t strLen1, const String& str2);
598 static String TrimString(const String& value);
599 static String TrimStringStart(const String& value);
600 static String TrimStringEnd(const String& value);
601 static ArrayPtr<String> SplitString(const String& value);
602 static ArrayPtr<String> SplitString(const String& value, StringSplitOptions splitStringOptions);
603 static bool IsNegativeZero(double value);
604 static void VerifyCharData(const String& data, ExceptionType exceptionType);
605 static void VerifyCharData(const String& data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType);
606 static void VerifyCharData(const ArrayPtr<char16_t>& data, int32_t offset, int32_t len, ExceptionType exceptionType);
607 static String EscapeValueForDebuggerDisplay(const String& value);
608 static Exception CreateException(const String& res, ExceptionType exceptionType, int32_t lineNo, int32_t linePos);
609 static Exception CreateException(const String& res, const String& arg, ExceptionType exceptionType);
610 static Exception CreateException(const String& res, const String& arg, ExceptionType exceptionType, int32_t lineNo, int32_t linePos);
611 static Exception CreateException(const String& res, const ArrayPtr<String>& args, ExceptionType exceptionType);
612 static Exception CreateException(const String& res, const ArrayPtr<String>& args, ExceptionType exceptionType, int32_t lineNo, int32_t linePos);
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);
617 static Exception CreateInvalidHighSurrogateCharException(char16_t hi, ExceptionType exceptionType);
618 static Exception CreateInvalidHighSurrogateCharException(char16_t hi, ExceptionType exceptionType, int32_t lineNo, int32_t linePos);
619 static Exception CreateInvalidCharException(const ArrayPtr<char16_t>& data, int32_t length, int32_t invCharPos, ExceptionType exceptionType);
620 static Exception CreateInvalidCharException(const String& data, int32_t invCharPos);
621 static Exception CreateInvalidCharException(const String& data, int32_t invCharPos, ExceptionType exceptionType);
622 static Exception CreateInvalidCharException(char16_t invChar, char16_t nextChar);
623 static Exception CreateInvalidCharException(char16_t invChar, char16_t nextChar, ExceptionType exceptionType);
624 static Exception CreateInvalidNameCharException(const String& name, int32_t index, ExceptionType exceptionType);
625 static ArgumentException CreateInvalidNameArgumentException(const String& name, const String& argumentName);
627
628private:
629
630 static XmlCharType s_xmlCharType;
631 static int32_t s_encodedCharLength;
632 static SharedPtr<Text::RegularExpressions::Regex> s_encodeCharPattern;
633 static SharedPtr<Text::RegularExpressions::Regex> s_decodeCharPattern;
634 static ArrayPtr<String> s_allDateTimeFormats;
635
636 static ArrayPtr<String> get_AllDateTimeFormats();
637
638 static String EncodeName(const String& name, bool first, bool local);
639 static int32_t FromHex(char16_t digit);
640 static void CreateAllDateTimeFormats();
641 static DateTime SwitchToLocalTime(DateTime value);
642 static DateTime SwitchToUtcTime(DateTime value);
643 static int64_t DoubleToInt64Bits(double value);
644
645 static struct __StaticConstructor__ { __StaticConstructor__(); } s_constructor__;
646
647};
648
649} // namespace Xml
650} // namespace System
651
653template<>
654struct EnumMetaInfo<System::Xml::ExceptionType>
655{
656 static const ASPOSECPP_SHARED_API std::array<std::pair<System::Xml::ExceptionType, const char_t*>, 2>& values();
657};
659
660
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