Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

char* pa_utf8_filter ( const char *  str  ) 

Filter all invalid UTF8 characters from the specified string, returning a new fully UTF8 valid string. Don't forget to free the returned string with pa_xfree()

Definition at line 183 of file utf8.c.

                                       {
    char *new_str;

    pa_assert(str);
    new_str = pa_xmalloc(strlen(str) + 1);
    return utf8_validate(str, new_str);
}


Generated by  Doxygen 1.6.0   Back to index