From 5794832a72b0fb64793c48b9cf29cc282db1fec6 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 8 Aug 2006 09:46:46 +0000 Subject: [PATCH] - Added some docs here so that nobody needs to figure it out once more. --- Zend/zend_operators.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index ba86413044..8274332417 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -66,6 +66,15 @@ ZEND_API zend_bool instanceof_function_ex(zend_class_entry *instance_ce, zend_cl ZEND_API zend_bool instanceof_function(zend_class_entry *instance_ce, zend_class_entry *ce TSRMLS_DC); END_EXTERN_C() +/** + * Checks whether the string "str" with the length "length" is a numeric string. + * + * The function returns 0 if the string did not contain a string; IS_LONG if + * the string contained a number that fits in the integer range and IS_DOUBLE + * in case it did not. The long value is returned into the pointer *lval if + * that pointer was not NULL or into the pointer *dval if that pointer was not + * NULL. + */ static inline zend_bool is_numeric_string(char *str, int length, long *lval, double *dval, int allow_errors) { long local_lval; -- 2.50.1