Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FetchSyntax()

static void System.UriParser.FetchSyntax ( UriParser syntax,
string lwrCaseSchemeName,
int defaultPort )
inlinestaticprivateinherited

Definition at line 242 of file UriParser.cs.

243 {
244 if (syntax.SchemeName.Length != 0)
245 {
247 }
248 lock (s_table)
249 {
250 syntax._flags &= ~UriSyntaxFlags.V1_UnknownUri;
251 UriParser uriParser = (UriParser)s_table[lwrCaseSchemeName];
252 if (uriParser != null)
253 {
255 }
256 uriParser = (UriParser)s_tempTable[syntax.SchemeName];
257 if (uriParser != null)
258 {
259 lwrCaseSchemeName = uriParser._scheme;
260 s_tempTable.Remove(lwrCaseSchemeName);
261 }
262 syntax.OnRegister(lwrCaseSchemeName, defaultPort);
263 syntax._scheme = lwrCaseSchemeName;
264 syntax.CheckSetIsSimpleFlag();
265 syntax._port = defaultPort;
266 s_table[syntax.SchemeName] = syntax;
267 }
268 }
static string net_uri_AlreadyRegistered
Definition SR.cs:22
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_uri_NeedFreshParser
Definition SR.cs:20
Definition SR.cs:7
static readonly Hashtable s_table
Definition UriParser.cs:53
static Hashtable s_tempTable
Definition UriParser.cs:73

References System.UriParser.UriParser(), System.UriParser._scheme, System.UriParser.CheckSetIsSimpleFlag(), System.SR.Format(), System.SR.net_uri_AlreadyRegistered, System.SR.net_uri_NeedFreshParser, System.UriParser.OnRegister(), System.UriParser.s_table, System.UriParser.s_tempTable, and System.UriParser.SchemeName.

Referenced by System.UriParser.Register().