Current File : //proc/self/root/kunden/usr/share/doc/libthai-devel/html/thcell_8h.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libthai: thai/thcell.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libthai
 <span id="projectnumber">0.1.28</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_27634488b513a0cc2afc6ccdc5595e06.html">thai</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">thcell.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Thai string cell custering.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structthcell__t.html">thcell_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Thai char cell representation. <a href="structthcell__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a45e7e31d1d42b4901c4f2b4fa391cae2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="thcell_8h.html#a45e7e31d1d42b4901c4f2b4fa391cae2">th_init_cell</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> *cell)</td></tr>
<tr class="memdesc:a45e7e31d1d42b4901c4f2b4fa391cae2"><td class="mdescLeft"> </td><td class="mdescRight">Initialize a Thai cell. <a href="thcell_8h.html#a45e7e31d1d42b4901c4f2b4fa391cae2">More...</a><br /></td></tr>
<tr class="separator:a45e7e31d1d42b4901c4f2b4fa391cae2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abf0f4f32b9fba28c54a3f606032a1762"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="thcell_8h.html#abf0f4f32b9fba28c54a3f606032a1762">th_next_cell</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, size_t len, struct <a class="el" href="structthcell__t.html">thcell_t</a> *cell, int is_decomp_am)</td></tr>
<tr class="memdesc:abf0f4f32b9fba28c54a3f606032a1762"><td class="mdescLeft"> </td><td class="mdescRight">Get first cell from string. <a href="thcell_8h.html#abf0f4f32b9fba28c54a3f606032a1762">More...</a><br /></td></tr>
<tr class="separator:abf0f4f32b9fba28c54a3f606032a1762"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a07411f42d64d4988c60f935a1bbf6bed"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="thcell_8h.html#a07411f42d64d4988c60f935a1bbf6bed">th_prev_cell</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, size_t pos, struct <a class="el" href="structthcell__t.html">thcell_t</a> *cell, int is_decomp_am)</td></tr>
<tr class="memdesc:a07411f42d64d4988c60f935a1bbf6bed"><td class="mdescLeft"> </td><td class="mdescRight">Get previous cell from string. <a href="thcell_8h.html#a07411f42d64d4988c60f935a1bbf6bed">More...</a><br /></td></tr>
<tr class="separator:a07411f42d64d4988c60f935a1bbf6bed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae768895ab7b5fe369423666ae8bc011d"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="thcell_8h.html#ae768895ab7b5fe369423666ae8bc011d">th_make_cells</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, size_t len, struct <a class="el" href="structthcell__t.html">thcell_t</a> cells[], size_t *ncells, int is_decomp_am)</td></tr>
<tr class="memdesc:ae768895ab7b5fe369423666ae8bc011d"><td class="mdescLeft"> </td><td class="mdescRight">Tokenize string into cells. <a href="thcell_8h.html#ae768895ab7b5fe369423666ae8bc011d">More...</a><br /></td></tr>
<tr class="separator:ae768895ab7b5fe369423666ae8bc011d"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Thai string cell custering. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a45e7e31d1d42b4901c4f2b4fa391cae2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45e7e31d1d42b4901c4f2b4fa391cae2">◆ </a></span>th_init_cell()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void th_init_cell </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> * </td>
<td class="paramname"><em>cell</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize a Thai cell. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cell</td><td>: pointer to the cell to initialize</td></tr>
</table>
</dd>
</dl>
<p>Initializes values in the Thai cell struct. </p>
</div>
</div>
<a id="ae768895ab7b5fe369423666ae8bc011d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae768895ab7b5fe369423666ae8bc011d">◆ </a></span>th_make_cells()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t th_make_cells </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> </td>
<td class="paramname"><em>cells</em>[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t * </td>
<td class="paramname"><em>ncells</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>is_decomp_am</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Tokenize string into cells. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">s</td><td>: the string </td></tr>
<tr><td class="paramname">len</td><td>: the length of string </td></tr>
<tr><td class="paramname">cells</td><td>: the array of output cells buffer </td></tr>
<tr><td class="paramname">ncells</td><td>: the address of integer storing the number of cells provided by the buffer, and to keep the number of resulting cells on return </td></tr>
<tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total characters consumed</dd></dl>
<p>Tokenizes the string bounded by <em>s</em> and <em>len</em> into cells, and stores at most <em>*ncells</em> resulting cells in the <em>cells</em> buffer. On return, <em>*ncells</em> is also set to the total cells stored in <em>cells</em>[]. </p>
</div>
</div>
<a id="abf0f4f32b9fba28c54a3f606032a1762"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf0f4f32b9fba28c54a3f606032a1762">◆ </a></span>th_next_cell()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t th_next_cell </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> * </td>
<td class="paramname"><em>cell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>is_decomp_am</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get first cell from string. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">s</td><td>: the string </td></tr>
<tr><td class="paramname">len</td><td>: the length of string </td></tr>
<tr><td class="paramname">cell</td><td>: the output buffer </td></tr>
<tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total chars consumed by the cell</dd></dl>
<p>Gets first cell from the string bounded by <em>s</em> and <em>len</em>, and, if <em>cell</em> is not null, stores the cell data in it. </p>
</div>
</div>
<a id="a07411f42d64d4988c60f935a1bbf6bed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07411f42d64d4988c60f935a1bbf6bed">◆ </a></span>th_prev_cell()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t th_prev_cell </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> * </td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> * </td>
<td class="paramname"><em>cell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>is_decomp_am</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get previous cell from string. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">s</td><td>: the string </td></tr>
<tr><td class="paramname">pos</td><td>: the position in string to get cell previous to </td></tr>
<tr><td class="paramname">cell</td><td>: the output buffer </td></tr>
<tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>total chars consumed by the cell</dd></dl>
<p>Gets last cell from the string bounded by <em>s</em> and <em>pos</em>, and if <em>cell</em> is not null, stores the cell data in it. </p>
</div>
</div>
</div><!-- contents -->
<hr size="1"><address style="text-align: right;"><small>
Generated for libthai by <a href="http://www.doxygen.org/
index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
1.9.1</small></address>
</body>
</html>