1
1

str_isutf8() function now returns gboolean value

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
Slava Zanko 2011-04-06 12:01:27 +03:00
родитель aa2d0b07ed
Коммит 6cec807140
2 изменённых файлов: 4 добавлений и 9 удалений

Просмотреть файл

@ -511,10 +511,10 @@ int str_key_collate (const char *t1, const char *t2, int case_sen);
*/
void str_release_key (char *key, int case_sen);
/* return 1 if codeset_name is utf8 or utf-8
/* return TRUE if codeset_name is utf8 or utf-8
* I
*/
int str_isutf8 (const char *codeset_name);
gboolean str_isutf8 (const char *codeset_name);
const char *str_detect_termencoding (void);

Просмотреть файл

@ -354,15 +354,10 @@ str_choose_str_functions (void)
}
}
int
gboolean
str_isutf8 (const char *codeset_name)
{
int result = 0;
if (str_test_encoding_class (codeset_name, str_utf8_encodings))
{
result = 1;
}
return result;
return (str_test_encoding_class (codeset_name, str_utf8_encodings) != 0);
}
void