2#ifndef _aspose_system_text_string_builder_h_
3#define _aspose_system_text_string_builder_h_
5#include <system/exceptions.h>
6#include <system/string.h>
7#include <system/array.h>
8#include <system/enum.h>
9#include <system/convert.h>
60 ASPOSECPP_SHARED_API char_t
idx_get(
int index)
const;
64 ASPOSECPP_SHARED_API
void idx_set(
int index, char_t c);
144 template<
class... TArgs>
155 template<
class... TArgs>
202 typename std::enable_if<std::is_arithmetic<T>::value,
StringBuilder*>::type
Insert(
int startIndex, T value)
257 System::Detail::UnicodeStringHolder m_storage;
262 void CheckBounds(
int index,
int count)
const;
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
static String Format(const SharedPtr< IFormatProvider > &fp, const String &format, const Args &... args)
Formats string in C# style.
Definition: string.h:1405
static const String Empty
Empty string.
Definition: string.h:894
Buffer to accumulate string part by part. This type can be allocated either in stack as value type or...
Definition: string_builder.h:17
void idx_set(int index, char_t c)
Sets character at specified position.
String ToString() const override
Gets string currently contained in builder.
StringBuilder * Append(char_t c, int count)
Adds characters to builder.
StringBuilder * Replace(const String &oldString, const String &newString, int position, int count)
Replaces substring through the builder's range.
StringBuilder * Remove(int startIndex, int length)
Removes fragment from builder.
std::enable_if< std::is_arithmetic< T >::value, StringBuilder * >::type Append(T value)
Adds arithmetic value to builder.
Definition: string_builder.h:122
StringBuilder * Clear()
Removes all characters from the builder.
char_t idx_get(int index) const
Gets character at specified position.
StringBuilder * Append(float f)
Adds floating point value to builder.
StringBuilder(const String &str)
Constructor.
StringBuilder * Replace(char_t oldChar, char_t newChar, int startIndex, int count)
Replaces character through the builder's range.
char_t operator[](int index) const
Gets character at specified position.
StringBuilder * Append(const ArrayPtr< char_t > &arr)
Adds characters array to builder.
StringBuilder * Insert(int startIndex, const String &str)
Inserts string into builder's fixed position.
StringBuilder * AppendLine(const String &str)
Appends string followed by new line character to builder.
std::enable_if< std::is_arithmetic< T >::value, StringBuilder * >::type Insert(int startIndex, T value)
Inserts value into builder's fixed position.
Definition: string_builder.h:202
StringBuilder(const String &value, int capacity)
Constructor.
StringBuilder * Append(const ArrayPtr< char_t > &arr, int startIndex, int charCount)
Adds characters array slice to builder.
StringBuilder * Insert(int index, const System::ArrayPtr< char_t > &chars, int startIndex, int charCount)
Inserts characters into builder's fixed position.
void set_Length(int len)
Trunkates or extends string builder to specified length.
StringBuilder * Append(char_t c)
Adds character to builder.
String ToString(int startIndex, int length) const
Gets substring currently contained in builder.
std::enable_if< std::is_enum< E >::value, StringBuilder * >::type Append(E e)
Adds enum value string representation to builder.
Definition: string_builder.h:132
StringBuilder(int capacity)
Constructor.
int get_Capacity() const
Gets current capacity of string builder.
~StringBuilder()
Destructor.
StringBuilder * Insert(int startIndex, char_t ch)
Inserts character into builder's fixed position.
StringBuilder * AppendFormat(const String &format, const TArgs &... args)
Appends formated string to builder.
Definition: string_builder.h:145
StringBuilder * Append(const SharedPtr< StringBuilder > &builder)
Adds builder's content to builder.
StringBuilder * AppendLine()
Appends new line character to builder.
StringBuilder * Append(const String &str, int startIndex, int charCount)
Adds string slice to builder.
int get_Length() const
Gets length of string currently in builder.
void CopyTo(int sourceIndex, System::ArrayPtr< char_t > const &destination, int destinationIndex, int count)
Copies builder's data into existing array positions.
StringBuilder * Insert(int32_t index, const String &value, int32_t count)
Inserts repeated string into builder's fixed position.
StringBuilder * Append(int i)
Adds integer value to builder.
StringBuilder(const String &value, int startIndex, int length, int capacity)
Constructor.
StringBuilder * Replace(char_t oldChar, char_t newChar)
Replaces character through the builder.
StringBuilder * Append(const SharedPtr< T > &obj)
Adds object's string representation to builder.
Definition: string_builder.h:99
StringBuilder()
Constructor.
StringBuilder * AppendFormat(const SharedPtr< IFormatProvider > &fp, const String &format, const TArgs &... args)
Appends formated string to builder.
Definition: string_builder.h:156
StringBuilder * Append(const String &str)
Adds string to builder.
StringBuilder * Replace(const String &oldString, const String &newString)
Replaces substring through the builder.
void set_Capacity(int capacity)
Sets current capacity of string builder.
StringBuilder * Append(double df)
Adds floating point value to builder.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9
static String ToString(int8_t value)
Converts the specified value to its string representation.
Provides methods that perform some operations on values of enum type. This is a static type with no i...
Definition: enum.h:158