Sophie

Sophie

distrib > Fedora > 16 > x86_64 > by-pkgid > a56af13763747629d8dc453763fd5281 > files > 65

libthai-devel-0.1.14-4.fc15.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libthai: thai/thwbrk.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.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libthai&#160;<span id="projectnumber">0.1.14</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>thai/thwbrk.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Thai wide-char word segmentation.  
<a href="#_details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwbrk_8h.html#a92450f7ded5eddc838ead18be0c9b285">th_wbrk</a> (const <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *s, int pos[], size_t n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Find word break positions in Thai wide-char string.  <a href="#a92450f7ded5eddc838ead18be0c9b285"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thwbrk_8h.html#aa3ce66b1aefec6f9dee90c59d0a99427">th_wbrk_line</a> (const <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *in, <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *out, size_t n, const <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *delim)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert word delimitors in given wide-char string.  <a href="#aa3ce66b1aefec6f9dee90c59d0a99427"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Thai wide-char word segmentation. </p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a92450f7ded5eddc838ead18be0c9b285"></a><!-- doxytag: member="thwbrk.h::th_wbrk" ref="a92450f7ded5eddc838ead18be0c9b285" args="(const thwchar_t *s, int pos[], size_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_wbrk </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pos</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Find word break positions in Thai wide-char string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>: the input string to be processed </td></tr>
    <tr><td class="paramname">pos</td><td>: array to keep breaking positions </td></tr>
    <tr><td class="paramname">n</td><td>: size of <em>pos</em>[]</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the actual number of breaking positions occurred</dd></dl>
<p>Finds word break positions in Thai string <em>s</em> and stores at most <em>n</em> breaking positions in <em>pos</em>[], from left to right. </p>

</div>
</div>
<a class="anchor" id="aa3ce66b1aefec6f9dee90c59d0a99427"></a><!-- doxytag: member="thwbrk.h::th_wbrk_line" ref="aa3ce66b1aefec6f9dee90c59d0a99427" args="(const thwchar_t *in, thwchar_t *out, size_t n, const thwchar_t *delim)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_wbrk_line </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="thwchar_8h.html#ac574aa2199e3bc6e052d051ea720cc21">thwchar_t</a> *&#160;</td>
          <td class="paramname"><em>delim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Insert word delimitors in given wide-char string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">in</td><td>: the input wide-char string to be processed </td></tr>
    <tr><td class="paramname">out</td><td>: the output wide-char buffer </td></tr>
    <tr><td class="paramname">n</td><td>: the size of <em>out</em> (as number of elements) </td></tr>
    <tr><td class="paramname">delim</td><td>: the wide-char word delimitor to insert</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the actual size of the processed string (as number of elements)</dd></dl>
<p>Analyzes the input string and store the string in output buffer with the given word delimitor inserted at every word boundary. </p>

</div>
</div>
</div>
<hr size="1"><address style="text-align: right;"><small>
Generated for libthai by&nbsp;<a href="http://www.doxygen.org/
index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 
1.7.3</small></address>
</body>
</html>