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)
1796if (!UriParser.IsKnownScheme(URISCHEME_PACK)) 1798UriParser.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)
22public static readonly string UriSchemeFile = UriParser.FileUri.SchemeName; 23public static readonly string UriSchemeFtp = UriParser.FtpUri.SchemeName; 26public static readonly string UriSchemeGopher = UriParser.GopherUri.SchemeName; 27public static readonly string UriSchemeHttp = UriParser.HttpUri.SchemeName; 28public static readonly string UriSchemeHttps = UriParser.HttpsUri.SchemeName; 29public static readonly string UriSchemeWs = UriParser.WsUri.SchemeName; 30public static readonly string UriSchemeWss = UriParser.WssUri.SchemeName; 31public static readonly string UriSchemeMailto = UriParser.MailToUri.SchemeName; 32public static readonly string UriSchemeNews = UriParser.NewsUri.SchemeName; 33public static readonly string UriSchemeNntp = UriParser.NntpUri.SchemeName; 35public static readonly string UriSchemeTelnet = UriParser.TelnetUri.SchemeName; 36public static readonly string UriSchemeNetTcp = UriParser.NetTcpUri.SchemeName; 37public static readonly string UriSchemeNetPipe = UriParser.NetPipeUri.SchemeName; 54internal UriParser _syntax = null!; // Initialized in ctor via helper. This is a whole Uri syntax, not only the scheme name 250private UriParser Syntax 268internal static bool IriParsingStatic(UriParser? syntax) 610UriParser? syntax = CheckSchemeSyntax(relativeStr.AsSpan(0, i), ref error); 951private static bool StaticIsFile(UriParser syntax) 1899private static unsafe ParsingError ParseScheme(string uriString, ref Flags flags, ref UriParser? syntax) 1913syntax = UriParser.HttpsUri; 1918syntax = UriParser.HttpUri; 2072_syntax = UriParser.UnixFileUri; 2175else if (!OperatingSystem.IsWindows() && hostTerminator == '/' && NotAny(Flags.ImplicitFile) && InFact(Flags.UncPath) && _syntax == UriParser.FileUri) 2177_syntax = UriParser.UnixFileUri; 2271if (_syntax.DefaultPort != UriParser.NoDefaultPort) 2889(InFact(Flags.NotDefaultPort) || ((parts & UriComponents.StrongPort) != 0 && _syntax.DefaultPort != UriParser.NoDefaultPort))) 3027if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3128if (InFact(Flags.NotDefaultPort) || _syntax.DefaultPort == UriParser.NoDefaultPort) 3611private static int ParseSchemeCheckImplicitFile(string uriString, ref ParsingError err, ref Flags flags, ref UriParser? syntax) 3631syntax = UriParser.UnixFileUri; 3660syntax = UriParser.FileUri; 3677syntax = UriParser.FileUri; 3710private static UriParser? CheckSchemeSyntax(ReadOnlySpan<char> scheme, ref ParsingError error) 3717if (scheme.Equals("ws", StringComparison.OrdinalIgnoreCase)) return UriParser.WsUri; 3721if (scheme.Equals("wss", StringComparison.OrdinalIgnoreCase)) return UriParser.WssUri; 3722if (scheme.Equals("ftp", StringComparison.OrdinalIgnoreCase)) return UriParser.FtpUri; 3726if (scheme.Equals("http", StringComparison.OrdinalIgnoreCase)) return UriParser.HttpUri; 3727if (scheme.Equals("file", StringComparison.OrdinalIgnoreCase)) return UriParser.FileUri; 3728if (scheme.Equals("uuid", StringComparison.OrdinalIgnoreCase)) return UriParser.UuidUri; 3729if (scheme.Equals("nntp", StringComparison.OrdinalIgnoreCase)) return UriParser.NntpUri; 3730if (scheme.Equals("ldap", StringComparison.OrdinalIgnoreCase)) return UriParser.LdapUri; 3731if (scheme.Equals("news", StringComparison.OrdinalIgnoreCase)) return UriParser.NewsUri; 3735if (scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) return UriParser.HttpsUri; 3739if (scheme.Equals("mailto", StringComparison.OrdinalIgnoreCase)) return UriParser.MailToUri; 3740if (scheme.Equals("gopher", StringComparison.OrdinalIgnoreCase)) return UriParser.GopherUri; 3741if (scheme.Equals("telnet", StringComparison.OrdinalIgnoreCase)) return UriParser.TelnetUri; 3745if (scheme.Equals("net.tcp", StringComparison.OrdinalIgnoreCase)) return UriParser.NetTcpUri; 3749if (scheme.Equals("net.pipe", StringComparison.OrdinalIgnoreCase)) return UriParser.NetPipeUri; 3769return UriParser.FindOrFetchAsUnknownV1Syntax(UriHelper.SpanToLowerInvariantString(scheme)); 3780ref ParsingError err, ref Flags flags, UriParser syntax, ref string? newHost) 4539private static void Compress(char[] dest, int start, ref int destLength, UriParser syntax) 4549private static int Compress(Span<char> span, UriParser syntax)
System\UriBuilder.cs (2)
320UriParser? syntax = UriParser.GetSyntax(scheme);
System\UriExt.cs (3)
719private Uri(Flags flags, UriParser? uriParser, string uri) 743UriParser? syntax = null; 930&& _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\net9.0\System.Runtime.Forwards.cs (1)
855[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriParser))]