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 ASPOSECPP_SHARED_API String | EncodeName (const String &name) |
| Converts the name to a valid XML name. More...
|
|
static ASPOSECPP_SHARED_API String | EncodeNmToken (const String &name) |
| Verifies the name is valid according to the XML specification. More...
|
|
static ASPOSECPP_SHARED_API String | EncodeLocalName (const String &name) |
| Converts the name to a valid XML local name. More...
|
|
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API String | VerifyName (const String &name) |
| Verifies that the name is a valid name according to the W3C Extended Markup Language recommendation. More...
|
|
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API String | VerifyTOKEN (const String &token) |
| Verifies that the string is a valid token according to the W3C XML Schema Part2: Datatypes recommendation. More...
|
|
static ASPOSECPP_SHARED_API String | VerifyNMTOKEN (const String &name) |
| Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommendation. More...
|
|
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | IsStartNCNameChar (char16_t ch) |
| Checks if the passed-in character is a valid Start Name Character type. More...
|
|
static ASPOSECPP_SHARED_API bool | IsNCNameChar (char16_t ch) |
| Checks whether the passed-in character is a valid non-colon character type. More...
|
|
static ASPOSECPP_SHARED_API bool | IsXmlChar (char16_t ch) |
| Checks if the passed-in character is a valid XML character. More...
|
|
static ASPOSECPP_SHARED_API bool | IsXmlSurrogatePair (char16_t lowChar, char16_t highChar) |
| Checks if the passed-in surrogate pair of characters is a valid XML character. More...
|
|
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | IsWhitespaceChar (char16_t ch) |
| Checks if the passed-in character is a valid XML whitespace character. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (bool value) |
| Converts the Boolean to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (char16_t value) |
| Converts the Char to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (Decimal value) |
| Converts the Decimal to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (int8_t value) |
| Converts the SByte to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (int16_t value) |
| Converts the Int16 to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (int32_t value) |
| Converts the Int32 to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (int64_t value) |
| Converts the Int64 to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (uint8_t value) |
| Converts the Byte to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (uint16_t value) |
| Converts the UInt16 to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (uint32_t value) |
| Converts the UInt32 to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (uint64_t value) |
| Converts the UInt64 to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (float value) |
| Converts the Single to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (double value) |
| Converts the Double to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (TimeSpan value) |
| Converts the TimeSpan to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (DateTime value) |
| Converts the DateTime to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (DateTime value, const String &format) |
| Converts the DateTime to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (DateTime value, XmlDateTimeSerializationMode dateTimeOption) |
| Converts the DateTime to a String using the XmlDateTimeSerializationMode specified. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (DateTimeOffset value) |
| Converts the supplied DateTimeOffset to a String. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (DateTimeOffset value, const String &format) |
| Converts the supplied DateTimeOffset to a String in the specified format. More...
|
|
static ASPOSECPP_SHARED_API String | ToString (Guid value) |
| Converts the Guid to a String. More...
|
|
static ASPOSECPP_SHARED_API bool | ToBoolean (String s) |
| Converts the String to a Boolean equivalent. More...
|
|
static ASPOSECPP_SHARED_API char16_t | ToChar (const String &s) |
| Converts the String to a Char equivalent. More...
|
|
static ASPOSECPP_SHARED_API Decimal | ToDecimal (const String &s) |
| Converts the String to a Decimal equivalent. More...
|
|
static ASPOSECPP_SHARED_API int8_t | ToSByte (const String &s) |
| Converts the String to a SByte equivalent. More...
|
|
static ASPOSECPP_SHARED_API int16_t | ToInt16 (const String &s) |
| Converts the String to a Int16 equivalent. More...
|
|
static ASPOSECPP_SHARED_API int32_t | ToInt32 (const String &s) |
| Converts the String to a Int32 equivalent. More...
|
|
static ASPOSECPP_SHARED_API int64_t | ToInt64 (const String &s) |
| Converts the String to a Int64 equivalent. More...
|
|
static ASPOSECPP_SHARED_API uint8_t | ToByte (const String &s) |
| Converts the String to a Byte equivalent. More...
|
|
static ASPOSECPP_SHARED_API uint16_t | ToUInt16 (const String &s) |
| Converts the String to a UInt16 equivalent. More...
|
|
static ASPOSECPP_SHARED_API uint32_t | ToUInt32 (const String &s) |
| Converts the String to a UInt32 equivalent. More...
|
|
static ASPOSECPP_SHARED_API uint64_t | ToUInt64 (const String &s) |
| Converts the String to a UInt64 equivalent. More...
|
|
static ASPOSECPP_SHARED_API float | ToSingle (String s) |
| Converts the String to a Single equivalent. More...
|
|
static ASPOSECPP_SHARED_API double | ToDouble (String s) |
| Converts the String to a Double equivalent. More...
|
|
static ASPOSECPP_SHARED_API TimeSpan | ToTimeSpan (const String &s) |
| Converts the String to a TimeSpan equivalent. More...
|
|
static ASPOSECPP_SHARED_API DateTime | ToDateTime (const String &s) |
| Converts the String to a DateTime equivalent. More...
|
|
static ASPOSECPP_SHARED_API DateTime | ToDateTime (const String &s, const String &format) |
| Converts the String to a DateTime equivalent. More...
|
|
static ASPOSECPP_SHARED_API DateTime | ToDateTime (const String &s, const ArrayPtr< String > &formats) |
| Converts the String to a DateTime equivalent. More...
|
|
static ASPOSECPP_SHARED_API DateTime | ToDateTime (const String &s, XmlDateTimeSerializationMode dateTimeOption) |
| Converts the String to a DateTime using the XmlDateTimeSerializationMode specified. More...
|
|
static ASPOSECPP_SHARED_API DateTimeOffset | ToDateTimeOffset (const String &s) |
| Converts the supplied String to a DateTimeOffset equivalent. More...
|
|
static ASPOSECPP_SHARED_API DateTimeOffset | ToDateTimeOffset (const String &s, const String &format) |
| Converts the supplied String to a DateTimeOffset equivalent. More...
|
|
static ASPOSECPP_SHARED_API DateTimeOffset | ToDateTimeOffset (const String &s, const ArrayPtr< String > &formats) |
| Converts the supplied String to a DateTimeOffset equivalent. More...
|
|
static ASPOSECPP_SHARED_API 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...
|
|
|
ASPOSECPP_SHARED_API | Object () |
| Creates object. Initializes all internal data structures. More...
|
|
virtual ASPOSECPP_SHARED_API | ~Object () |
| Destroys object. Frees all internal data structures. More...
|
|
ASPOSECPP_SHARED_API | 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...
|
|
ASPOSECPP_SHARED_API void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
|
ASPOSECPP_SHARED_API void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
|
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More...
|
|
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
virtual ASPOSECPP_SHARED_API String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
|
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
|
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only. 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...
|
|
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.