5 instantiations of SpanBasedStringBuilder
Microsoft.NET.StringTools (1)
StringTools.cs (1)
70return new SpanBasedStringBuilder();
Microsoft.NET.StringTools.UnitTests (3)
SpanBasedStringBuilder_Tests.cs (3)
28? new SpanBasedStringBuilder(datum.Fragments[0]) 29: new SpanBasedStringBuilder(); 115using SpanBasedStringBuilder stringBuilder = new SpanBasedStringBuilder();
StringTools.Benchmark (1)
SpanBasedStringBuilder_Benchmark.cs (1)
22private static SpanBasedStringBuilder _pooledSpanBasedStringBuilder = new SpanBasedStringBuilder();
37 references to SpanBasedStringBuilder
Microsoft.Build (14)
Evaluation\Expander.cs (13)
137/// A helper struct wrapping a <see cref="SpanBasedStringBuilder"/> and providing file path conversion 148/// The backing <see cref="SpanBasedStringBuilder"/>, null until the second value is added. 150private SpanBasedStringBuilder _builder; 160/// <see cref="SpanBasedStringBuilder"/> functionality doesn't have to be invoked if no concatenation 226/// Disposes of the struct by delegating the call to the underlying <see cref="SpanBasedStringBuilder"/>. 781private static void AddArgument(List<string> arguments, SpanBasedStringBuilder argumentBuilder) 833using SpanBasedStringBuilder argumentBuilder = Strings.GetSpanBasedStringBuilder(); 970using SpanBasedStringBuilder finalResultBuilder = Strings.GetSpanBasedStringBuilder(); 1482using SpanBasedStringBuilder builder = Strings.GetSpanBasedStringBuilder(); 1508using SpanBasedStringBuilder builder = Strings.GetSpanBasedStringBuilder(); 1913using SpanBasedStringBuilder builder = Strings.GetSpanBasedStringBuilder(); 2096using SpanBasedStringBuilder builder = Strings.GetSpanBasedStringBuilder(); 2181SpanBasedStringBuilder builder,
PropertyParser.cs (1)
167using SpanBasedStringBuilder stringBuilder = Strings.GetSpanBasedStringBuilder();
Microsoft.Build.Tasks.Core (1)
PropertyParser.cs (1)
167using SpanBasedStringBuilder stringBuilder = Strings.GetSpanBasedStringBuilder();
Microsoft.NET.StringTools (7)
InternableString.cs (1)
152internal InternableString(SpanBasedStringBuilder stringBuilder)
StringTools.cs (6)
20private static SpanBasedStringBuilder? _spanBasedStringBuilder; 59/// Returns a new or recycled <see cref="SpanBasedStringBuilder"/>. 65public static SpanBasedStringBuilder GetSpanBasedStringBuilder() 67SpanBasedStringBuilder? stringBuilder = _spanBasedStringBuilder; 98/// Returns a <see cref="SpanBasedStringBuilder"/> instance back to the pool if possible. 101internal static void ReturnSpanBasedStringBuilder(SpanBasedStringBuilder stringBuilder)
Microsoft.NET.StringTools.UnitTests (12)
SpanBasedStringBuilder_Tests.cs (12)
23private SpanBasedStringBuilder MakeSpanBasedStringBuilder(InterningTestData.TestDatum datum, bool appendSubStrings = false) 27SpanBasedStringBuilder stringBuilder = wrapFirstFragment 54using var stringBuilder = MakeSpanBasedStringBuilder(datum); 62using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum); 75using var stringBuilder = MakeSpanBasedStringBuilder(datum); 115using SpanBasedStringBuilder stringBuilder = new SpanBasedStringBuilder(); 129using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum, false); 137using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum, true); 146using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum); 155using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum); 164using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum); 174using SpanBasedStringBuilder stringBuilder = MakeSpanBasedStringBuilder(datum);
StringTools.Benchmark (3)
SpanBasedStringBuilder_Benchmark.cs (3)
22private static SpanBasedStringBuilder _pooledSpanBasedStringBuilder = new SpanBasedStringBuilder(); 40SpanBasedStringBuilder sbsb = _pooledSpanBasedStringBuilder; 64SpanBasedStringBuilder sbsb = _pooledSpanBasedStringBuilder;