@@ -38,28 +38,4 @@ public static bool Equals(this StringBuilder target, ReadOnlySpan<char> span)
3838 }
3939
4040#endif
41-
42- #if ! NET9_0_OR_GREATER && FeatureMemory
43- /// <summary>
44- /// Replaces all instances of one string with another in part of this builder.
45- /// </summary>
46- /// <param name="oldValue">The string to replace.</param>
47- /// <param name="newValue">The string to replace <paramref name="oldValue"/> with.</param>
48- /// <param name="startIndex">The index to start in this builder.</param>
49- /// <param name="count">The number of characters to read in this builder.</param>
50- //Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.replace#system-text-stringbuilder-replace(system-readonlyspan((system-char))-system-readonlyspan((system-char)))
51- public static StringBuilder Replace ( this StringBuilder target , ReadOnlySpan < char > oldValue , ReadOnlySpan < char > newValue ) =>
52- target . Replace ( oldValue . ToString ( ) , newValue . ToString ( ) ) ;
53-
54- /// <summary>
55- /// Replaces all instances of one read-only character span with another in part of this builder.
56- /// </summary>
57- /// <param name="oldValue">The read-only character span to replace.</param>
58- /// <param name="newValue">The read-only character span to replace <paramref name="oldValue"/> with.</param>
59- /// <param name="startIndex">The index to start in this builder.</param>
60- /// <param name="count">The number of characters to read in this builder.</param>
61- //Link: https://learn.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.replace#system-text-stringbuilder-replace(system-char-system-char-system-int32-system-int32)
62- public static StringBuilder Replace ( this StringBuilder target , ReadOnlySpan < char > oldValue , ReadOnlySpan < char > newValue , int startIndex , int count ) =>
63- target . Replace ( oldValue . ToString ( ) , newValue . ToString ( ) , startIndex , count ) ;
64- #endif
6541}
0 commit comments