|
| StringBuilder () |
| Constructor. More...
|
|
| StringBuilder (int capacity) |
| Constructor. More...
|
|
| StringBuilder (const String &str) |
| Constructor. More...
|
|
| StringBuilder (const String &value, int capacity) |
| Constructor. More...
|
|
| StringBuilder (const String &value, int startIndex, int length, int capacity) |
| Constructor. More...
|
|
| ~StringBuilder () |
| Destructor. More...
|
|
int | get_Length () const |
| Gets length of string currently in builder. More...
|
|
void | set_Length (int len) |
| Trunkates or extends string builder to specified length. More...
|
|
int | get_Capacity () const |
| Gets current capacity of string builder. More...
|
|
void | set_Capacity (int capacity) |
| Sets current capacity of string builder. More...
|
|
char_t | operator[] (int index) const |
| Gets character at specified position. More...
|
|
char_t | idx_get (int index) const |
| Gets character at specified position. More...
|
|
void | idx_set (int index, char_t c) |
| Sets character at specified position. More...
|
|
StringBuilder * | Append (char_t c) |
| Adds character to builder. More...
|
|
StringBuilder * | Append (char_t c, int count) |
| Adds characters to builder. More...
|
|
StringBuilder * | Append (const ArrayPtr< char_t > &arr) |
| Adds characters array to builder. More...
|
|
StringBuilder * | Append (const ArrayPtr< char_t > &arr, int startIndex, int charCount) |
| Adds characters array slice to builder. More...
|
|
StringBuilder * | Append (const String &str) |
| Adds string to builder. More...
|
|
StringBuilder * | Append (const String &str, int startIndex, int charCount) |
| Adds string slice to builder. More...
|
|
template<class T > |
StringBuilder * | Append (const SharedPtr< T > &obj) |
| Adds object's string representation to builder. More...
|
|
StringBuilder * | Append (const SharedPtr< StringBuilder > &builder) |
| Adds builder's content to builder. More...
|
|
StringBuilder * | Append (float f) |
| Adds floating point value to builder. More...
|
|
StringBuilder * | Append (double df) |
| Adds floating point value to builder. More...
|
|
StringBuilder * | Append (int i) |
| Adds integer value to builder. More...
|
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, StringBuilder * >::type | Append (T value) |
| Adds arithmetic value to builder. More...
|
|
template<class E > |
std::enable_if< std::is_enum< E >::value, StringBuilder * >::type | Append (E e) |
| Adds enum value string representation to builder. More...
|
|
template<class... TArgs> |
StringBuilder * | AppendFormat (const String &format, const TArgs &... args) |
| Appends formated string to builder. More...
|
|
template<class... TArgs> |
StringBuilder * | AppendFormat (const SharedPtr< IFormatProvider > &fp, const String &format, const TArgs &... args) |
| Appends formated string to builder. More...
|
|
StringBuilder * | AppendLine () |
| Appends new line character to builder. More...
|
|
StringBuilder * | AppendLine (const String &str) |
| Appends string followed by new line character to builder. More...
|
|
StringBuilder * | Clear () |
| Removes all characters from the builder. More...
|
|
StringBuilder * | Insert (int startIndex, const String &str) |
| Inserts string into builder's fixed position. More...
|
|
StringBuilder * | Insert (int32_t index, const String &value, int32_t count) |
| Inserts repeated string into builder's fixed position. More...
|
|
StringBuilder * | Insert (int startIndex, char_t ch) |
| Inserts character into builder's fixed position. More...
|
|
StringBuilder * | Insert (int index, const System::ArrayPtr< char_t > &chars, int startIndex, int charCount) |
| Inserts characters into builder's fixed position. More...
|
|
template<typename T > |
std::enable_if< std::is_arithmetic< T >::value, StringBuilder * >::type | Insert (int startIndex, T value) |
| Inserts value into builder's fixed position. More...
|
|
StringBuilder * | Replace (const String &oldString, const String &newString) |
| Replaces substring through the builder. More...
|
|
StringBuilder * | Replace (const String &oldString, const String &newString, int position, int count) |
| Replaces substring through the builder's range. More...
|
|
StringBuilder * | Replace (char_t oldChar, char_t newChar) |
| Replaces character through the builder. More...
|
|
StringBuilder * | Replace (char_t oldChar, char_t newChar, int startIndex, int count) |
| Replaces character through the builder's range. More...
|
|
StringBuilder * | Remove (int startIndex, int length) |
| Removes fragment from builder. More...
|
|
String | ToString () const override |
| Gets string currently contained in builder. More...
|
|
String | ToString (int startIndex, int length) const |
| Gets substring currently contained in builder. More...
|
|
void | CopyTo (int sourceIndex, System::ArrayPtr< char_t > const &destination, int destinationIndex, int count) |
| Copies builder's data into existing array positions. 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...
|
|
|
typedef SmartPtr< Object > | ptr |
| Alias for smart pointer type. 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...
|
|
Buffer to accumulate string part by part. This type can be allocated either in stack as value type or in heap using System::MakeObject() function. Once the object is allocated, never mix up these two usecases: having SmartPtr pointers onto stack-allocated objects is strictly prohibited.