55 references to FileUtilitiesRegex
Microsoft.Build (9)
FileUtilities.cs (2)
766if (FileUtilitiesRegex.IsDrivePattern(fileSpec) || 767FileUtilitiesRegex.IsUncPattern(fullPath))
Modifiers.cs (7)
417ErrorUtilities.VerifyThrow(FileUtilitiesRegex.StartsWithUncPattern(modifiedItemSpec), 467if (FileUtilitiesRegex.StartsWithDrivePattern(modifiedItemSpec)) 473length = FileUtilitiesRegex.StartsWithUncPatternMatchLength(modifiedItemSpec); 622int uncMatchLength = FileUtilitiesRegex.StartsWithUncPatternMatchLength(path); 625if (FileUtilitiesRegex.IsDrivePattern(path) || 626FileUtilitiesRegex.IsDrivePatternWithSlash(path) || 641if (FileUtilitiesRegex.StartsWithDrivePattern(path) &&
Microsoft.Build.Engine.UnitTests (46)
FileUtilitiesRegex_Tests.cs (46)
61FileUtilitiesRegex.IsDrivePattern(s).ShouldBeTrue(); 63FileUtilitiesRegex.IsDrivePattern(s).ShouldBeTrue(); 87FileUtilitiesRegex.StartsWithDrivePattern(s).ShouldBeTrue(); 89FileUtilitiesRegex.StartsWithDrivePattern(s).ShouldBeTrue(); 119FileUtilitiesRegex.StartsWithDrivePattern(value).ShouldBe(false); 120FileUtilitiesRegex.IsDrivePattern(value).ShouldBe(false); 140FileUtilitiesRegex.StartsWithDrivePattern(value).ShouldBeTrue(); 159FileUtilitiesRegex.IsUncPattern(winDirectory).ShouldBe(false); 160FileUtilitiesRegex.IsUncPattern(unixDirectory).ShouldBe(false); 169FileUtilitiesRegex.StartsWithUncPattern(winDirectory).ShouldBeTrue(); 170FileUtilitiesRegex.StartsWithUncPattern(unixDirectory).ShouldBeTrue(); 189FileUtilitiesRegex.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(13); 190FileUtilitiesRegex.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(13); 214FileUtilitiesRegex.IsUncPattern(winDirectory).ShouldBeTrue(); 215FileUtilitiesRegex.IsUncPattern(unixDirectory).ShouldBeTrue(); 235FileUtilitiesRegex.StartsWithUncPattern(winDirectory).ShouldBeTrue(); 236FileUtilitiesRegex.StartsWithUncPattern(unixDirectory).ShouldBeTrue(); 255FileUtilitiesRegex.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(13); 256FileUtilitiesRegex.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(13); 290FileUtilitiesRegex.IsUncPattern(winDirectory).ShouldBeTrue(); 291FileUtilitiesRegex.IsUncPattern(unixDirectory).ShouldBeTrue(); 300FileUtilitiesRegex.StartsWithUncPattern(winDirectory).ShouldBeTrue(); 301FileUtilitiesRegex.StartsWithUncPattern(unixDirectory).ShouldBeTrue(); 335FileUtilitiesRegex.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(9); 336FileUtilitiesRegex.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(9); 355FileUtilitiesRegex.IsUncPattern(winDirectory).ShouldBe(false); 356FileUtilitiesRegex.IsUncPattern(unixDirectory).ShouldBe(false); 375FileUtilitiesRegex.StartsWithUncPattern(winDirectory).ShouldBeTrue(); 376FileUtilitiesRegex.StartsWithUncPattern(unixDirectory).ShouldBeTrue(); 400FileUtilitiesRegex.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(9); 401FileUtilitiesRegex.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(9); 420FileUtilitiesRegex.IsUncPattern(winDirectory).ShouldBe(false); 421FileUtilitiesRegex.IsUncPattern(unixDirectory).ShouldBe(false); 440FileUtilitiesRegex.StartsWithUncPattern(winDirectory).ShouldBe(false); 441FileUtilitiesRegex.StartsWithUncPattern(unixDirectory).ShouldBe(false); 463FileUtilitiesRegex.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(-1); 464FileUtilitiesRegex.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(-1); 483FileUtilitiesRegex.IsUncPattern(winDirectory).ShouldBe(false); 484FileUtilitiesRegex.IsUncPattern(unixDirectory).ShouldBe(false); 503FileUtilitiesRegex.StartsWithUncPattern(winDirectory).ShouldBe(false); 504FileUtilitiesRegex.StartsWithUncPattern(unixDirectory).ShouldBe(false); 526FileUtilitiesRegex.StartsWithUncPatternMatchLength(winDirectory).ShouldBe(-1); 527FileUtilitiesRegex.StartsWithUncPatternMatchLength(unixDirectory).ShouldBe(-1); 541FileUtilitiesRegex.IsUncPattern(string.Empty).ShouldBeFalse(); 542FileUtilitiesRegex.StartsWithUncPattern(string.Empty).ShouldBeFalse(); 543FileUtilitiesRegex.StartsWithUncPatternMatchLength(string.Empty).ShouldBe(-1);