📄 bk_read.html
字号:
<html><head><title>BabelKit Code Description Methods</title><link rel="STYLESHEET" type="text/css" href="main.css"></head><!-- Copyright (C) 2003 John Gorman <jgorman@webbysoft.com> http://www.webbysoft.com/babelkit--><body bgcolor="#F0FFFF" text="#000000" link="#873852" vlink="#873852" alink="#B52E2E"><center><table width="600"><tr><td><div align="right">[<a href="bk_new_perl.html">Perl Handle Creation</a>][<a href="index.html">Index</a>][<a href="bk_select.html">HTML Select</a>]</div><center><h2><a href="http://www.webbysoft.com/babelkit">BabelKit</a>Code Description Methods</h2></center>These methods return a single code description value.<a name="display"></a><h3>Display Methods</h3><p>These display methods all perform<code>htmlspecialchars($code_desc)</code>on the code descriptions that they return.This translates ( & < " > ) into( &amp; &lt; &quot; &gt; ) so thatthe actual characters will show on html pages.<h4>desc()</h4><p><code>$code_desc = $babelkit->desc($code_set, $code_lang, $code_code);</code><p>desc() gets a code description for the language from thecode set. If the language lacks a translation, it returnsthe native language description. If there is no descriptionavailable, the code value is returned so that at leastsomething gets displayed.<h4>ucfirst()</h4><p><code>$Code_desc = $babelkit->ucfirst($code_set, $code_lang, $code_code);</code><p>Same as desc(), but returns the First word capitalized.<h4>ucwords()</h4><p><code>$Code_Desc = $babelkit->ucwords($code_set, $code_lang, $code_code);</code><p>Same as desc(), but returns Each Word Capitalized.<a name="data"></a><h3>Data Methods</h3><p>These display methods return the raw code descriptionvalue, not encoded for html display. This can be usefulif a description contains html markup that you want renderedas markup!<h4>render()</h4><p><code>$code_desc = $babelkit->render($code_set, $code_lang, $code_code);</code><p>The same as desc(), except that it does not do htmlspecialchars().This allows the html tags to be rendered.<h4>data()</h4><p><code>$code_desc = $babelkit->data($code_set, $code_lang, $code_code);</code><p>This returns the exact set/lang/code description requested,or else blank if it doesn't exist.<h4>param()</h4><p><code>$parameter = $babelkit->param($code_set, $code_code);</code><p>Exactly the same as data(), except that it alwaysreturns the native language result, which is all there is forparameter code sets. Used for table driven operationalparameters like the code_admin set.<p><div align="right">[<a href="bk_new_perl.html">Perl Handle Creation</a>][<a href="index.html">Index</a>][<a href="bk_select.html">HTML Select</a>]</div></td></tr></table></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -