Example #1
0
    private bool method_5(string A_0)
    {
        double d = Class1041.smethod_15(A_0);

        if (!double.IsNaN(d))
        {
            this.object_0       = d;
            this.cssValueType_0 = CssValueType.Number;
            return(true);
        }
        return(false);
    }
Example #2
0
 private bool method_4(string A_0)
 {
     if (A_0.EndsWith(BookmarkStart.b("ᜱ", 12)))
     {
         double d = Class1041.smethod_15(A_0.Substring(0, A_0.Length - 1));
         if (!double.IsNaN(d))
         {
             this.object_0       = d;
             this.cssValueType_0 = CssValueType.Percentage;
             return(true);
         }
     }
     return(false);
 }
Example #3
0
 private bool method_3(string A_0, string A_1, CssUnitType A_2)
 {
     if (A_0.EndsWith(A_1))
     {
         double d = Class1041.smethod_15(A_0.Substring(0, A_0.Length - A_1.Length));
         if (!double.IsNaN(d))
         {
             this.object_0       = d;
             this.cssValueType_0 = CssValueType.Length;
             this.cssUnitType_0  = A_2;
             return(true);
         }
     }
     return(false);
 }
Example #4
0
 internal Class846(string A_0)
 {
     this.string_0 = A_0;
     if (A_0 != string.Empty)
     {
         int num = A_0.Length - 1;
         while (num >= 0)
         {
             if (((A_0[num] >= '0') && (A_0[num] <= '9')) || (A_0[num] == '.'))
             {
                 break;
             }
             num--;
         }
         string str = A_0.Substring(0, num + 1);
         this.double_0 = Class1041.smethod_15(str);
         this.bool_0   = !double.IsNaN(this.double_0);
         this.string_1 = A_0.Substring(num + 1, (A_0.Length - num) - 1);
     }
 }
Example #5
0
    internal double method_49(string A_0, NMLUnit A_1)
    {
        double num = 0.0;

        if (A_0 != string.Empty)
        {
            int num2 = A_0.Length - 1;
            while (num2 >= 0)
            {
                if ((A_0[num2] >= '0') && (A_0[num2] <= '9'))
                {
                    break;
                }
                num2--;
            }
            double  d    = Class1041.smethod_15(A_0.Substring(0, num2 + 1));
            NMLUnit unit = smethod_3(A_0.Substring(num2 + 1, (A_0.Length - num2) - 1), A_1);
            if (!double.IsNaN(d))
            {
                num = (float)smethod_1(d, unit, A_1);
            }
        }
        return(num);
    }