mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
add C++ macros to utf8.h
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@922 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
ee4d6b064f
commit
40feedb8bf
1 changed files with 6 additions and 0 deletions
|
|
@ -22,14 +22,20 @@
|
||||||
USA.
|
USA.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
#include <polyp/cdecl.h>
|
||||||
|
|
||||||
/** \file
|
/** \file
|
||||||
* UTF8 Validation functions
|
* UTF8 Validation functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
PA_C_DECL_BEGIN
|
||||||
|
|
||||||
/** Test if the specified strings qualifies as valid UTF8. Return the string if so, otherwise NULL */
|
/** Test if the specified strings qualifies as valid UTF8. Return the string if so, otherwise NULL */
|
||||||
const char *pa_utf8_valid(const char *str);
|
const char *pa_utf8_valid(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() */
|
/** 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() */
|
||||||
char *pa_utf8_filter(const char *str);
|
char *pa_utf8_filter(const char *str);
|
||||||
|
|
||||||
|
PA_C_DECL_END
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue