10 types derived from UriParser
System.Private.Uri (10)
System\GenericUriParser.cs (1)
55public class GenericUriParser : UriParser
System\UriParserTemplates.cs (8)
6public class HttpStyleUriParser : UriParser 13public class FtpStyleUriParser : UriParser 20public class FileStyleUriParser : UriParser 27public class NewsStyleUriParser : UriParser 34public class GopherStyleUriParser : UriParser 41public class LdapStyleUriParser : UriParser 48public class NetPipeStyleUriParser : UriParser 55public class NetTcpStyleUriParser : UriParser
System\UriSyntax.cs (1)
107private sealed class BuiltInUriParser : UriParser
110 references to UriParser
netstandard (1)
netstandard.cs (1)
2230[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriParser))]
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
1792if (!UriParser.IsKnownScheme(URISCHEME_PACK)) 1794UriParser.Register(new GenericUriParser(GenericUriParserOptions.GenericAuthority), URISCHEME_PACK, -1);
System (1)
src\libraries\shims\System\ref\System.cs (1)
931[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriParser))]
System.IO.Packaging (2)
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (2)
237if (!UriParser.IsKnownScheme(UriSchemePack)) 240UriParser.Register(new GenericUriParser(GenericUriParserOptions.GenericAuthority), UriSchemePack, -1);
System.Private.Uri (103)
System\Uri.cs (52)
23public static readonly string UriSchemeFile = UriParser.FileUri.SchemeName; 24public static readonly string UriSchemeFtp = UriParser.FtpUri.SchemeName; 27public static readonly string UriSchemeGopher = UriParser.GopherUri.SchemeName; 28public static readonly string UriSchemeHttp = UriParser.HttpUri.SchemeName; 29public static readonly string UriSchemeHttps = UriParser.HttpsUri.SchemeName; 30public static readonly string UriSchemeWs = UriParser.WsUri.SchemeName; 31public static readonly string UriSchemeWss = UriParser.WssUri.SchemeName; 32public static readonly string UriSchemeMailto = UriParser.MailToUri.SchemeName; 33public static readonly string UriSchemeNews = UriParser.NewsUri.SchemeName; 34public static readonly string UriSchemeNntp = UriParser.NntpUri.SchemeName; 36public static readonly string UriSchemeTelnet = UriParser.TelnetUri.SchemeName; 37public static readonly string UriSchemeNetTcp = UriParser.NetTcpUri.SchemeName; 38public static readonly string UriSchemeNetPipe = UriParser.NetPipeUri.SchemeName; 55internal UriParser _syntax = null!; // Initialized in ctor via helper. This is a whole Uri syntax, not only the scheme name 251private UriParser Syntax 269internal static bool IriParsingStatic(UriParser? syntax) 611UriParser? syntax = CheckSchemeSyntax(relativeStr.AsSpan(0, i), ref error); 952private static bool StaticIsFile(UriParser syntax) 1906private static unsafe ParsingError ParseScheme(string uriString, ref Flags flags, ref UriParser? syntax) 1920syntax = UriParser.HttpsUri; 1925syntax = UriParser.HttpUri; 2079_syntax = UriParser.UnixFileUri; 2182else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) && InFact(Flags.UncPath) && _syntax == UriParser.FileUri) 2184_syntax = UriParser.UnixFileUri; 2278if (_syntax.DefaultPort != UriParser.NoDefaultPort) 2894(InFact(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort))) 3032if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3133if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3616private static int ParseSchemeCheckImplicitFile(string uriString, ref ParsingError err, ref Flags flags, ref UriParser? syntax) 3636syntax = UriParser.UnixFileUri; 3665syntax = UriParser.FileUri; 3682syntax = UriParser.FileUri; 3715private static UriParser? CheckSchemeSyntax(ReadOnlySpan<char> scheme, ref ParsingError error) 3722if (scheme.Equals("ws", StringComparison.OrdinalIgnoreCase)) return UriParser.WsUri; 3726if (scheme.Equals("wss", StringComparison.OrdinalIgnoreCase)) return UriParser.WssUri; 3727if (scheme.Equals("ftp", StringComparison.OrdinalIgnoreCase)) return UriParser.FtpUri; 3731if (scheme.Equals("http", StringComparison.OrdinalIgnoreCase)) return UriParser.HttpUri; 3732if (scheme.Equals("file", StringComparison.OrdinalIgnoreCase)) return UriParser.FileUri; 3733if (scheme.Equals("uuid", StringComparison.OrdinalIgnoreCase)) return UriParser.UuidUri; 3734if (scheme.Equals("nntp", StringComparison.OrdinalIgnoreCase)) return UriParser.NntpUri; 3735if (scheme.Equals("ldap", StringComparison.OrdinalIgnoreCase)) return UriParser.LdapUri; 3736if (scheme.Equals("news", StringComparison.OrdinalIgnoreCase)) return UriParser.NewsUri; 3740if (scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) return UriParser.HttpsUri; 3744if (scheme.Equals("mailto", StringComparison.OrdinalIgnoreCase)) return UriParser.MailToUri; 3745if (scheme.Equals("gopher", StringComparison.OrdinalIgnoreCase)) return UriParser.GopherUri; 3746if (scheme.Equals("telnet", StringComparison.OrdinalIgnoreCase)) return UriParser.TelnetUri; 3750if (scheme.Equals("net.tcp", StringComparison.OrdinalIgnoreCase)) return UriParser.NetTcpUri; 3754if (scheme.Equals("net.pipe", StringComparison.OrdinalIgnoreCase)) return UriParser.NetPipeUri; 3774return UriParser.FindOrFetchAsUnknownV1Syntax(UriHelper.SpanToLowerInvariantString(scheme)); 3785ref ParsingError err, ref Flags flags, UriParser syntax, ref string? newHost) 4544private static void Compress(char[] dest, int start, ref int destLength, UriParser syntax) 4554private static int Compress(Span<char> span, UriParser syntax)
System\UriBuilder.cs (2)
320UriParser? syntax = UriParser.GetSyntax(scheme);
System\UriExt.cs (3)
737private Uri(Flags flags, UriParser? uriParser, string uri) 761UriParser? syntax = null; 948&& _syntax.DefaultPort != UriParser.NoDefaultPort))
System\UriHelper.cs (5)
305ref int destPosition, char rsvd1, char rsvd2, char rsvd3, UnescapeMode unescapeMode, UriParser? syntax, 316char rsvd1, char rsvd2, char rsvd3, UnescapeMode unescapeMode, UriParser? syntax, bool isQuery) 348char rsvd1, char rsvd2, char rsvd3, UnescapeMode unescapeMode, UriParser? syntax, bool isQuery) 356char rsvd1, char rsvd2, char rsvd3, UnescapeMode unescapeMode, UriParser? syntax, bool isQuery) 364char rsvd1, char rsvd2, char rsvd3, UnescapeMode unescapeMode, UriParser? syntax, bool isQuery)
System\UriParserTemplates.cs (8)
8public HttpStyleUriParser() : base(UriParser.HttpUri.Flags) 15public FtpStyleUriParser() : base(UriParser.FtpUri.Flags) 22public FileStyleUriParser() : base(UriParser.FileUri.Flags) 29public NewsStyleUriParser() : base(UriParser.NewsUri.Flags) 36public GopherStyleUriParser() : base(UriParser.GopherUri.Flags) 43public LdapStyleUriParser() : base(UriParser.LdapUri.Flags) 50public NetPipeStyleUriParser() : base(UriParser.NetPipeUri.Flags) 57public NetTcpStyleUriParser() : base(UriParser.NetTcpUri.Flags)
System\UriScheme.cs (4)
47protected virtual UriParser OnNewUri() 166public static void Register(UriParser uriParser, string schemeName, int defaultPort) 193UriParser? syntax = UriParser.GetSyntax(schemeName.ToLowerInvariant());
System\UriSyntax.cs (29)
60internal static readonly UriParser HttpUri = new BuiltInUriParser("http", 80, HttpSyntaxFlags); 61internal static readonly UriParser HttpsUri = new BuiltInUriParser("https", 443, HttpUri._flags); 62internal static readonly UriParser WsUri = new BuiltInUriParser("ws", 80, HttpSyntaxFlags); 63internal static readonly UriParser WssUri = new BuiltInUriParser("wss", 443, HttpSyntaxFlags); 64internal static readonly UriParser FtpUri = new BuiltInUriParser("ftp", 21, FtpSyntaxFlags); 65internal static readonly UriParser FileUri = new BuiltInUriParser("file", NoDefaultPort, FileSyntaxFlags); 66internal static readonly UriParser UnixFileUri = new BuiltInUriParser("file", NoDefaultPort, UnixFileSyntaxFlags); 67internal static readonly UriParser GopherUri = new BuiltInUriParser("gopher", 70, GopherSyntaxFlags); 68internal static readonly UriParser NntpUri = new BuiltInUriParser("nntp", 119, NntpSyntaxFlags); 69internal static readonly UriParser NewsUri = new BuiltInUriParser("news", NoDefaultPort, NewsSyntaxFlags); 70internal static readonly UriParser MailToUri = new BuiltInUriParser("mailto", 25, MailtoSyntaxFlags); 71internal static readonly UriParser UuidUri = new BuiltInUriParser("uuid", NoDefaultPort, NewsUri._flags); 72internal static readonly UriParser TelnetUri = new BuiltInUriParser("telnet", 23, TelnetSyntaxFlags); 73internal static readonly UriParser LdapUri = new BuiltInUriParser("ldap", 389, LdapSyntaxFlags); 74internal static readonly UriParser NetTcpUri = new BuiltInUriParser("net.tcp", 808, NetTcpSyntaxFlags); 75internal static readonly UriParser NetPipeUri = new BuiltInUriParser("net.pipe", NoDefaultPort, NetPipeSyntaxFlags); 76internal static readonly UriParser VsMacrosUri = new BuiltInUriParser("vsmacros", NoDefaultPort, VsmacrosSyntaxFlags); 160private static void FetchSyntax(UriParser syntax, string lwrCaseSchemeName, int defaultPort) 168UriParser? oldSyntax = (UriParser?)s_table[lwrCaseSchemeName]; 172oldSyntax = (UriParser?)s_tempTable[syntax.SchemeName]; 191internal static UriParser FindOrFetchAsUnknownV1Syntax(string lwrCaseScheme) 194UriParser? syntax = (UriParser?)s_table[lwrCaseScheme]; 199syntax = (UriParser?)s_tempTable[lwrCaseScheme]; 216internal static UriParser? GetSyntax(string lwrCaseScheme) => 217(UriParser?)(s_table[lwrCaseScheme] ?? s_tempTable[lwrCaseScheme]); 253internal UriParser InternalOnNewUri() 255UriParser effectiveParser = OnNewUri();
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
860[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriParser))]