66 references to InFact
System.Private.Uri (66)
System\Uri.cs (54)
158Debug.Assert(InFact(Flags.MinimalUriInfoSet) == (_info is not null)); 172if (InFact(Flags.AllUriInfoSet)) 184if (!InFact(Flags.HasUnicode)) 404if (allowDnsOptimization && InFact(Flags.CanonicalDnsHost)) 606dontEscape = InFact(Flags.UserEscaped); 877return InFact(Flags.LoopbackHost); 1050if (InFact(Flags.PathNotCanonical) && !IsImplicitFile) 1063if (InFact(Flags.ShouldBeCompressed)) 1103if (InFact(Flags.NotDefaultPort)) 1183if (hostType == Flags.IPv6HostType || (hostType == Flags.BasicHostType && InFact(Flags.HostNotCanonical | Flags.E_HostNotCanonical))) 1224else if (hostType == Flags.BasicHostType && InFact(Flags.HostNotCanonical | Flags.E_HostNotCanonical)) 1254return InFact(Flags.UserEscaped); 1773if (InFact(Flags.CanonicalDnsHost) && other.InFact(Flags.CanonicalDnsHost)) 1999if (!OperatingSystem.IsWindows() && InFact(Flags.UnixPath)) 2107else if (_syntax.InFact(UriSyntaxFlags.OptionalAuthority) && (InFact(Flags.AuthorityFound) || 2118if (InFact(Flags.HasUnicode)) 2136if (InFact(Flags.HasUnicode)) 2148if (InFact(Flags.DosPath)) 2179else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) && InFact(Flags.UncPath) && _syntax == UriParser.FileUri) 2436if (InFact(Flags.ImplicitFile) && (result & (Check.ReservedFound | Check.EscapedCanonical)) != 0) 2634if (InFact(Flags.SchemeNotCanonical)) 2642if (InFact(Flags.ShouldBeCompressed | Flags.FirstSlashAbsent | Flags.BackslashInPath)) 2737Debug.Assert(InFact(Flags.AllUriInfoSet)); 2746if (InFact(Flags.AuthorityFound)) 2755if ((parts & UriComponents.UserInfo) != 0 && InFact(Flags.HasUserInfo)) 2778InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape, 2838InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape, 2861(InFact(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort))) 2880if (InFact(Flags.AuthorityFound) && dest.Length != 0 && dest[0] == '/') 2940UnescapeMode mode = InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape; 2967if (!InFact(Flags.HasUserInfo)) 2977if (!InFact(Flags.HasUserInfo)) 2980if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 2995if (InFact(Flags.HasUserInfo)) 3028if (InFact(Flags.NotDefaultPort | Flags.PortNotCanonical)) 3040if (uriParts == UriComponents.Path && InFact(Flags.AuthorityFound) && 3081if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3091if (InFact(Flags.HasUserInfo)) 3417Debug.Assert(InFact(Flags.HasUnicode)); 3418Debug.Assert(InFact(Flags.MinimalUriInfoSet)); 3419Debug.Assert(!InFact(Flags.UserDrivenParsing)); 4172if (InFact(Flags.FirstSlashAbsent)) 4187if (InFact(Flags.ShouldBeCompressed)) 4194if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical) 4203if (InFact(Flags.E_PathNotCanonical) && NotAny(Flags.UserEscaped)) 4226if (!OperatingSystem.IsWindows() && InFact(Flags.BackslashInPath) && _syntax.NotAny(UriSyntaxFlags.ConvertPathSlashes) && _syntax.InFact(UriSyntaxFlags.FileLikeUri) && !IsImplicitFile) 4244if (InFact(Flags.ShouldBeCompressed)) 4249if (_syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes) && InFact(Flags.PathNotCanonical) 4269if (InFact(Flags.ShouldBeCompressed) && dest.Length - offset > 0) 4280if (formatAs == UriFormat.UriEscaped && NotAny(Flags.UserEscaped) && InFact(Flags.E_PathNotCanonical)) 4297if (formatAs != UriFormat.UriEscaped && InFact(Flags.PathNotCanonical)) 4314UnescapeMode mode = InFact(Flags.UserEscaped) ? UnescapeMode.Unescape : UnescapeMode.EscapeUnescape; 4877return InFact(Flags.AuthorityFound);
System\UriExt.cs (12)
89|| (!OperatingSystem.IsWindows() && InFact(Flags.UnixPath)))) 125if (InFact(Flags.ErrorOrParsingRecursion)) 436if (InFact(Flags.AuthorityFound)) 438if (InFact(Flags.SchemeNotCanonical_NoTrailingSlashes)) 443if (InFact(Flags.UncPath | Flags.DosPath)) 458if (InFact(Flags.FirstSlashAbsent) && _info.Offset.Query > _info.Offset.Path) 464if (InFact(Flags.BackslashInPath)) 722if (baseUri.InFact(Flags.AuthorityFound)) 896if (InFact(Flags.AllUriInfoSet)) 903Debug.Assert(!InFact(Flags.HasUnicode) || otherUri.IsNotAbsoluteUri); 909if (InFact(Flags.MinimalUriInfoSet)) 914if (InFact(Flags.NotDefaultPort))