<!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/thinp.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 <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 Page</span></a></li> <li><a href="annotated.html"><span>Data 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 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="#nested-classes">Data Structures</a> | <a href="#enum-members">Enumerations</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>thai/thinp.h File Reference</h1> </div> </div> <div class="contents"> <p>Thai string input sequence filtering. <a href="#_details">More...</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="nested-classes"></a> Data Structures</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structthinpconv__t.html">thinpconv_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Input sequence correction info. <a href="structthinpconv__t.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="enum-members"></a> Enumerations</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </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><td class="mdescLeft"> </td><td class="mdescRight"><p>Strictness of input sequence checking, according to WTT 2.0. </p> <a href="thinp_8h.html#a5c9bf3dcda380a3e043b10a69ccb81da">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </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><td class="mdescLeft"> </td><td class="mdescRight">Check for acceptance of input sequence. <a href="#ae8cdd4f588993c3c4f906061d5cfcb6c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </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><td class="mdescLeft"> </td><td class="mdescRight">Check and try to correct input sequence. <a href="#a12ba170567ebb0817c73fca3b5ac67ec"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Thai string input sequence filtering. </p> </div><hr/><h2>Enumeration Type Documentation</h2> <a class="anchor" id="a5c9bf3dcda380a3e043b10a69ccb81da"></a><!-- doxytag: member="thinp.h::thstrict_t" ref="a5c9bf3dcda380a3e043b10a69ccb81da" args="" --> <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> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="a5c9bf3dcda380a3e043b10a69ccb81daa64a344c8407de29287c6a2708632796e"></a><!-- doxytag: member="ISC_PASSTHROUGH" ref="a5c9bf3dcda380a3e043b10a69ccb81daa64a344c8407de29287c6a2708632796e" args="" -->ISC_PASSTHROUGH</em> </td><td> <p>No check </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a5c9bf3dcda380a3e043b10a69ccb81daad8af9274cd9bfd2615069d016f56c827"></a><!-- doxytag: member="ISC_BASICCHECK" ref="a5c9bf3dcda380a3e043b10a69ccb81daad8af9274cd9bfd2615069d016f56c827" args="" -->ISC_BASICCHECK</em> </td><td> <p>Basic check </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a5c9bf3dcda380a3e043b10a69ccb81daa81d39f8c23d94dfb5a9911ff049dd733"></a><!-- doxytag: member="ISC_STRICT" ref="a5c9bf3dcda380a3e043b10a69ccb81daa81d39f8c23d94dfb5a9911ff049dd733" args="" -->ISC_STRICT</em> </td><td> <p>Strict check </p> </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Function Documentation</h2> <a class="anchor" id="ae8cdd4f588993c3c4f906061d5cfcb6c"></a><!-- doxytag: member="thinp.h::th_isaccept" ref="ae8cdd4f588993c3c4f906061d5cfcb6c" args="(thchar_t c1, thchar_t c2, thstrict_t s)" --> <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> </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> </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> </td> <td class="paramname"><em>s</em> </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><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></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 class="anchor" id="a12ba170567ebb0817c73fca3b5ac67ec"></a><!-- doxytag: member="thinp.h::th_validate" ref="a12ba170567ebb0817c73fca3b5ac67ec" args="(struct thcell_t context, thchar_t c, struct thinpconv_t *conv)" --> <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> </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> </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> * </td> <td class="paramname"><em>conv</em> </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><dt><b>Parameters:</b></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="return"><dt><b>Returns:</b></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, and do some convenient correction in <em>conv</em>. </p> </div> </div> </div> <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.7.3</small></address> </body> </html>