28 references to UnescapeAll
Microsoft.Build.Utilities.Core (9)
FileUtilities.cs (1)
759fileSpec = FixFilePath(EscapingUtilities.UnescapeAll(fileSpec));
Modifiers.cs (3)
508string unescapedItemSpec = EscapingUtilities.UnescapeAll(itemSpec); 526string unescapedItemSpec = EscapingUtilities.UnescapeAll(itemSpec); 542string unescapedItemSpec = EscapingUtilities.UnescapeAll(itemSpec);
TaskItem.cs (5)
159get => _itemSpec == null ? string.Empty : EscapingUtilities.UnescapeAll(_itemSpec); 289return EscapingUtilities.UnescapeAll(metadataValue); 389dictionary.Add(entry.Key, EscapingUtilities.UnescapeAll(entry.Value)); 506var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value)); 522var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.UnescapeAll(kvp.Value));
Microsoft.Build.Utilities.UnitTests (19)
EscapingUtilities_Tests.cs (19)
18Assert.Equal("", EscapingUtilities.UnescapeAll("")); 19Assert.Equal("foo", EscapingUtilities.UnescapeAll("foo")); 20Assert.Equal("foo space", EscapingUtilities.UnescapeAll("foo%20space")); 21Assert.Equal("foo2;", EscapingUtilities.UnescapeAll("foo2%3B")); 22Assert.Equal(";foo3", EscapingUtilities.UnescapeAll("%3bfoo3")); 23Assert.Equal(";", EscapingUtilities.UnescapeAll("%3b")); 24Assert.Equal(";;;;;", EscapingUtilities.UnescapeAll("%3b%3B;%3b%3B")); 25Assert.Equal("%3B", EscapingUtilities.UnescapeAll("%253B")); 26Assert.Equal("===%ZZ %%%===", EscapingUtilities.UnescapeAll("===%ZZ%20%%%===")); 27Assert.Equal("hello; escaping% how( are) you?", EscapingUtilities.UnescapeAll("hello%3B escaping%25 how%28 are%29 you%3f")); 29Assert.Equal("%*?*%*", EscapingUtilities.UnescapeAll("%25*?*%25*")); 30Assert.Equal("%*?*%*", EscapingUtilities.UnescapeAll("%25%2a%3f%2a%25%2a")); 32Assert.Equal("*Star*craft or *War*cr@ft??", EscapingUtilities.UnescapeAll("%2aStar%2Acraft%20or %2aWar%2Acr%40ft%3f%3F")); 52Assert.Equal(text, EscapingUtilities.UnescapeAll(EscapingUtilities.Escape(text))); 55Assert.Equal(text, EscapingUtilities.UnescapeAll(EscapingUtilities.Escape(text))); 58Assert.Equal(text, EscapingUtilities.UnescapeAll(EscapingUtilities.Escape(text))); 67Assert.Equal(text, EscapingUtilities.Escape(EscapingUtilities.UnescapeAll(text))); 70Assert.Equal(text, EscapingUtilities.Escape(EscapingUtilities.UnescapeAll(text))); 73Assert.Equal(text, EscapingUtilities.Escape(EscapingUtilities.UnescapeAll(text)));