51 references to Strings
Microsoft.Build (28)
BackEnd\BuildManager\BuildManager.cs (2)
526Strings.EnableDiagnostics(); 1097Console.WriteLine(Strings.CreateDiagnosticReport());
Construction\Solution\SolutionProjectGenerator.cs (2)
1137string directProjectProperties = Strings.WeakIntern(String.Join(";", GetConfigurationAndPlatformPropertiesString(projectConfiguration), SolutionProperties)); 1386ProjectTaskInstance task = target.AddTask("MSBuild", Strings.WeakIntern("'%(ProjectReference.Identity)' == '" + GetMetaprojectName(project) + "'"), String.Empty);
ElementLocation\XmlDocumentWithLocation.cs (4)
243string interned = Strings.WeakIntern(text); 259string interned = Strings.WeakIntern(text); 269string textNode = Strings.WeakIntern(text); 284string interned = Strings.WeakIntern(data);
EscapingUtilities.cs (1)
199string escapedString = Strings.WeakIntern(escapedStringBuilder.ToString());
Evaluation\Expander.cs (10)
249_builder = Strings.GetSpanBasedStringBuilder(); 255_builder = Strings.GetSpanBasedStringBuilder(); 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(); 3360var typeName = Strings.WeakIntern(expressionRoot.Slice(1, typeEndIndex - 1)); 3418var functionReceiver = Strings.WeakIntern(expressionRoot.Slice(0, rootEndIndex).Trim());
Evaluation\ExpressionShredder.cs (3)
159string itemName = Microsoft.NET.StringTools.Strings.WeakIntern(expression.AsSpan(startOfName, i - startOfName)); 254ItemExpressionCapture expressionCapture = new ItemExpressionCapture(startPoint, endPoint - startPoint, Microsoft.NET.StringTools.Strings.WeakIntern(expression.AsSpan(startPoint, endPoint - startPoint)), itemName, separator, separatorStart, transformExpressions); 601capture.FunctionArguments = Microsoft.NET.StringTools.Strings.WeakIntern(expression.AsSpan(startFunctionArguments, endFunctionArguments - startFunctionArguments));
Evaluation\SemiColonTokenizer.cs (1)
153return Strings.WeakIntern(_expression.AsSpan(startIndex, endIndex - startIndex));
Globbing\MSBuildGlob.cs (1)
180globRoot = Strings.WeakIntern(FileUtilities.NormalizePath(globRoot).WithTrailingSlash());
Instance\TaskRegistry.cs (1)
370assemblyFile = Strings.WeakIntern(Path.Combine(directoryOfImportingFile, assemblyFile));
InterningBinaryReader.cs (2)
153return Strings.WeakIntern(charBuffer.AsSpan(0, charsRead)); 167var retval = Strings.WeakIntern(resultBuffer.AsSpan(0, charsRead));
PropertyParser.cs (1)
167using SpanBasedStringBuilder stringBuilder = Strings.GetSpanBasedStringBuilder();
Microsoft.Build.Engine.OM.UnitTests (1)
EscapingUtilities.cs (1)
199string escapedString = Strings.WeakIntern(escapedStringBuilder.ToString());
Microsoft.Build.Framework.UnitTests (1)
EscapingUtilities.cs (1)
199string escapedString = Strings.WeakIntern(escapedStringBuilder.ToString());
Microsoft.Build.Tasks.Core (6)
EscapingUtilities.cs (1)
199string escapedString = Strings.WeakIntern(escapedStringBuilder.ToString());
InterningBinaryReader.cs (2)
153return Strings.WeakIntern(charBuffer.AsSpan(0, charsRead)); 167var retval = Strings.WeakIntern(resultBuffer.AsSpan(0, charsRead));
ListOperators\FindUnderPath.cs (2)
61Strings.WeakIntern( 82Strings.WeakIntern(
PropertyParser.cs (1)
167using SpanBasedStringBuilder stringBuilder = Strings.GetSpanBasedStringBuilder();
Microsoft.Build.Utilities.Core (1)
EscapingUtilities.cs (1)
199string escapedString = Strings.WeakIntern(escapedStringBuilder.ToString());
Microsoft.NET.StringTools (2)
SpanBasedStringBuilder.cs (2)
16/// Use <see cref="Strings.GetSpanBasedStringBuilder"/> to take advantage of pooling to eliminate allocation overhead of this class. 148Strings.ReturnSpanBasedStringBuilder(this);
Microsoft.NET.StringTools.UnitTests (7)
StringTools_Tests.cs (7)
33string internedString1 = Strings.WeakIntern(str); 35string internedString2 = Strings.WeakIntern(str); 41internedString1 = Strings.WeakIntern(span); 43internedString2 = Strings.WeakIntern(span); 54Strings.CreateDiagnosticReport().ShouldContain(statisticsNotEnabledString); 56Strings.EnableDiagnostics(); 57string report = Strings.CreateDiagnosticReport();
MSBuild (3)
EscapingUtilities.cs (1)
199string escapedString = Strings.WeakIntern(escapedStringBuilder.ToString());
InterningBinaryReader.cs (2)
153return Strings.WeakIntern(charBuffer.AsSpan(0, charsRead)); 167var retval = Strings.WeakIntern(resultBuffer.AsSpan(0, charsRead));
StringTools.Benchmark (2)
SpanBasedStringBuilder_Benchmark.cs (2)
58Strings.WeakIntern(sb.ToString()); 84Strings.WeakIntern(sb.ToString());