NOBUG move function definition is_valid_var_or_func_name above 'HERE

BE INTERNAL METHODS' line.
This commit is contained in:
jamiepratt
2011-06-23 12:33:36 +01:00
committed by Tim Hunt
parent 06329db453
commit 6efaec1e15
+9
View File
@@ -176,6 +176,14 @@ class EvalMath {
return $output;
}
/**
* @param string $name
* @return boolean Is this a valid var or function name?
*/
public static function is_valid_var_or_func_name($name){
return preg_match('/'.self::$namepat.'$/iA', $name);
}
//===================== HERE BE INTERNAL METHODS ====================\\
// Convert infix to postfix notation
@@ -428,6 +436,7 @@ class EvalMath {
if (!$this->suppress_errors) trigger_error($msg, E_USER_WARNING);
return false;
}
}
// for internal use