<!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/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.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <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 class="tabs"> <ul> <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="contents"> <h1>thai/thinp.h File Reference</h1>Thai string input sequence filtering. <a href="#_details">More...</a> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" nowrap 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"><br><h2>Enumerations</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> { <a class="el" href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81da64a344c8407de29287c6a2708632796e">ISC_PASSTHROUGH</a> = 0, <a class="el" href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81dad8af9274cd9bfd2615069d016f56c827">ISC_BASICCHECK</a> = 1, <a class="el" href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81da81d39f8c23d94dfb5a9911ff049dd733">ISC_STRICT</a> = 2 }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Strictness of input sequence checking, according to WTT 2.0. <a href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81da">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#e8cdd4f588993c3c4f906061d5cfcb6c">th_isaccept</a> (<a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c1, <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> c2, <a class="el" href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> s)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Check for acceptance of input sequence. <a href="#e8cdd4f588993c3c4f906061d5cfcb6c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thinp_8h.html#12ba170567ebb0817c73fca3b5ac67ec">th_validate</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> context, <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">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="#12ba170567ebb0817c73fca3b5ac67ec"></a><br></td></tr> </table> <hr><h2>Detailed Description</h2> Thai string input sequence filtering. <p> <hr><h2>Enumeration Type Documentation</h2> <a class="anchor" name="5c9bf3dcda380a3e043b10a69ccb81da"></a><!-- doxytag: member="thinp.h::thstrict_t" ref="5c9bf3dcda380a3e043b10a69ccb81da" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="thinp_8h.html#5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Strictness of input sequence checking, according to WTT 2.0. <p> <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="5c9bf3dcda380a3e043b10a69ccb81da64a344c8407de29287c6a2708632796e"></a><!-- doxytag: member="ISC_PASSTHROUGH" ref="5c9bf3dcda380a3e043b10a69ccb81da64a344c8407de29287c6a2708632796e" args="" -->ISC_PASSTHROUGH</em> </td><td> No check </td></tr> <tr><td valign="top"><em><a class="anchor" name="5c9bf3dcda380a3e043b10a69ccb81dad8af9274cd9bfd2615069d016f56c827"></a><!-- doxytag: member="ISC_BASICCHECK" ref="5c9bf3dcda380a3e043b10a69ccb81dad8af9274cd9bfd2615069d016f56c827" args="" -->ISC_BASICCHECK</em> </td><td> Basic check </td></tr> <tr><td valign="top"><em><a class="anchor" name="5c9bf3dcda380a3e043b10a69ccb81da81d39f8c23d94dfb5a9911ff049dd733"></a><!-- doxytag: member="ISC_STRICT" ref="5c9bf3dcda380a3e043b10a69ccb81da81d39f8c23d94dfb5a9911ff049dd733" args="" -->ISC_STRICT</em> </td><td> Strict check </td></tr> </table> </dl> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="e8cdd4f588993c3c4f906061d5cfcb6c"></a><!-- doxytag: member="thinp.h::th_isaccept" ref="e8cdd4f588993c3c4f906061d5cfcb6c" 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#75138f51cef42c2e0d8bc3e6ce691f51">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#75138f51cef42c2e0d8bc3e6ce691f51">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#5c9bf3dcda380a3e043b10a69ccb81da">thstrict_t</a> </td> <td class="paramname"> <em>s</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Check for acceptance of input sequence. <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>c1</em> </td><td>: previous character </td></tr> <tr><td valign="top"></td><td valign="top"><em>c2</em> </td><td>: the newly input character </td></tr> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>: strictness level</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>non-zero if accepted, 0 otherwise</dd></dl> Checks if, according to WTT 2.0 strictness level <em>s</em>, <em>c2</em> is allowed after <em>c1</em>. </div> </div><p> <a class="anchor" name="12ba170567ebb0817c73fca3b5ac67ec"></a><!-- doxytag: member="thinp.h::th_validate" ref="12ba170567ebb0817c73fca3b5ac67ec" 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#75138f51cef42c2e0d8bc3e6ce691f51">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><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Check and try to correct input sequence. <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>context</em> </td><td>: previous cell </td></tr> <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>: the newly input character </td></tr> <tr><td valign="top"></td><td valign="top"><em>conv</em> </td><td>: the storage for resulting correction info</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if the input is to be rejected non-zero otherwise.</dd></dl> 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>. </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Jun 21 07:11:31 2009 for libthai by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>