Example #1
0
        public static int GetFormInt(string strName, int defValue)
        {
            string formString = GetFormString(strName);

            if (FPUtils.IsNumericArray(formString))
            {
                return(FPArray.SplitInt(formString, 1)[0]);
            }
            return(FPUtils.StrToInt(formString, defValue));
        }
Example #2
0
 // Token: 0x060000C2 RID: 194 RVA: 0x0000A420 File Offset: 0x00008620
 public static int[] SplitInt(string strContent, string strSplit)
 {
     string[] array  = FPUtils.SplitString(strContent, strSplit);
     int[]    array2 = new int[array.Length];
     for (int i = 0; i < array.Length; i++)
     {
         array2[i] = FPUtils.StrToInt(array[i]);
     }
     return(array2);
 }
Example #3
0
 // Token: 0x060000C3 RID: 195 RVA: 0x0000A468 File Offset: 0x00008668
 public static int[] SplitInt(string strContent, string strSplit, int p_3)
 {
     int[]    array  = new int[p_3];
     string[] array2 = FPUtils.SplitString(strContent, strSplit);
     for (int i = 0; i < p_3; i++)
     {
         if (i < array2.Length)
         {
             array[i] = FPUtils.StrToInt(array2[i]);
         }
         else
         {
             array[i] = 0;
         }
     }
     return(array);
 }
Example #4
0
 // Token: 0x0600008F RID: 143 RVA: 0x00008DFC File Offset: 0x00006FFC
 public static int GetFormInt(string strName, int defValue)
 {
     return(FPUtils.StrToInt(HttpContext.Current.Request.Form[strName], defValue));
 }
Example #5
0
 // Token: 0x060000D6 RID: 214 RVA: 0x0000A9E0 File Offset: 0x00008BE0
 public static int StrToInt(object Expression)
 {
     return(FPUtils.StrToInt(Expression, 0));
 }