<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Reference</title> <link rel="stylesheet" href="../luadoc.css" type="text/css" /> <!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/--> </head> <body> <div id="container"> <div id="product"> <div id="product_logo"></div> <div id="product_name"><big><b></b></big></div> <div id="product_description"></div> </div> <!-- id="product" --> <div id="main"> <div id="navigation"> <h1>LuaDoc</h1> <ul> <li><a href="../index.html">Index</a></li> </ul> <!-- Module list --> <!-- File list --> <h1>Files</h1> <ul> <li> <a href="../files/ChatManager.html">ChatManager.lua</a> </li> <li> <a href="../files/Command.html">Command.lua</a> </li> <li> <a href="../files/CommandManager.html">CommandManager.lua</a> </li> <li> <a href="../files/EventHandler.html">EventHandler.lua</a> </li> <li> <a href="../files/Events.html">Events.lua</a> </li> <li> <a href="../files/Events_Chat.html">Events_Chat.lua</a> </li> <li> <a href="../files/GroupTools.html">GroupTools.lua</a> </li> <li> <a href="../files/Logger.html">Logger.lua</a> </li> <li> <a href="../files/PlayerManager.html">PlayerManager.lua</a> </li> <li> <a href="../files/QueueManager.html">QueueManager.lua</a> </li> <li><strong>String.lua</strong></li> <li> <a href="../files/Table.html">Table.lua</a> </li> </ul> </div> <!-- id="navigation" --> <div id="content"> <h1>File <code>String.lua</code></h1> <h2>Functions</h2> <table class="function_list"> <tr> <td class="name" nowrap><a href="#CES:EndsWith">CES:EndsWith</a> (s, target)</td> <td class="summary">Check if a string ends with a specific string.</td> </tr> <tr> <td class="name" nowrap><a href="#CES:Split">CES:Split</a> (s)</td> <td class="summary">Split a string with space as delimiter.</td> </tr> <tr> <td class="name" nowrap><a href="#CES:StartsWith">CES:StartsWith</a> (s, target)</td> <td class="summary">Check if a string starts with a specific string.</td> </tr> <tr> <td class="name" nowrap><a href="#CES:Trim">CES:Trim</a> (s)</td> <td class="summary">Trim a string, removing whitespace at the beginning of it.</td> </tr> </table> <h2>Tables</h2> <table class="table_list"> <tr> <td class="name" nowrap><a href="#Command.Extentions.String">Command.Extentions.String</a></td> <td class="summary">Table containing all String methods.</td> </tr> </table> <br/> <br/> <h2><a name="functions"></a>Functions</h2> <dl class="function"> <dt><a name="CES:EndsWith"></a><strong>CES:EndsWith</strong> (s, target)</dt> <dd> Check if a string ends with a specific string. <h3>Parameters:</h3> <ul> <li> <code><em>s</em></code>: String to be checked. </li> <li> <code><em>target</em></code>: Stromg to search for at end of s. </li> </ul> </dd> <dt><a name="CES:Split"></a><strong>CES:Split</strong> (s)</dt> <dd> Split a string with space as delimiter. <h3>Parameters:</h3> <ul> <li> <code><em>s</em></code>: String to be split. </li> </ul> <h3>Return value:</h3> <ul>Table containing the individual words. </ul> </dd> <dt><a name="CES:StartsWith"></a><strong>CES:StartsWith</strong> (s, target)</dt> <dd> Check if a string starts with a specific string. <h3>Parameters:</h3> <ul> <li> <code><em>s</em></code>: String to be checked. </li> <li> <code><em>target</em></code>: String to search for at beginning of s. </li> </ul> </dd> <dt><a name="CES:Trim"></a><strong>CES:Trim</strong> (s)</dt> <dd> Trim a string, removing whitespace at the beginning of it. <h3>Parameters:</h3> <ul> <li> <code><em>s</em></code>: String to be trimmed. </li> </ul> <h3>Return value:</h3> <ul>The trimmed string. </ul> </dd> </dl> <h2><a name="tables"></a>Tables</h2> <dl class="table"> <dt><a name="Command.Extentions.String"></a><strong>Command.Extentions.String</strong></dt> <dd>Table containing all String methods. This is referenced "CES" in String.lua.<br /><br /> <h3>Fields:</h3> <ul> <li> <code><em>type</em></code>: No current use. </li> </ul> </dd> </dl> </div> <!-- id="content" --> </div> <!-- id="main" --> <div id="about"> <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> </html>