Definition at line 2822 of file Utf8Parser.cs.
2823 {
2824 int num;
2825 int num3;
2826 int num2;
2828 {
2829 num = 0;
2831 if (num2 == 43)
2832 {
2833 num++;
2834 if ((uint)num >= (uint)
source.Length)
2835 {
2836 goto IL_00ce;
2837 }
2839 }
2840 if (num2 != 46)
2841 {
2842 if (ParserHelpers.IsDigit(num2))
2843 {
2844 num3 = num2 - 48;
2845 while (true)
2846 {
2847 num++;
2848 if ((uint)num >= (uint)
source.Length)
2849 {
2850 break;
2851 }
2853 if (num2 == 44)
2854 {
2855 continue;
2856 }
2857 if (num2 == 46)
2858 {
2859 goto IL_00a9;
2860 }
2861 if (!ParserHelpers.IsDigit(num2))
2862 {
2863 break;
2864 }
2865 num3 = num3 * 10 + num2 - 48;
2866 if (num3 <= 65535)
2867 {
2868 continue;
2869 }
2870 goto IL_00ce;
2871 }
2872 goto IL_00d6;
2873 }
2874 }
2875 else
2876 {
2877 num3 = 0;
2878 num++;
2879 if ((uint)num < (uint)
source.Length &&
source[num] == 48)
2880 {
2881 goto IL_00a9;
2882 }
2883 }
2884 }
2885 goto IL_00ce;
2886 IL_00c6:
2887 if (ParserHelpers.IsDigit(num2))
2888 {
2889 goto IL_00ce;
2890 }
2891 goto IL_00d6;
2892 IL_00a9:
2893 while (true)
2894 {
2895 num++;
2896 if ((uint)num >= (uint)
source.Length)
2897 {
2898 break;
2899 }
2901 if (num2 == 48)
2902 {
2903 continue;
2904 }
2905 goto IL_00c6;
2906 }
2907 goto IL_00d6;
2908 IL_00d6:
2909 bytesConsumed = num;
2910 value = (ushort)num3;
2911 return true;
2912 IL_00ce:
2913 bytesConsumed = 0;
2915 return false;
2916 }
References System.Buffers.Text.ParserHelpers.IsDigit(), System.source, and System.value.
Referenced by System.Buffers.Text.Utf8Parser.TryParse().