17 instantiations of InternableString
Microsoft.NET.StringTools (3)
SpanBasedStringBuilder.cs (1)
140return new InternableString(this).ToString();
StringTools.cs (2)
37InternableString internableString = new InternableString(str); 53InternableString internableString = new InternableString(str);
Microsoft.NET.StringTools.UnitTests (14)
SpanBasedStringBuilder_Tests.cs (10)
76InternableString internableString = new InternableString(stringBuilder); 97InternableString internableString = new InternableString(str); 99internableString = new InternableString(new string(str.ToCharArray())); 108int hashCode = new InternableString(testString).GetHashCode(); 119InternableString internableString = new InternableString(stringBuilder); 130new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString()); 138new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString()); 148new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString().TrimStart()); 157new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString().TrimEnd()); 166new InternableString(stringBuilder).ExpensiveConvertToString().ShouldBe(datum.ToString().Trim());
WeakStringCache_Tests.cs (4)
48InternableString testStringTarget = new InternableString(testString); 60InternableString testStringCopyTarget = new InternableString(testStringCopy); 70testStringCopyTarget = new InternableString(testStringCopy); 110InternableString stringCopy = new InternableString(new string(cachedStrings[i].ToCharArray()));
14 references to InternableString
Microsoft.NET.StringTools (8)
InternableString.cs (2)
24private InternableString _string; 36internal Enumerator(scoped ref InternableString str)
StringTools.cs (2)
37InternableString internableString = new InternableString(str); 53InternableString internableString = new InternableString(str);
WeakStringCache.Concurrent.cs (1)
31public string GetOrCreateEntry(ref InternableString internable, out bool cacheHit)
WeakStringCache.cs (1)
48public string? GetString(ref InternableString internable)
WeakStringCacheInterner.cs (2)
67private InternResult Intern(ref InternableString candidate, out string interned) 76public string InternableToString(ref InternableString candidate)
Microsoft.NET.StringTools.UnitTests (6)
SpanBasedStringBuilder_Tests.cs (3)
76InternableString internableString = new InternableString(stringBuilder); 97InternableString internableString = new InternableString(str); 119InternableString internableString = new InternableString(stringBuilder);
WeakStringCache_Tests.cs (3)
48InternableString testStringTarget = new InternableString(testString); 60InternableString testStringCopyTarget = new InternableString(testStringCopy); 110InternableString stringCopy = new InternableString(new string(cachedStrings[i].ToCharArray()));