DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
StringBuilder.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "Common.h"
9#include "System/Object.h"
10#include "System/String.h"
11
12namespace DotNetDupe {
13 namespace System {
14 namespace Text {
15
21 class StringBuilder : public Object {
22 public:
25
28 DOTNETDUPE_API StringBuilder(int capacity);
29
33
36
39 DOTNETDUPE_API int GetLength() const;
40
43 DOTNETDUPE_API void SetLength(int value);
44
47 DOTNETDUPE_API int GetCapacity() const;
48
51 DOTNETDUPE_API void SetCapacity(int value);
52
57
61 DOTNETDUPE_API StringBuilder& Append(const char* value);
62
67
72
76 DOTNETDUPE_API StringBuilder& Append(long long value);
77
81 DOTNETDUPE_API StringBuilder& Append(double value);
82
87
91
96
100
104
105 private:
106 struct Impl;
107 Impl* m_pImpl;
108 };
109 }
110 }
111}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
StringBuilder & Append(const String &value)
Appends a copy of the specified string to this instance.
void SetLength(int value)
Sets the length of the current StringBuilder object.
void SetCapacity(int value)
Sets the capacity of the current StringBuilder object.
int GetCapacity() const
Gets the maximum number of characters that can be contained in the memory allocated by the current in...
StringBuilder & AppendLine()
Appends the default line terminator to the end of the current StringBuilder object.
String ToString() const
Converts the value of this instance to a String.
StringBuilder & Clear()
Removes all characters from the current StringBuilder instance.
int GetLength() const
Gets the length of the current StringBuilder object.
StringBuilder()
Initializes a new instance of the StringBuilder class.