Encodes and decodes XML names, and provides methods for converting between runtime types and XML Schema definition language (XSD) types. When converting data types, the values returned are locale-independent.
More...
|
static String | EncodeName (const String &name) |
| Converts the name to a valid XML name. More...
|
|
static String | EncodeNmToken (const String &name) |
| Verifies the name is valid according to the XML specification. More...
|
|
static String | EncodeLocalName (const String &name) |
| Converts the name to a valid XML local name. More...
|
|
static String | DecodeName (const String &name) |
| Decodes a name. This method does the reverse of the XmlConvert::EncodeName(String) and XmlConvert::EncodeLocalName(String) methods. More...
|
|
static String | VerifyName (const String &name) |
| Verifies that the name is a valid name according to the W3C Extended Markup Language recommendation. More...
|
|
static String | VerifyNCName (const String &name) |
| Verifies that the name is a valid NCName according to the W3C Extended Markup Language recommendation. An NCName is a name that cannot contain a colon. More...
|
|
static String | VerifyTOKEN (const String &token) |
| Verifies that the string is a valid token according to the W3C XML Schema Part2: Datatypes recommendation. More...
|
|
static String | VerifyNMTOKEN (const String &name) |
| Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommendation. More...
|
|
static String | VerifyXmlChars (const String &content) |
| Returns the passed-in string if all the characters and surrogate pair characters in the string argument are valid XML characters, otherwise an XmlException is thrown with information on the first invalid character encountered. More...
|
|
static String | VerifyPublicId (const String &publicId) |
| Returns the passed in string instance if all the characters in the string argument are valid public id characters. More...
|
|
static String | VerifyWhitespace (const String &content) |
| Returns the passed-in string instance if all the characters in the string argument are valid whitespace characters. More...
|
|
static bool | IsStartNCNameChar (char16_t ch) |
| Checks if the passed-in character is a valid Start Name Character type. More...
|
|
static bool | IsNCNameChar (char16_t ch) |
| Checks whether the passed-in character is a valid non-colon character type. More...
|
|
static bool | IsXmlChar (char16_t ch) |
| Checks if the passed-in character is a valid XML character. More...
|
|
static bool | IsXmlSurrogatePair (char16_t lowChar, char16_t highChar) |
| Checks if the passed-in surrogate pair of characters is a valid XML character. More...
|
|
static bool | IsPublicIdChar (char16_t ch) |
| Returns the passed-in character instance if the character in the argument is a valid public id character, otherwise nullptr . More...
|
|
static bool | IsWhitespaceChar (char16_t ch) |
| Checks if the passed-in character is a valid XML whitespace character. More...
|
|
static String | ToString (bool value) |
| Converts the Boolean to a String. More...
|
|
static String | ToString (char16_t value) |
| Converts the Char to a String. More...
|
|
static String | ToString (Decimal value) |
| Converts the Decimal to a String. More...
|
|
static String | ToString (int8_t value) |
| Converts the SByte to a String. More...
|
|
static String | ToString (int16_t value) |
| Converts the Int16 to a String. More...
|
|
static String | ToString (int32_t value) |
| Converts the Int32 to a String. More...
|
|
static String | ToString (int64_t value) |
| Converts the Int64 to a String. More...
|
|
static String | ToString (uint8_t value) |
| Converts the Byte to a String. More...
|
|
static String | ToString (uint16_t value) |
| Converts the UInt16 to a String. More...
|
|
static String | ToString (uint32_t value) |
| Converts the UInt32 to a String. More...
|
|
static String | ToString (uint64_t value) |
| Converts the UInt64 to a String. More...
|
|
static String | ToString (float value) |
| Converts the Single to a String. More...
|
|
static String | ToString (double value) |
| Converts the Double to a String. More...
|
|
static String | ToString (TimeSpan value) |
| Converts the TimeSpan to a String. More...
|
|
static String | ToString (DateTime value) |
| Converts the DateTime to a String. More...
|
|
static String | ToString (DateTime value, const String &format) |
| Converts the DateTime to a String. More...
|
|
static String | ToString (DateTime value, XmlDateTimeSerializationMode dateTimeOption) |
| Converts the DateTime to a String using the XmlDateTimeSerializationMode specified. More...
|
|
static String | ToString (DateTimeOffset value) |
| Converts the supplied DateTimeOffset to a String. More...
|
|
static String | ToString (DateTimeOffset value, const String &format) |
| Converts the supplied DateTimeOffset to a String in the specified format. More...
|
|
static String | ToString (Guid value) |
| Converts the Guid to a String. More...
|
|
static bool | ToBoolean (String s) |
| Converts the String to a Boolean equivalent. More...
|
|
static char16_t | ToChar (const String &s) |
| Converts the String to a Char equivalent. More...
|
|
static Decimal | ToDecimal (const String &s) |
| Converts the String to a Decimal equivalent. More...
|
|
static int8_t | ToSByte (const String &s) |
| Converts the String to a SByte equivalent. More...
|
|
static int16_t | ToInt16 (const String &s) |
| Converts the String to a Int16 equivalent. More...
|
|
static int32_t | ToInt32 (const String &s) |
| Converts the String to a Int32 equivalent. More...
|
|
static int64_t | ToInt64 (const String &s) |
| Converts the String to a Int64 equivalent. More...
|
|
static uint8_t | ToByte (const String &s) |
| Converts the String to a Byte equivalent. More...
|
|
static uint16_t | ToUInt16 (const String &s) |
| Converts the String to a UInt16 equivalent. More...
|
|
static uint32_t | ToUInt32 (const String &s) |
| Converts the String to a UInt32 equivalent. More...
|
|
static uint64_t | ToUInt64 (const String &s) |
| Converts the String to a UInt64 equivalent. More...
|
|
static float | ToSingle (String s) |
| Converts the String to a Single equivalent. More...
|
|
static double | ToDouble (String s) |
| Converts the String to a Double equivalent. More...
|
|
static TimeSpan | ToTimeSpan (const String &s) |
| Converts the String to a TimeSpan equivalent. More...
|
|
static DateTime | ToDateTime (const String &s) |
| Converts the String to a DateTime equivalent. More...
|
|
static DateTime | ToDateTime (const String &s, const String &format) |
| Converts the String to a DateTime equivalent. More...
|
|
static DateTime | ToDateTime (const String &s, const ArrayPtr< String > &formats) |
| Converts the String to a DateTime equivalent. More...
|
|
static DateTime | ToDateTime (const String &s, XmlDateTimeSerializationMode dateTimeOption) |
| Converts the String to a DateTime using the XmlDateTimeSerializationMode specified. More...
|
|
static DateTimeOffset | ToDateTimeOffset (const String &s) |
| Converts the supplied String to a DateTimeOffset equivalent. More...
|
|
static DateTimeOffset | ToDateTimeOffset (const String &s, const String &format) |
| Converts the supplied String to a DateTimeOffset equivalent. More...
|
|
static DateTimeOffset | ToDateTimeOffset (const String &s, const ArrayPtr< String > &formats) |
| Converts the supplied String to a DateTimeOffset equivalent. More...
|
|
static Guid | ToGuid (const String &s) |
| Converts the String to a Guid equivalent. More...
|
|
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
| Compares objects by reference. More...
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
| Compares objects by reference. More...
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
| Reference-compares value type object with nullptr. More...
|
|
template<typename T1 , typename T2 > |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares reference type objects in C# style. More...
|
|
template<typename T1 , typename T2 > |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares value type objects in C# style. More...
|
|
static const TypeInfo & | Type () |
| Implements C# typeof(System.Object) construct. More...
|
|
template<> |
bool | Equals (float const &objA, float const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
template<> |
bool | Equals (double const &objA, double const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
|
| Object () |
| Creates object. Initializes all internal data structures. More...
|
|
virtual | ~Object () |
| Destroys object. Frees all internal data structures. More...
|
|
| Object (Object const &x) |
| Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object * | SharedRefAdded () |
| Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
int | SharedRefRemovedSafe () |
| Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
int | RemovedSharedRefs (int count) |
| Decreases shared reference count by specified value. More...
|
|
Detail::SmartPtrCounter * | WeakRefAdded () |
| Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
void | WeakRefRemoved () |
| Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
Detail::SmartPtrCounter * | GetCounter () |
| Gets reference counter data structure associated with the object. More...
|
|
int | SharedCount () const |
| Gets current value of shared reference counter. More...
|
|
void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
|
void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
|
virtual bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More...
|
|
virtual int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
virtual String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
virtual ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
|
virtual bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
|
virtual void | SetTemplateWeakPtr (uint32_t argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
|
|
virtual bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only. More...
|
|
template<> |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
| Specialization of Object::ReferenceEquals for case of string and nullptr. More...
|
|
template<> |
bool | ReferenceEquals (String const &str1, String const &str2) |
| Specialization of Object::ReferenceEquals for case of strings. More...
|
|
Encodes and decodes XML names, and provides methods for converting between runtime types and XML Schema definition language (XSD) types. When converting data types, the values returned are locale-independent.