diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-12-24 15:04:51 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-12-24 15:04:51 +0300 |
| commit | c42ac09518d7ec121abb86fc57805e7db56d28ed (patch) | |
| tree | 02e4c294ad86c7ad7767d21f2081b165809350fb /Zend/zend_operators.h | |
| parent | 288b6d78b0ed89216e660bd645c98172d39ba021 (diff) | |
| download | php-git-c42ac09518d7ec121abb86fc57805e7db56d28ed.tar.gz | |
Added new API function 'zend_string* zend_string_tolower(zend_string*)'.
It simplifies code and avoids unnecessary allocation and copying if string is already in lower case.
Diffstat (limited to 'Zend/zend_operators.h')
| -rw-r--r-- | Zend/zend_operators.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 83a70d5c47..1426fe919a 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -325,6 +325,7 @@ ZEND_API int string_locale_compare_function(zval *result, zval *op1, zval *op2); ZEND_API void zend_str_tolower(char *str, size_t length); ZEND_API char *zend_str_tolower_copy(char *dest, const char *source, size_t length); ZEND_API char *zend_str_tolower_dup(const char *source, size_t length); +ZEND_API zend_string *zend_string_tolower(zend_string *str); ZEND_API int zend_binary_zval_strcmp(zval *s1, zval *s2); ZEND_API int zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3); |
