diff options
author | Andrei Zmievski <andrei@php.net> | 2001-10-19 19:21:58 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2001-10-19 19:21:58 +0000 |
commit | 1ed249ddbc15ab33d67ea8ac2650c9347be0d803 (patch) | |
tree | b08f7b8ac21c436b2b6ca832e764d89ffb8ede63 /ext/standard/levenshtein.c | |
parent | 1f852425d1b0c467190dbc58a5ded51f4c8931e3 (diff) | |
download | php-git-1ed249ddbc15ab33d67ea8ac2650c9347be0d803.tar.gz |
Converting to use new parameter parsing API.
Diffstat (limited to 'ext/standard/levenshtein.c')
-rw-r--r-- | ext/standard/levenshtein.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/ext/standard/levenshtein.c b/ext/standard/levenshtein.c index 129044128c..984b37044e 100644 --- a/ext/standard/levenshtein.c +++ b/ext/standard/levenshtein.c @@ -102,8 +102,7 @@ PHP_FUNCTION(levenshtein) convert_to_string_ex(str2); distance = reference_levdist(Z_STRVAL_PP(str1), Z_STRLEN_PP(str1), - Z_STRVAL_PP(str2), Z_STRLEN_PP(str2), - 1, 1, 1); + Z_STRVAL_PP(str2), Z_STRLEN_PP(str2), 1, 1, 1); break; @@ -117,12 +116,10 @@ PHP_FUNCTION(levenshtein) convert_to_long_ex(cost_rep); convert_to_long_ex(cost_del); - distance = reference_levdist(Z_STRVAL_PP(str1), Z_STRLEN_PP(str1), - Z_STRVAL_PP(str2), Z_STRLEN_PP(str2), - Z_LVAL_PP(cost_ins), - Z_LVAL_PP(cost_rep), - Z_LVAL_PP(cost_del) - ); + distance = reference_levdist(Z_STRVAL_PP(str1), Z_STRLEN_PP(str1), + Z_STRVAL_PP(str2), Z_STRLEN_PP(str2), + Z_LVAL_PP(cost_ins), Z_LVAL_PP(cost_rep), + Z_LVAL_PP(cost_del)); break; @@ -134,10 +131,8 @@ PHP_FUNCTION(levenshtein) convert_to_string_ex(str2); convert_to_string_ex(callback_name); - distance = custom_levdist(Z_STRVAL_PP(str1) - , Z_STRVAL_PP(str2) - , Z_STRVAL_PP(callback_name) - ); + distance = custom_levdist(Z_STRVAL_PP(str1), Z_STRVAL_PP(str2), + Z_STRVAL_PP(callback_name)); break; default: |