You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varargs2=func2.Evaluate(work,tempParameter);if(args2.IsNotNumber){args2=args2.ToNumber("Function '{0}' parameter {1} is error!","BIN2OCT",2);if(args2.IsError){returnargs2;}}
@@ -638,7 +638,7 @@ public override Operand Evaluate(AlgorithmEngine work, Func<string, Operand> tem
638
638
{
639
639
varargs1=func1.Evaluate(work,tempParameter);if(args1.IsNotText){args1=args1.ToText("Function '{0}' parameter is error!","BIN2DEC");if(args1.IsError){returnargs1;}}
640
640
641
-
if(FunctionUtil.BinRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter is error!","BIN2DEC");}
641
+
if(RegexHelper.BinRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter is error!","BIN2DEC");}
642
642
varnum=Convert.ToInt32(args1.TextValue,2);
643
643
returnOperand.Create(num);
644
644
}
@@ -658,7 +658,7 @@ public override Operand Evaluate(AlgorithmEngine work, Func<string, Operand> tem
658
658
{
659
659
varargs1=func1.Evaluate(work,tempParameter);if(args1.IsNotText){args1=args1.ToText("Function '{0}' parameter {1} is error!","BIN2HEX",1);if(args1.IsError){returnargs1;}}
660
660
661
-
if(FunctionUtil.BinRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter {1} is error!","BIN2HEX",1);}
661
+
if(RegexHelper.BinRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter {1} is error!","BIN2HEX",1);}
varargs2=func2.Evaluate(work,tempParameter);if(args2.IsNotNumber){args2=args2.ToNumber("Function '{0}' parameter {1} is error!","OCT2BIN",2);if(args2.IsError){returnargs2;}}
@@ -712,7 +712,7 @@ public override Operand Evaluate(AlgorithmEngine work, Func<string, Operand> tem
712
712
{
713
713
varargs1=func1.Evaluate(work,tempParameter);if(args1.IsNotText){args1=args1.ToText("Function '{0}' parameter is error!","OCT2DEC");if(args1.IsError){returnargs1;}}
714
714
715
-
if(FunctionUtil.OctRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter is error!","OCT2DEC");}
715
+
if(RegexHelper.OctRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter is error!","OCT2DEC");}
716
716
varnum=Convert.ToInt32(args1.TextValue,8);
717
717
returnOperand.Create(num);
718
718
}
@@ -732,7 +732,7 @@ public override Operand Evaluate(AlgorithmEngine work, Func<string, Operand> tem
732
732
{
733
733
varargs1=func1.Evaluate(work,tempParameter);if(args1.IsNotText){args1=args1.ToText("Function '{0}' parameter {1} is error!","OCT2HEX",1);if(args1.IsError){returnargs1;}}
734
734
735
-
if(FunctionUtil.OctRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter {1} is error!","OCT2HEX",1);}
735
+
if(RegexHelper.OctRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter {1} is error!","OCT2HEX",1);}
varargs2=func2.Evaluate(work,tempParameter);if(args2.IsNotNumber){args2=args2.ToNumber("Function '{0}' parameter {1} is error!","HEX2BIN",2);if(args2.IsError){returnargs2;}}
@@ -786,7 +786,7 @@ public override Operand Evaluate(AlgorithmEngine work, Func<string, Operand> tem
786
786
{
787
787
varargs1=func1.Evaluate(work,tempParameter);if(args1.IsNotText){args1=args1.ToText("Function '{0}' parameter is error!","HEX2DEC");if(args1.IsError){returnargs1;}}
788
788
789
-
if(FunctionUtil.HexRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter is error!","HEX2DEC");}
789
+
if(RegexHelper.HexRegex.IsMatch(args1.TextValue)==false){returnOperand.Error("Function '{0}' parameter is error!","HEX2DEC");}
790
790
varnum=Convert.ToInt32(args1.TextValue,16);
791
791
returnOperand.Create(num);
792
792
}
@@ -805,7 +805,7 @@ public Function_HEX2OCT(FunctionBase func1, FunctionBase func2) : base(func1, fu
0 commit comments