Exemplo n.º 1
0
Arquivo: strutil.c Projeto: CTU-OSP/mc
static void
str_choose_str_functions (void)
{
    if (str_test_encoding_class (codeset, str_utf8_encodings))
        used_class = str_utf8_init ();
    else if (str_test_encoding_class (codeset, str_8bit_encodings))
        used_class = str_8bit_init ();
    else
        used_class = str_ascii_init ();
}
Exemplo n.º 2
0
int
str_isutf8 (const char *codeset_name)
{
    int result = 0;
    if (str_test_encoding_class (codeset_name, str_utf8_encodings))
    {
        result = 1;
    }
    return result;
}
Exemplo n.º 3
0
Arquivo: strutil.c Projeto: CTU-OSP/mc
gboolean
str_isutf8 (const char *codeset_name)
{
    return (str_test_encoding_class (codeset_name, str_utf8_encodings) != 0);
}