Current File : //proc/self/root/kunden/proc/self/root/usr/share/doc/libthai-devel/html/thinp_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/thinp.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
   &#160;<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&amp;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> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">thinp.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Thai string input sequence filtering.  
<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 &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structthinpconv__t.html">thinpconv_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Input sequence correction info.  <a href="structthinpconv__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a5c9bf3dcda380a3e043b10a69ccb81da"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> { <a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81daa64a344c8407de29287c6a2708632796e">ISC_PASSTHROUGH</a> = 0
, <a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81daad8af9274cd9bfd2615069d016f56c827">ISC_BASICCHECK</a> = 1
, <a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81daa81d39f8c23d94dfb5a9911ff049dd733">ISC_STRICT</a> = 2
 }</td></tr>
<tr class="memdesc:a5c9bf3dcda380a3e043b10a69ccb81da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Strictness of input sequence checking, according to WTT 2.0.  <a href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">More...</a><br /></td></tr>
<tr class="separator:a5c9bf3dcda380a3e043b10a69ccb81da"><td class="memSeparator" colspan="2">&#160;</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:ae8cdd4f588993c3c4f906061d5cfcb6c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#ae8cdd4f588993c3c4f906061d5cfcb6c">th_isaccept</a> (<a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c1, <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c2, <a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> s)</td></tr>
<tr class="memdesc:ae8cdd4f588993c3c4f906061d5cfcb6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for acceptance of input sequence.  <a href="thinp_8h.html#ae8cdd4f588993c3c4f906061d5cfcb6c">More...</a><br /></td></tr>
<tr class="separator:ae8cdd4f588993c3c4f906061d5cfcb6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12ba170567ebb0817c73fca3b5ac67ec"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#a12ba170567ebb0817c73fca3b5ac67ec">th_validate</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> context, <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c, struct <a class="el" href="structthinpconv__t.html">thinpconv_t</a> *conv)</td></tr>
<tr class="memdesc:a12ba170567ebb0817c73fca3b5ac67ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check and try to correct input sequence with default strictness.  <a href="thinp_8h.html#a12ba170567ebb0817c73fca3b5ac67ec">More...</a><br /></td></tr>
<tr class="separator:a12ba170567ebb0817c73fca3b5ac67ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a762ea7fb2d352a8e9d3b84bb22e4208b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#a762ea7fb2d352a8e9d3b84bb22e4208b">th_validate_leveled</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> context, <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c, struct <a class="el" href="structthinpconv__t.html">thinpconv_t</a> *conv, <a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> s)</td></tr>
<tr class="memdesc:a762ea7fb2d352a8e9d3b84bb22e4208b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check and try to correct input sequence.  <a href="thinp_8h.html#a762ea7fb2d352a8e9d3b84bb22e4208b">More...</a><br /></td></tr>
<tr class="separator:a762ea7fb2d352a8e9d3b84bb22e4208b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Thai string input sequence filtering. </p>
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a5c9bf3dcda380a3e043b10a69ccb81da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c9bf3dcda380a3e043b10a69ccb81da">&#9670;&nbsp;</a></span>thstrict_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Strictness of input sequence checking, according to WTT 2.0. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a5c9bf3dcda380a3e043b10a69ccb81daa64a344c8407de29287c6a2708632796e"></a>ISC_PASSTHROUGH&#160;</td><td class="fielddoc"><p>No check </p>
</td></tr>
<tr><td class="fieldname"><a id="a5c9bf3dcda380a3e043b10a69ccb81daad8af9274cd9bfd2615069d016f56c827"></a>ISC_BASICCHECK&#160;</td><td class="fielddoc"><p>Basic check </p>
</td></tr>
<tr><td class="fieldname"><a id="a5c9bf3dcda380a3e043b10a69ccb81daa81d39f8c23d94dfb5a9911ff049dd733"></a>ISC_STRICT&#160;</td><td class="fielddoc"><p>Strict check </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ae8cdd4f588993c3c4f906061d5cfcb6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8cdd4f588993c3c4f906061d5cfcb6c">&#9670;&nbsp;</a></span>th_isaccept()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_isaccept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&#160;</td>
          <td class="paramname"><em>c2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a>&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for acceptance of input sequence. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>: previous character </td></tr>
    <tr><td class="paramname">c2</td><td>: the newly input character </td></tr>
    <tr><td class="paramname">s</td><td>: strictness level</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>non-zero if accepted, 0 otherwise</dd></dl>
<p>Checks if, according to WTT 2.0 strictness level <em>s</em>, <em>c2</em> is allowed after <em>c1</em>. </p>

</div>
</div>
<a id="a12ba170567ebb0817c73fca3b5ac67ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12ba170567ebb0817c73fca3b5ac67ec">&#9670;&nbsp;</a></span>th_validate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_validate </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a>&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structthinpconv__t.html">thinpconv_t</a> *&#160;</td>
          <td class="paramname"><em>conv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check and try to correct input sequence with default strictness. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>: previous cell </td></tr>
    <tr><td class="paramname">c</td><td>: the newly input character </td></tr>
    <tr><td class="paramname">conv</td><td>: the storage for resulting correction info</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if the input is to be rejected non-zero otherwise.</dd></dl>
<p>Given the previous cell as <em>context</em>, edit the input buffer using the given input <em>c</em>, maintaining WTT canonical order at default strictness level, and do some convenient correction in <em>conv</em>. </p>

</div>
</div>
<a id="a762ea7fb2d352a8e9d3b84bb22e4208b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a762ea7fb2d352a8e9d3b84bb22e4208b">&#9670;&nbsp;</a></span>th_validate_leveled()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int th_validate_leveled </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a>&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a>&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structthinpconv__t.html">thinpconv_t</a> *&#160;</td>
          <td class="paramname"><em>conv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a>&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check and try to correct input sequence. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>: previous cell </td></tr>
    <tr><td class="paramname">c</td><td>: the newly input character </td></tr>
    <tr><td class="paramname">conv</td><td>: the storage for resulting correction info </td></tr>
    <tr><td class="paramname">s</td><td>: strictness level</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if the input is to be rejected non-zero otherwise.</dd></dl>
<p>Given the previous cell as <em>context</em>, edit the input buffer using the given input <em>c</em>, maintaining WTT canonical order at strictness level <em>s</em>, and do some convenient correction in <em>conv</em>.</p>
<p>(Available since version 0.1.19, libthai.so.0.2.0) </p>

</div>
</div>
</div><!-- contents -->
<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.9.1</small></address>
</body>
</html>