<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module fabmetheus_utilities.fabmetheus_tools.alphabetize</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="fabmetheus_utilities.html"><font color="#ffffff">fabmetheus_utilities</font></a>.<a href="fabmetheus_utilities.fabmetheus_tools.html"><font color="#ffffff">fabmetheus_tools</font></a>.alphabetize</strong></big></big> ($Date: 2008/21/04 $)</font></td ><td align=right valign=bottom ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/fabmetheus_tools/alphabetize.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/fabmetheus_tools/alphabetize.py</a></font></td></tr></table> <p><tt>Alphabetize is a script to alphabetize functions and signatures.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br> </td><td width="25%" valign=top><a href="fabmetheus_utilities.archive.html">fabmetheus_utilities.archive</a><br> </td><td width="25%" valign=top><a href="cStringIO.html">cStringIO</a><br> </td><td width="25%" valign=top><a href="os.html">os</a><br> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> <dt><font face="helvetica, arial"><a href="fabmetheus_utilities.fabmetheus_tools.alphabetize.html#EndCharacterMonad">EndCharacterMonad</a> </font></dt><dt><font face="helvetica, arial"><a href="fabmetheus_utilities.fabmetheus_tools.alphabetize.html#ParameterMonad">ParameterMonad</a> </font></dt><dt><font face="helvetica, arial"><a href="fabmetheus_utilities.fabmetheus_tools.alphabetize.html#Snippet">Snippet</a> </font></dt></dl> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="EndCharacterMonad">class <strong>EndCharacterMonad</strong></a></font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>A monad to return the parent monad when it encounters the end character.<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="EndCharacterMonad-__init__"><strong>__init__</strong></a>(self, endCharacter, parentMonad)</dt><dd><tt>Initialize.</tt></dd></dl> <dl><dt><a name="EndCharacterMonad-getNextMonad"><strong>getNextMonad</strong></a>(self, character)</dt><dd><tt>Get the next monad.</tt></dd></dl> <dl><dt><a name="EndCharacterMonad-getSnippet"><strong>getSnippet</strong></a>(self)</dt><dd><tt>Get the snippet.</tt></dd></dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="ParameterMonad">class <strong>ParameterMonad</strong></a></font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>A monad to handle parameters.<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="ParameterMonad-__init__"><strong>__init__</strong></a>(self, snippet)</dt><dd><tt>Initialize.</tt></dd></dl> <dl><dt><a name="ParameterMonad-addParameter"><strong>addParameter</strong></a>(self)</dt><dd><tt>Add parameter to the snippet.</tt></dd></dl> <dl><dt><a name="ParameterMonad-getNextMonad"><strong>getNextMonad</strong></a>(self, character)</dt><dd><tt>Get the next monad.</tt></dd></dl> <dl><dt><a name="ParameterMonad-getSnippet"><strong>getSnippet</strong></a>(self)</dt><dd><tt>Get the snippet.</tt></dd></dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="Snippet">class <strong>Snippet</strong></a></font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>A class to get the variables for a function.<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="Snippet-__init__"><strong>__init__</strong></a>(self, characterIndex, fileText)</dt><dd><tt>Initialize.</tt></dd></dl> <dl><dt><a name="Snippet-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Snippet">Snippet</a>.</tt></dd></dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <td width="100%"><dl><dt><a name="-addTogetherList"><strong>addTogetherList</strong></a>(functionList, togetherLists)</dt><dd><tt>Add the togetherList to the togetherLists is the sorted is different.</tt></dd></dl> <dl><dt><a name="-compareFunctionName"><strong>compareFunctionName</strong></a>(first, second)</dt><dd><tt>Compare the function names.</tt></dd></dl> <dl><dt><a name="-getConvertedName"><strong>getConvertedName</strong></a>(name)</dt><dd><tt>Get converted name with init at the beginning and main at the endCompare the function names.</tt></dd></dl> <dl><dt><a name="-getFunctionLists"><strong>getFunctionLists</strong></a>(fileName)</dt><dd><tt>Get the function lists in the file.</tt></dd></dl> <dl><dt><a name="-getFunctionsWithStringByFileName"><strong>getFunctionsWithStringByFileName</strong></a>(fileName, searchString)</dt><dd><tt>Get the functions with the search string in the file.</tt></dd></dl> <dl><dt><a name="-getFunctionsWithStringByFileNames"><strong>getFunctionsWithStringByFileNames</strong></a>(fileNames, searchString)</dt><dd><tt>Get the functions with the search string in the files.</tt></dd></dl> <dl><dt><a name="-getParameterSequence"><strong>getParameterSequence</strong></a>(functionName)</dt><dd><tt>Get the parameter sequence.</tt></dd></dl> <dl><dt><a name="-getSnippetsByFileName"><strong>getSnippetsByFileName</strong></a>(fileName, functionName)</dt><dd><tt>Get the function signature snippets by the file name.</tt></dd></dl> <dl><dt><a name="-getTogetherLists"><strong>getTogetherLists</strong></a>(fileName)</dt><dd><tt>Get the lists of the unsorted and sorted functions in the file.</tt></dd></dl> <dl><dt><a name="-getTokenEnd"><strong>getTokenEnd</strong></a>(characterIndex, fileText, token)</dt><dd><tt>Get the token end index for the file text and token.</tt></dd></dl> <dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Run main function.</tt></dd></dl> <dl><dt><a name="-printTogetherListsByFileNames"><strong>printTogetherListsByFileNames</strong></a>(fileNames)</dt><dd><tt>Print the together lists of the file names, if the file name has a together list.</tt></dd></dl> </td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br> <strong>__date__</strong> = '$Date: 2008/21/04 $'<br> <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br> <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table> </body></html>