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