@@ -978,31 +978,31 @@ PHP_FUNCTION(grapheme_levenshtein)
978
978
979
979
intl_convert_utf8_to_utf16 (& ustring1 , & ustring1_len , pstr1 , ZSTR_LEN (string1 ), & ustatus1 );
980
980
981
- if ( U_FAILURE ( ustatus1 ) ) {
981
+ if (U_FAILURE (ustatus1 ) ) {
982
982
/* Set global error code. */
983
983
intl_error_set_code ( NULL , ustatus1 );
984
984
985
985
/* Set error messages. */
986
986
intl_error_set_custom_msg ( NULL , "Error converting input string to UTF-16" , 0 );
987
987
if (ustring1 ) {
988
- efree ( ustring1 );
988
+ efree (ustring1 );
989
989
}
990
990
RETURN_FALSE ;
991
991
}
992
992
993
993
intl_convert_utf8_to_utf16 (& ustring2 , & ustring2_len , pstr2 , ZSTR_LEN (string2 ), & ustatus2 );
994
994
995
- if ( U_FAILURE ( ustatus2 ) ) {
995
+ if (U_FAILURE (ustatus2 ) ) {
996
996
/* Set global error code. */
997
- intl_error_set_code ( NULL , ustatus2 );
997
+ intl_error_set_code (NULL , ustatus2 );
998
998
999
999
/* Set error messages. */
1000
- intl_error_set_custom_msg ( NULL , "Error converting input string to UTF-16" , 0 );
1000
+ intl_error_set_custom_msg (NULL , "Error converting input string to UTF-16" , 0 );
1001
1001
if (ustring2 ) {
1002
- efree ( ustring2 );
1002
+ efree (ustring2 );
1003
1003
}
1004
1004
if (ustring1 ) {
1005
- efree ( ustring1 );
1005
+ efree (ustring1 );
1006
1006
}
1007
1007
RETURN_FALSE ;
1008
1008
}
@@ -1012,8 +1012,8 @@ PHP_FUNCTION(grapheme_levenshtein)
1012
1012
UBreakIterator * bi1 , * bi2 ;
1013
1013
1014
1014
int32_t strlen_1 , strlen_2 ;
1015
- strlen_1 = grapheme_split_string (ustring1 , ustring1_len , NULL , 0 );
1016
- strlen_2 = grapheme_split_string (ustring2 , ustring2_len , NULL , 0 );
1015
+ strlen_1 = grapheme_split_string (ustring1 , ustring1_len , NULL , 0 );
1016
+ strlen_2 = grapheme_split_string (ustring2 , ustring2_len , NULL , 0 );
1017
1017
1018
1018
if (strlen_1 == 0 ) {
1019
1019
efree (ustring1 );
@@ -1028,8 +1028,8 @@ PHP_FUNCTION(grapheme_levenshtein)
1028
1028
1029
1029
unsigned char u_break_iterator_buffer1 [U_BRK_SAFECLONE_BUFFERSIZE ];
1030
1030
unsigned char u_break_iterator_buffer2 [U_BRK_SAFECLONE_BUFFERSIZE ];
1031
- bi1 = grapheme_get_break_iterator ((void * )u_break_iterator_buffer1 , & ustatus1 );
1032
- bi2 = grapheme_get_break_iterator ((void * )u_break_iterator_buffer2 , & ustatus2 );
1031
+ bi1 = grapheme_get_break_iterator ((void * )u_break_iterator_buffer1 , & ustatus1 );
1032
+ bi2 = grapheme_get_break_iterator ((void * )u_break_iterator_buffer2 , & ustatus2 );
1033
1033
1034
1034
ut1 = utext_openUTF8 (ut1 , pstr1 , ZSTR_LEN (string1 ), & ustatus1 );
1035
1035
ubrk_setUText (bi1 , ut1 , & ustatus1 );
@@ -1048,7 +1048,7 @@ PHP_FUNCTION(grapheme_levenshtein)
1048
1048
int32_t pos1 = 0 ;
1049
1049
int32_t pos2 = 0 ;
1050
1050
int32_t usrch_pos = 0 ;
1051
- for ( ; pos1 != UBRK_DONE ; ) {
1051
+ for (; pos1 != UBRK_DONE ;) {
1052
1052
current1 = ubrk_current (bi1 );
1053
1053
pos1 = ubrk_next (bi1 );
1054
1054
if (pos1 == UBRK_DONE ) {
0 commit comments