You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nanoFramework.System.Text/Text/StringBuilder.cs
+34-27Lines changed: 34 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,16 @@
7
7
namespaceSystem.Text
8
8
{
9
9
/// <summary>
10
-
/// A Micro Framework port of the Full Framework StringBuilder. Contributed by Julius Friedman.
11
10
/// Represents a mutable string of characters. This class cannot be inherited.
12
11
/// </summary>
12
+
/// <remarks>
13
+
/// <para>
14
+
/// This is a port of the full .NET Framework <see cref="StringBuilder"/> class.
15
+
/// </para>
16
+
/// <para>
17
+
/// Contributed to the .NETMF code base by Julius Friedman.
18
+
/// </para>
19
+
/// </remarks>
13
20
publicsealedclassStringBuilder
14
21
{
15
22
#region Fields
@@ -173,12 +180,12 @@ public int Length
173
180
#region Constructor
174
181
175
182
/// <summary>
176
-
/// Initializes a new instance of the StringBuilder class from the specified substring and capacity.
183
+
/// Initializes a new instance of the <see cref="StringBuilder"/> class from the specified substring and capacity.
177
184
/// </summary>
178
185
/// <param name="value">The string that contains the substring used to initialize the value of this instance. If value is null, the new StringBuilder will contain the empty string (that is, it contains Empty).</param>
179
186
/// <param name="startIndex">The position within value where the substring begins.</param>
180
187
/// <param name="length">The number of characters in the substring.</param>
181
-
/// <param name="capacity">The suggested starting size of the StringBuilder.</param>
188
+
/// <param name="capacity">The suggested starting size of the <see cref="StringBuilder"/>.</param>
/// Initializes a new instance of the StringBuilder class using the specified string and capacity.
219
+
/// Initializes a new instance of the <see cref="StringBuilder"/> class using the specified string and capacity.
213
220
/// </summary>
214
221
/// <param name="value">The string used to initialize the value of the instance. If value is null, the new StringBuilder will contain the empty string (that is, it contains Empty).</param>
215
-
/// <param name="capacity">The suggested starting size of the StringBuilder.</param>
222
+
/// <param name="capacity">The suggested starting size of the <see cref="StringBuilder"/>.</param>
/// Initializes a new instance of the StringBuilder class using the specified capacity.
251
+
/// Initializes a new instance of the <see cref="StringBuilder"/> class using the specified capacity.
245
252
/// </summary>
246
253
/// <param name="capacity">The suggested starting size of this instance.</param>
247
254
publicStringBuilder(intcapacity)
248
255
:this(string.Empty,capacity){}
249
256
250
257
/// <summary>
251
-
/// Initializes a new instance of the StringBuilder class using the specified string.
258
+
/// Initializes a new instance of the <see cref="StringBuilder"/> class using the specified string.
252
259
/// </summary>
253
-
/// <param name="value">The string used to initialize the value of the instance. If value is null, the new StringBuilder will contain the empty string (that is, it contains Empty).</param>
260
+
/// <param name="value">The string used to initialize the value of the instance. If value is <see langword="null"/>, the new <see cref="StringBuilder"/> will contain the empty string (that is, it contains <see cref="String.Empty"/>).</param>
254
261
publicStringBuilder(stringvalue)
255
262
:this(value,0x10){}
256
263
257
264
/// <summary>
258
-
/// Initializes a new instance of the StringBuilder class.
265
+
/// Initializes a new instance of the <see cref="StringBuilder"/> class.
259
266
/// </summary>
260
267
publicStringBuilder()
261
268
:this(0x10){}
@@ -265,19 +272,19 @@ public StringBuilder()
265
272
#region Methods
266
273
267
274
/// <summary>
268
-
/// Removes all characters from the current StringBuilder instance.
275
+
/// Removes all characters from the current <see cref="StringBuilder"/> instance.
269
276
/// </summary>
270
-
/// <returns>An object whose Length is 0 (zero).</returns>
277
+
/// <returns>An object whose <see cref="Length"/> is 0 (zero).</returns>
271
278
publicStringBuilderClear()
272
279
{
273
280
Length=0;
274
281
returnthis;
275
282
}
276
283
277
284
/// <summary>
278
-
/// Appends the string representation of a specified Boolean value to this instance.
285
+
/// Appends the string representation of a specified <see cref="bool"/> value to this instance.
279
286
/// </summary>
280
-
/// <param name="value">The Boolean value to append.</param>
287
+
/// <param name="value">The <see cref="bool"/> value to append.</param>
281
288
/// <returns>A reference to this instance after the append operation has completed.</returns>
282
289
publicStringBuilderAppend(boolvalue)
283
290
{
@@ -582,7 +589,7 @@ public StringBuilder Remove(int startIndex, int length)
582
589
}
583
590
584
591
/// <summary>
585
-
/// Converts the value of this instance to a String. (Overrides Object.ToString().)
592
+
/// Converts the value of this instance to a String. (Overrides <see cref="Object.ToString"/>().)
586
593
/// </summary>
587
594
/// <returns>A string whose value is the same as this instance.</returns>
588
595
publicoverridestringToString()
@@ -722,10 +729,10 @@ public StringBuilder Insert(int index, char[] value, int startIndex, int charCou
722
729
/// Replaces, within a substring of this instance, all occurrences of a specified character with another specified character.
723
730
/// </summary>
724
731
/// <param name="oldChar">The character to replace. </param>
725
-
/// <param name="newChar">The character that replaces oldChar. </param>
726
-
/// <param name="startIndex">The position in this instance where the substring begins.</param>
732
+
/// <param name="newChar">The character that replaces <paramref name="oldChar"/>. </param>
733
+
/// <param name="startIndex">The position in this instance where the substring begins.</param>
727
734
/// <param name="count">The length of the substring. </param>
728
-
/// <returns>A reference to this instance with oldChar replaced by newChar in the range from startIndex to startIndex + count -1.</returns>
735
+
/// <returns>A reference to this instance with <paramref name="oldChar"/> replaced by <paramref name="newChar"/> in the range from <paramref name="startIndex"/> to <paramref name="startIndex"/> + <paramref name="count"/> - 1.</returns>
@@ -773,10 +780,10 @@ public StringBuilder Replace(char oldChar, char newChar)
773
780
/// Replaces, within a substring of this instance, all occurrences of a specified string with another specified string.
774
781
/// </summary>
775
782
/// <param name="oldValue">The string to replace.</param>
776
-
/// <param name="newValue">The string that replaces oldValue, or null.</param>
783
+
/// <param name="newValue">The string that replaces <paramref name="oldValue"/>, or <see langword="null"/>.</param>
777
784
/// <param name="startIndex">The position in this instance where the substring begins.</param>
778
785
/// <param name="count">The length of the substring.</param>
779
-
/// <returns>A reference to this instance with all instances of oldValue replaced by newValue in the range from startIndex to startIndex + count - 1.</returns>
786
+
/// <returns>A reference to this instance with all instances of <paramref name="oldValue"/> replaced by <paramref name="newValue"/> in the range from <paramref name="startIndex"/> to <paramref name="startIndex"/> + <paramref name="count"/> - 1.</returns>
0 commit comments