[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/pattern_compiler.c</h2>
Compiles up the patterns for use by the add_command system.<p><b>See also:</b><br><a href="global.new_parse.c.shtml#add_command">/global/new_parse->add_command()</a><br /><p>Written by Pinkfish<h2>Includes</h2>
This class includes the following files /include/user_parser.h<h2>Method index</h2>
<ul>
<li><a href="#clean_cache">clean_cache</a>()<li><a href="#compile_pattern">compile_pattern</a>(string)<br/>
Compiles the pattern.
<li><a href="#query_pattern">query_pattern</a>(string)<br/>
Returns the compiled pattern to the caller.
<li><a href="#query_short_pattern">query_short_pattern</a>(string)<br/>
Returns the short pattern for the given pattern string.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="clean_cache">
clean_cache</a><pre class="autodocfuncdef">
void clean_cache()
</pre>
<dt class="autodocfuncname"><a name="compile_pattern">
compile_pattern</a><pre class="autodocfuncdef">
nomask mixed * compile_pattern(string str)
</pre><dd><br />
Compiles the pattern.   Does no cache checking.  This returns
only the compiled pattern, it also creates the short pattern as a
side effect.  The short pattern can be queried by using
query_short_pattern()<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str - the pattern to compile<br />
<br />
<dd><b>Returns:</b>
<br />the compiled pattern<br /><br />
<dd><b>See also:</b>
<br />/include/user_parser.h, <a href="#query_short_pattern">query_short_pattern()</a> and /global/new_parse.c
<br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_pattern">
query_pattern</a><pre class="autodocfuncdef">
nomask mixed * query_pattern(string pattern)
</pre><dd><br />
Returns the compiled pattern to the caller.   This checks to see if they
pattern is in its internal cache and if it is, it uses that.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
pattern - the pattern to compiler<br />
<br />
<dd><b>Returns:</b>
<br />the compiler pattern<br /><br />
<dd><b>See also:</b>
<br />/include/user_parser.h
<br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_short_pattern">
query_short_pattern</a><pre class="autodocfuncdef">
string query_short_pattern(string str)
</pre><dd><br />
Returns the short pattern for the given pattern string.   The short pattern
is the message which is shown to the players.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str - the pattern to get the short for<br />
<br />
<dd><b>Returns:</b>
<br />the short pattern
<br /><br />
<br /></dl>

</dl>
[an error occurred while processing this directive]

