Sophie

Sophie

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

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/thbrk.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/thbrk.h File Reference</h1>Thai word segmentation.  
<a href="#_details">More...</a>
<p>
<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">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="thbrk_8h.html#8858205504ececef912f724a1690551e">th_brk</a> (const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, int pos[], size_t n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find word break positions in Thai string.  <a href="#8858205504ececef912f724a1690551e"></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="thbrk_8h.html#35edc3991aaff92491c16ba0e903bec9">th_brk_line</a> (const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *in, <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *out, size_t n, const char *delim)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Insert word delimitors in given string.  <a href="#35edc3991aaff92491c16ba0e903bec9"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Thai word segmentation. 
<p>
<dl class="rcs" compact><dt><b>Id</b></dt><dd><a class="el" href="thbrk_8h.html" title="Thai word segmentation.">thbrk.h</a>,v 1.6 2006-07-31 12:54:02 thep Exp </dd></dl>
<a class="el" href="thbrk_8h.html" title="Thai word segmentation.">thbrk.h</a> - Thai word segmentation Created: 2001-05-17 <hr><h2>Function Documentation</h2>
<a class="anchor" name="8858205504ececef912f724a1690551e"></a><!-- doxytag: member="thbrk.h::th_brk" ref="8858205504ececef912f724a1690551e" args="(const thchar_t *s, int pos[], size_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_brk           </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">int&nbsp;</td>
          <td class="paramname"> <em>pos</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>
Find word break positions in Thai string. 
<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>: the input string to be processed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>: array to keep breaking positions </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>: size of <em>pos</em>[]</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the actual number of breaking positions occurred</dd></dl>
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. 
</div>
</div><p>
<a class="anchor" name="35edc3991aaff92491c16ba0e903bec9"></a><!-- doxytag: member="thbrk.h::th_brk_line" ref="35edc3991aaff92491c16ba0e903bec9" args="(const thchar_t *in, thchar_t *out, size_t n, const char *delim)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_brk_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>in</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>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>delim</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Insert word delimitors in given string. 
<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>in</em>&nbsp;</td><td>: the input string to be processed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>out</em>&nbsp;</td><td>: the output buffer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>: the size of <em>out</em> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>delim</em>&nbsp;</td><td>: the word delimitor to insert</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the actual size of the processed string</dd></dl>
Analyzes the input string and store the string in output buffer with the given word delimitor inserted at every word boundary. 
</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>