Definition at line 2553 of file Uri.cs.
2554 {
2555 if (
span.Length == 0)
2556 {
2558 }
2561 {
2562 case 'A':
2563 case 'B':
2564 case 'C':
2565 case 'D':
2566 case 'E':
2567 case 'F':
2568 case 'G':
2569 case 'H':
2570 case 'I':
2571 case 'J':
2572 case 'K':
2573 case 'L':
2574 case 'M':
2575 case 'N':
2576 case 'O':
2577 case 'P':
2578 case 'Q':
2579 case 'R':
2580 case 'S':
2581 case 'T':
2582 case 'U':
2583 case 'V':
2584 case 'W':
2585 case 'X':
2586 case 'Y':
2587 case 'Z':
2589 break;
2590 default:
2592 case 'a':
2593 case 'b':
2594 case 'c':
2595 case 'd':
2596 case 'e':
2597 case 'f':
2598 case 'g':
2599 case 'h':
2600 case 'i':
2601 case 'j':
2602 case 'k':
2603 case 'l':
2604 case 'm':
2605 case 'n':
2606 case 'o':
2607 case 'p':
2608 case 'q':
2609 case 'r':
2610 case 's':
2611 case 't':
2612 case 'u':
2613 case 'v':
2614 case 'w':
2615 case 'x':
2616 case 'y':
2617 case 'z':
2618 break;
2619 }
2620 switch (
span.Length)
2621 {
2622 case 2:
2624 {
2625 syntax = UriParser.WsUri;
2627 }
2628 break;
2629 case 3:
2631 {
2632 case 6714480:
2633 syntax = UriParser.FtpUri;
2635 case 7828339:
2636 syntax = UriParser.WssUri;
2638 }
2639 break;
2640 case 4:
2642 {
2643 case 1752462448:
2644 syntax = UriParser.HttpUri;
2646 case 1718185061:
2647 syntax = UriParser.FileUri;
2649 }
2650 break;
2651 case 5:
2653 {
2654 syntax = UriParser.HttpsUri;
2656 }
2657 break;
2658 case 6:
2660 {
2661 syntax = UriParser.MailToUri;
2663 }
2664 break;
2665 }
2666 for (
int i = 1;
i <
span.Length;
i++)
2667 {
2669 if ((uint)(
c3 - 97) > 25
u && (uint)(
c3 - 65) > 25
u && (uint)(
c3 - 48) > 9
u &&
c3 !=
'+' &&
c3 !=
'-' &&
c3 !=
'.')
2670 {
2672 }
2673 }
2674 if (
span.Length > 1024)
2675 {
2677 }
2680 {
2682 {
2684 });
2685 }
2689 {
2690 if ((uint)(c - 65) > 25
u)
2691 {
2692 return c;
2693 }
2694 return (
char)(c | 0x20
u);
2695 }
2696 }
References System.buffer, System.Runtime.Serialization.Dictionary, System.UriParser.FileUri, System.UriParser.FindOrFetchAsUnknownV1Syntax(), System.UriParser.FtpUri, System.UriParser.HttpsUri, System.UriParser.HttpUri, System.length, System.UriParser.MailToUri, System.state, System.UriParser.WssUri, and System.UriParser.WsUri.
Referenced by System.Uri.GetCombinedString(), and System.Uri.ParseSchemeCheckImplicitFile().