modpol.util.misc.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>Reference</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <br/>
  20. <h1>modpol</h1>
  21. <ul>
  22. <li><a href="../index.html">Index</a></li>
  23. </ul>
  24. <h2>Contents</h2>
  25. <ul>
  26. <li><a href="#Functions">Functions</a></li>
  27. </ul>
  28. <h2>Basic Functions</h2>
  29. <ul class="nowrap">
  30. <li><a href="../modules/modpol.interactions.html">modpol.interactions</a></li>
  31. <li><a href="../modules/modpol.orgs.base.html">modpol.orgs.base</a></li>
  32. <li><a href="../modules/modpol.orgs.process.html">modpol.orgs.process</a></li>
  33. <li><a href="../modules/modpol.util.misc.html">modpol.util.misc</a></li>
  34. <li><a href="../modules/modpol_minetest.api.html">modpol_minetest.api</a></li>
  35. </ul>
  36. <h2>Core Modules</h2>
  37. <ul class="nowrap">
  38. <li><a href="../modules/add_child_org_consent.html">add_child_org_consent</a></li>
  39. <li><a href="../modules/change_modules.html">change_modules</a></li>
  40. <li><a href="../modules/consent.html">consent</a></li>
  41. <li><a href="../modules/join_org.html">join_org</a></li>
  42. <li><a href="../modules/join_org_consent.html">join_org_consent</a></li>
  43. <li><a href="../modules/leave_org.html">leave_org</a></li>
  44. <li><a href="../modules/message_org.html">message_org</a></li>
  45. <li><a href="../modules/remove_child_consent.html">remove_child_consent</a></li>
  46. <li><a href="../modules/remove_member_consent.html">remove_member_consent</a></li>
  47. <li><a href="../modules/remove_org.html">remove_org</a></li>
  48. <li><a href="../modules/remove_org_consent.html">remove_org_consent</a></li>
  49. <li><a href="../modules/rename_org_consent.html">rename_org_consent</a></li>
  50. <li><a href="../modules/module_template.html">module_template</a></li>
  51. </ul>
  52. <h2>Minetest Modules</h2>
  53. <ul class="nowrap">
  54. <li><a href="../modules/priv_to_org.html">priv_to_org</a></li>
  55. </ul>
  56. </div>
  57. <div id="content">
  58. <h1>Module <code>modpol.util.misc</code></h1>
  59. <p>Miscellaneous functions</p>
  60. <p></p>
  61. <h2><a href="#Functions">Functions</a></h2>
  62. <table class="function_list">
  63. <tr>
  64. <td class="name" nowrap><a href="#modpol.util.copy_table">modpol.util.copy_table (t)</a></td>
  65. <td class="summary">Returns a copy of the table inputted</td>
  66. </tr>
  67. <tr>
  68. <td class="name" nowrap><a href="#modpol.util.num_pairs">modpol.util.num_pairs (t)</a></td>
  69. <td class="summary">Returns the number of elements in a pairs table</td>
  70. </tr>
  71. </table>
  72. <br/>
  73. <br/>
  74. <h2 class="section-header "><a name="Functions"></a>Functions</h2>
  75. <dl class="function">
  76. <dt>
  77. <a name = "modpol.util.copy_table"></a>
  78. <strong>modpol.util.copy_table (t)</strong>
  79. </dt>
  80. <dd>
  81. Returns a copy of the table inputted
  82. <h3>Parameters:</h3>
  83. <ul>
  84. <li><span class="parameter">t</span>
  85. table to copy
  86. </li>
  87. </ul>
  88. <h3>Returns:</h3>
  89. <ol>
  90. copy of table
  91. </ol>
  92. </dd>
  93. <dt>
  94. <a name = "modpol.util.num_pairs"></a>
  95. <strong>modpol.util.num_pairs (t)</strong>
  96. </dt>
  97. <dd>
  98. Returns the number of elements in a pairs table
  99. <h3>Parameters:</h3>
  100. <ul>
  101. <li><span class="parameter">t</span>
  102. pairs table
  103. </li>
  104. </ul>
  105. <h3>Returns:</h3>
  106. <ol>
  107. number of elements in pairs table
  108. </ol>
  109. </dd>
  110. </dl>
  111. </div> <!-- id="content" -->
  112. </div> <!-- id="main" -->
  113. <div id="about">
  114. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
  115. <i style="float:right;">Last updated 2022-01-20 10:54:01 </i>
  116. </div> <!-- id="about" -->
  117. </div> <!-- id="container" -->
  118. </body>
  119. </html>