Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-updates > by-pkgid > d2004322c361b48b15297e46937ded25 > files > 52

lib64thai-devel-0.1.9-7.1mdv2009.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libthai: thai/thwchar.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>thai/thwchar.h File Reference</h1>Wide char support for Thai.  
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="042d1722b6c15b36e67d13fd5f548bb8"></a><!-- doxytag: member="thwchar.h::THWCHAR_ERR" ref="042d1722b6c15b36e67d13fd5f548bb8" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#042d1722b6c15b36e67d13fd5f548bb8">THWCHAR_ERR</a>&nbsp;&nbsp;&nbsp;(~(<a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>)0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wide-character value indicating error. <br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c574aa2199e3bc6e052d051ea720cc21"></a><!-- doxytag: member="thwchar.h::thwchar_t" ref="c574aa2199e3bc6e052d051ea720cc21" args="" -->
typedef wchar_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Thai character type for storing Unicode character. <br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#c701f59d18ba58af555876f8fb6e2920">th_tis2uni</a> (<a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert character code from TIS-620 to Unicode.  <a href="#c701f59d18ba58af555876f8fb6e2920"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#3e7706fe0882acab3dc26bd74b442786">th_tis2uni_line</a> (const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *result, size_t n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert string from TIS-620 to Unicode.  <a href="#3e7706fe0882acab3dc26bd74b442786"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#645bd448345fe7ee68bc5cf8faefb8bd">th_winthai2uni</a> (<a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert character code from Thai Windows extended code to Unicode.  <a href="#645bd448345fe7ee68bc5cf8faefb8bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#4496f3813622471c9b517e7dc5b8ffdc">th_macthai2uni</a> (<a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert character code from Mac Thai extended code to Unicode.  <a href="#4496f3813622471c9b517e7dc5b8ffdc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#b550a1294f939e54bf12a0ea8be3ab19">th_uni2tis</a> (<a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert character code from Unicode to TIS-620.  <a href="#b550a1294f939e54bf12a0ea8be3ab19"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#72225f1c24c6ecd5056f53e620b931b6">th_uni2tis_line</a> (const <a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *s, <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *result, size_t n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert string from Unicode to TIS-620.  <a href="#72225f1c24c6ecd5056f53e620b931b6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#ddf1c038ca4e26b2a167f77dfeb84488">th_uni2winthai</a> (<a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert character code from Unicode to Thai Windows extended code.  <a href="#ddf1c038ca4e26b2a167f77dfeb84488"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwchar_8h.html#8bab278766ae1f51c8cff0d39e320aab">th_uni2macthai</a> (<a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert character code from Unicode to Mac Thai extended code.  <a href="#8bab278766ae1f51c8cff0d39e320aab"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Wide char support for Thai. 
<p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="4496f3813622471c9b517e7dc5b8ffdc"></a><!-- doxytag: member="thwchar.h::th_macthai2uni" ref="4496f3813622471c9b517e7dc5b8ffdc" args="(thchar_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> th_macthai2uni           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert character code from Mac Thai extended code to Unicode. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>: Mac Thai character/glyph to convert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Corresponding Unicode code </dd></dl>

</div>
</div><p>
<a class="anchor" name="c701f59d18ba58af555876f8fb6e2920"></a><!-- doxytag: member="thwchar.h::th_tis2uni" ref="c701f59d18ba58af555876f8fb6e2920" args="(thchar_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> th_tis2uni           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert character code from TIS-620 to Unicode. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>: TIS-620 character to convert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Corresponding Unicode code </dd></dl>

</div>
</div><p>
<a class="anchor" name="3e7706fe0882acab3dc26bd74b442786"></a><!-- doxytag: member="thwchar.h::th_tis2uni_line" ref="3e7706fe0882acab3dc26bd74b442786" args="(const thchar_t *s, thwchar_t *result, size_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_tis2uni_line           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>n</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert string from TIS-620 to Unicode. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>: source TIS-620 string (null-terminated) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>: buffer for storing resulting Unicode string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>: size of <em>result</em> buffer (as number of elements)</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the length of the output Unicode string </dd></dl>

</div>
</div><p>
<a class="anchor" name="8bab278766ae1f51c8cff0d39e320aab"></a><!-- doxytag: member="thwchar.h::th_uni2macthai" ref="8bab278766ae1f51c8cff0d39e320aab" args="(thwchar_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> th_uni2macthai           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert character code from Unicode to Mac Thai extended code. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>: Unicode code to convert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Corresponding Mac Thai extended code, or <code>TH_ERR</code> if conversion is impossible </dd></dl>

</div>
</div><p>
<a class="anchor" name="b550a1294f939e54bf12a0ea8be3ab19"></a><!-- doxytag: member="thwchar.h::th_uni2tis" ref="b550a1294f939e54bf12a0ea8be3ab19" args="(thwchar_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> th_uni2tis           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert character code from Unicode to TIS-620. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>: Unicode character to convert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Corresponding TIS-620 code, or <code>TH_ERR</code> if conversion is impossible </dd></dl>

</div>
</div><p>
<a class="anchor" name="72225f1c24c6ecd5056f53e620b931b6"></a><!-- doxytag: member="thwchar.h::th_uni2tis_line" ref="72225f1c24c6ecd5056f53e620b931b6" args="(const thwchar_t *s, thchar_t *result, size_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_uni2tis_line           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>n</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert string from Unicode to TIS-620. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>: source Unicode string (null-terminated) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>: buffer for storing resulting TIS-620 string </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>: size of <em>result</em> buffer (as number of elements)</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the length of the output TIS-620 string</dd></dl>
Note that, since the conversion is lossy, some characters in the convesion result may be <code>TH_ERR</code>, indicating conversion error. 
</div>
</div><p>
<a class="anchor" name="ddf1c038ca4e26b2a167f77dfeb84488"></a><!-- doxytag: member="thwchar.h::th_uni2winthai" ref="ddf1c038ca4e26b2a167f77dfeb84488" args="(thwchar_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> th_uni2winthai           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert character code from Unicode to Thai Windows extended code. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>: Unicode code to convert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Corresponding Thai Windows extended code, or <code>TH_ERR</code> if conversion is impossible </dd></dl>

</div>
</div><p>
<a class="anchor" name="645bd448345fe7ee68bc5cf8faefb8bd"></a><!-- doxytag: member="thwchar.h::th_winthai2uni" ref="645bd448345fe7ee68bc5cf8faefb8bd" args="(thchar_t c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="thwchar_8h.html#c574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> th_winthai2uni           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&nbsp;</td>
          <td class="paramname"> <em>c</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convert character code from Thai Windows extended code to Unicode. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>: Thai Windows character/glyph to convert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Corresponding Unicode code </dd></dl>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Jan 16 10:00:17 2010 for libthai by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>