<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>PulseAudio: utf8.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.5 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="classes.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> </div> <div class="contents"> <h1>utf8.h File Reference</h1>UTF8 Validation functions. <a href="#_details">More...</a> <p> <p> <a href="utf8_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8h.html#06d0933e91a67ab776228a1f0fa8e5cc">pa_utf8_valid</a> (const char *str) PA_GCC_PURE</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Test if the specified strings qualifies as valid UTF8. <a href="#06d0933e91a67ab776228a1f0fa8e5cc"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8h.html#0685ca8e79a2e26a588bccda535d0676">pa_utf8_filter</a> (const char *str)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Filter all invalid UTF8 characters from the specified string, returning a new fully UTF8 valid string. <a href="#0685ca8e79a2e26a588bccda535d0676"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8h.html#c3d712d94b704a3926c02099716ffbba">pa_utf8_to_locale</a> (const char *str)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a UTF-8 string to the current locale. <a href="#c3d712d94b704a3926c02099716ffbba"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8h.html#9c00367174d98424a3385402ec53d2b5">pa_locale_to_utf8</a> (const char *str)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a string in the current locale to UTF-8. <a href="#9c00367174d98424a3385402ec53d2b5"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> UTF8 Validation functions. <p> <hr><h2>Function Documentation</h2> <a class="anchor" name="9c00367174d98424a3385402ec53d2b5"></a><!-- doxytag: member="utf8.h::pa_locale_to_utf8" ref="9c00367174d98424a3385402ec53d2b5" args="(const char *str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* pa_locale_to_utf8 </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>str</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Convert a string in the current locale to UTF-8. <p> Free the string using <a class="el" href="xmalloc_8h.html#975c3f1d400a40ede0d5e79bb8876008" title="Free allocated memory.">pa_xfree()</a>. <dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="paplay_8c-example.html#a56">paplay.c</a>.</dl> </div> </div><p> <a class="anchor" name="0685ca8e79a2e26a588bccda535d0676"></a><!-- doxytag: member="utf8.h::pa_utf8_filter" ref="0685ca8e79a2e26a588bccda535d0676" args="(const char *str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* pa_utf8_filter </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>str</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Filter all invalid UTF8 characters from the specified string, returning a new fully UTF8 valid string. <p> Don't forget to free the returned string with <a class="el" href="xmalloc_8h.html#975c3f1d400a40ede0d5e79bb8876008" title="Free allocated memory.">pa_xfree()</a> <dl compact><dt><b>Examples: </b></dt><dd> <a class="el" href="paplay_8c-example.html#a57">paplay.c</a>.</dl> </div> </div><p> <a class="anchor" name="c3d712d94b704a3926c02099716ffbba"></a><!-- doxytag: member="utf8.h::pa_utf8_to_locale" ref="c3d712d94b704a3926c02099716ffbba" args="(const char *str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* pa_utf8_to_locale </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>str</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Convert a UTF-8 string to the current locale. <p> Free the string using <a class="el" href="xmalloc_8h.html#975c3f1d400a40ede0d5e79bb8876008" title="Free allocated memory.">pa_xfree()</a>. </div> </div><p> <a class="anchor" name="06d0933e91a67ab776228a1f0fa8e5cc"></a><!-- doxytag: member="utf8.h::pa_utf8_valid" ref="06d0933e91a67ab776228a1f0fa8e5cc" args="(const char *str) PA_GCC_PURE" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* pa_utf8_valid </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>str</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Test if the specified strings qualifies as valid UTF8. <p> Return the string if so, otherwise NULL </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 26 12:02:40 2008 for PulseAudio by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> </body> </html>