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