92 references to Check
System (92)
net\System\URI.cs (79)
2497
Check
result;
2502
if ((result &
Check
.DisplayCanonical) == 0) {
2505
if (NotAny(Flags.ImplicitFile) || (result &
Check
.ReservedFound) != 0) {
2510
if (InFact(Flags.ImplicitFile) && (result & (
Check
.ReservedFound |
Check
.EscapedCanonical)) != 0) {
2512
result &= ~
Check
.EscapedCanonical;
2515
if ((result & (
Check
.EscapedCanonical|
Check
.BackslashInPath)) !=
Check
.EscapedCanonical) {
3254
Check
result =
Check
.None;
3295
if ((result &
Check
.DisplayCanonical) == 0){
3298
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical){
3301
if (m_iriParsing && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical |
Check
.BackslashInPath
3302
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3303
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii))){
3411
if (((result &
Check
.DotSlashEscaped) != 0) && m_Syntax.InFact(UriSyntaxFlags.UnEscapeDotsAndSlashes))
3417
if (((syntaxFlags & (UriSyntaxFlags.ConvertPathSlashes)) != 0) && (result &
Check
.BackslashInPath) != 0){
3423
(result &
Check
.DotSlashAttn) != 0))
3428
if ((result &
Check
.BackslashInPath) != 0)
3432
else if ((result &
Check
.BackslashInPath) != 0){
3438
if ((result &
Check
.DisplayCanonical) == 0){
3444
(result &
Check
.ReservedFound) != 0) {
3451
if (((m_Flags & Flags.ImplicitFile) != 0) && (result & (
Check
.ReservedFound |
Check
.EscapedCanonical)) != 0){
3453
result &= ~
Check
.EscapedCanonical;
3456
if ((result &
Check
.EscapedCanonical) == 0){
3461
if (m_iriParsing && !nonCanonical & ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical
3462
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3463
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii))){
3508
if ((result &
Check
.DisplayCanonical) == 0){
3512
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical){
3516
if (m_iriParsing && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical |
Check
.BackslashInPath
3517
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3518
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii))){
3566
if ((result &
Check
.DisplayCanonical) == 0){
3570
if ((result & (
Check
.EscapedCanonical |
Check
.BackslashInPath)) !=
Check
.EscapedCanonical){
3574
if (m_iriParsing && ((result & (
Check
.DisplayCanonical |
Check
.EscapedCanonical |
Check
.BackslashInPath
3575
|
Check
.FoundNonAscii |
Check
.NotIriCanonical))
3576
== (
Check
.DisplayCanonical |
Check
.FoundNonAscii))){
4452
private unsafe
Check
CheckCanonical(char* str, ref ushort idx, ushort end, char delim) {
4453
Check
res =
Check
.None;
4467
res |=
Check
.ReservedFound;
4472
res |=
Check
.FoundNonAscii;
4483
if (!valid) res |=
Check
.NotIriCanonical;
4502
res |=
Check
.ReservedFound;
4513
res |=
Check
.ReservedFound;
4518
if ((res &
Check
.BackslashInPath) == 0 && c == '\\') {
4519
res |=
Check
.BackslashInPath;
4521
if ((res &
Check
.DotSlashAttn) == 0 && i+1 != end && (str[i+1] == '/' || str[i+1] == '\\' )) {
4522
res |=
Check
.DotSlashAttn;
4526
if ((res &
Check
.DotSlashAttn) == 0 && i+1 == end || str[i+1] == '.' || str[i+1] == '/'
4528
res |=
Check
.DotSlashAttn;
4541
res |=
Check
.DotSlashEscaped;
4555
res |=
Check
.EscapedCanonical;
4559
res |=
Check
.DisplayCanonical;
4561
res |=
Check
.EscapedCanonical;
net\System\UriExt.cs (13)
498
& (
Check
.BackslashInPath |
Check
.EscapedCanonical)) ==
Check
.EscapedCanonical;
567
Check
result = CheckCanonical(str, ref idx, (ushort)m_Info.Offset.Path, '/');
568
if (((result & (
Check
.ReservedFound |
Check
.BackslashInPath |
Check
.EscapedCanonical))
569
!=
Check
.EscapedCanonical)
571
&& ((result & (
Check
.DisplayCanonical |
Check
.FoundNonAscii |
Check
.NotIriCanonical))
572
!= (
Check
.DisplayCanonical |
Check
.FoundNonAscii)))))