コード例 #1
0
 private static bool IsAsciiLetterOrDigit(char character)
 {
     if (CodeConnectAccess.IsAsciiLetter(character))
     {
         return(true);
     }
     if ((int)character >= 48)
     {
         return((int)character <= 57);
     }
     return(false);
 }
コード例 #2
0
 // Token: 0x06002977 RID: 10615 RVA: 0x00098A98 File Offset: 0x00096C98
 internal static bool IsValidScheme(string scheme)
 {
     if (scheme == null || scheme.Length == 0 || !CodeConnectAccess.IsAsciiLetter(scheme[0]))
     {
         return(false);
     }
     for (int i = scheme.Length - 1; i > 0; i--)
     {
         if (!CodeConnectAccess.IsAsciiLetterOrDigit(scheme[i]) && scheme[i] != '+' && scheme[i] != '-' && scheme[i] != '.')
         {
             return(false);
         }
     }
     return(true);
 }
コード例 #3
0
 internal static bool IsValidScheme(string scheme)
 {
     if (scheme == null || scheme.Length == 0 || !CodeConnectAccess.IsAsciiLetter(scheme[0]))
     {
         return(false);
     }
     for (int index = scheme.Length - 1; index > 0; --index)
     {
         if (!CodeConnectAccess.IsAsciiLetterOrDigit(scheme[index]) && (int)scheme[index] != 43 && ((int)scheme[index] != 45 && (int)scheme[index] != 46))
         {
             return(false);
         }
     }
     return(true);
 }
コード例 #4
0
 // Token: 0x06002978 RID: 10616 RVA: 0x00098B05 File Offset: 0x00096D05
 private static bool IsAsciiLetterOrDigit(char character)
 {
     return(CodeConnectAccess.IsAsciiLetter(character) || (character >= '0' && character <= '9'));
 }