88 references to Check
System.Private.Uri (88)
System\Uri.cs (75)
2440
Check
result = CheckCanonical(host, c_DummyChar, out _);
2442
if ((result &
Check
.DisplayCanonical) == 0)
2446
if (NotAny(Flags.ImplicitFile) || (result &
Check
.ReservedFound) != 0)
2452
if (InFact(Flags.ImplicitFile) && (result & (
Check
.ReservedFound |
Check
.EscapedCanonical)) != 0)
2455
result &= ~
Check
.EscapedCanonical;
2458
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical)
3176
Check
result;
3221
if ((result &
Check
.DisplayCanonical) == 0)
3225
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical)
3229
if (IriParsing && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical |
Check
.BackslashInPath
3230
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3231
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii)))
3383
if (((result &
Check
.DotSlashEscaped) != 0) && _syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes))
3389
if (((syntaxFlags & (UriSyntaxFlags.ConvertPathSlashes)) != 0) && (result &
Check
.BackslashInPath) != 0)
3396
(result &
Check
.DotSlashAttn) != 0))
3401
if ((result &
Check
.BackslashInPath) != 0)
3404
else if ((result &
Check
.BackslashInPath) != 0)
3411
if ((result &
Check
.DisplayCanonical) == 0)
3418
(result &
Check
.ReservedFound) != 0)
3426
if (((_flags & Flags.ImplicitFile) != 0) && (result & (
Check
.ReservedFound |
Check
.EscapedCanonical)) != 0)
3429
result &= ~
Check
.EscapedCanonical;
3432
if ((result &
Check
.EscapedCanonical) == 0)
3438
if (IriParsing && !nonCanonical && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical
3439
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3440
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii)))
3486
if ((result &
Check
.DisplayCanonical) == 0)
3491
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical)
3496
if (IriParsing && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical |
Check
.BackslashInPath
3497
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3498
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii)))
3534
if ((result &
Check
.DisplayCanonical) == 0)
3539
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical)
3544
if (IriParsing && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical |
Check
.BackslashInPath
3545
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3546
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii)))
4077
private
Check
CheckCanonical(ReadOnlySpan<char> span, char delim, out int end)
4081
Check
res =
Check
.None;
4100
res |=
Check
.ReservedFound;
4107
res |=
Check
.FoundNonAscii;
4122
if (!valid) res |=
Check
.NotIriCanonical;
4142
res |=
Check
.ReservedFound;
4155
res |=
Check
.ReservedFound;
4163
res |=
Check
.BackslashInPath;
4168
res |=
Check
.DotSlashAttn;
4175
res |=
Check
.DotSlashAttn;
4189
res |=
Check
.NotIriCanonical;
4205
res |=
Check
.DotSlashEscaped;
4219
res |=
Check
.EscapedCanonical;
4224
res |=
Check
.DisplayCanonical;
System\UriExt.cs (13)
396
return (CheckCanonical(str, c_EOL, out _) & (
Check
.BackslashInPath |
Check
.EscapedCanonical)) ==
Check
.EscapedCanonical;
480
Check
result = CheckCanonical(str.AsSpan(idx, _info.Offset.Path - idx), '/', out _);
482
if ((result & (
Check
.ReservedFound |
Check
.BackslashInPath |
Check
.EscapedCanonical)) !=
Check
.EscapedCanonical
483
&& (!IriParsing || (result & (
Check
.DisplayCanonical |
Check
.FoundNonAscii |
Check
.NotIriCanonical)) != (
Check
.DisplayCanonical |
Check
.FoundNonAscii)))