示例#1
0
 public static string Getsteels3(string S)
 {
     checked
     {
         short  num = (short)Strings.InStr(S, ";", CompareMethod.Binary);
         string result;
         if (num > 0)
         {
             string text  = S.Substring(0, (int)(num - 1));
             string text2 = S.Substring((int)num);
             string s     = text;
             int    num2  = 0;
             text = Conversions.ToString(JG.GetSteels1(s, ref num2));
             string s2 = text2;
             num2   = 0;
             text2  = Conversions.ToString(JG.GetSteels1(s2, ref num2));
             result = text + " / " + text2;
         }
         else
         {
             int num2 = 0;
             result = Conversions.ToString(JG.GetSteels1(S, ref num2));
         }
         return(result);
     }
 }
示例#2
0
        public static string GetAs_Function(string Txt)
        {
            Txt = Strings.Replace(Txt, "-", "@", 1, -1, CompareMethod.Binary);
            string expression = Txt.Substring(0, 1);

            if (!Versioned.IsNumeric(expression))
            {
                int num = Strings.InStr(Txt, " ", CompareMethod.Binary);
                if (num > 0)
                {
                    Txt = Txt.Substring(num);
                    Txt = Strings.Trim(Txt);
                }
            }
            checked
            {
                short  num2 = (short)Strings.InStr(Txt, "@", CompareMethod.Binary);
                string result;
                if (num2 > 0)
                {
                    result = JG.GetSteels2(Txt);
                }
                else
                {
                    short num3 = (short)Strings.InStr(Txt, ";", CompareMethod.Binary);
                    if (num3 > 0)
                    {
                        result = JG.Getsteels3(Txt).ToString();
                    }
                    else
                    {
                        string s    = Txt;
                        int    num4 = 0;
                        result = JG.GetSteels1(s, ref num4).ToString();
                    }
                }
                return(result);
            }
        }