diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2026-02-17 17:18:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-17 17:18:46 +0100 |
| commit | 6272094bc7265262cbca8363b425531ad0170caa (patch) | |
| tree | b54c117ae4adebb49e35d662d234f5a708fd3d21 /docs/modules/system.html | |
| parent | e6431f6e0953e49a4fc68865c0727e24ce4062e3 (diff) | |
| download | luasystem-6272094bc7265262cbca8363b425531ad0170caa.tar.gz luasystem-6272094bc7265262cbca8363b425531ad0170caa.tar.bz2 luasystem-6272094bc7265262cbca8363b425531ad0170caa.zip | |
Diffstat (limited to 'docs/modules/system.html')
| -rw-r--r-- | docs/modules/system.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/modules/system.html b/docs/modules/system.html index 0a2447e..2e3ddc0 100644 --- a/docs/modules/system.html +++ b/docs/modules/system.html | |||
| @@ -206,11 +206,11 @@ | |||
| 206 | <td class="summary">Sets the current console output code page (Windows).</td> | 206 | <td class="summary">Sets the current console output code page (Windows).</td> |
| 207 | </tr> | 207 | </tr> |
| 208 | <tr> | 208 | <tr> |
| 209 | <td class="name" nowrap><a href="#utf8cwidth">utf8cwidth (utf8_char)</a></td> | 209 | <td class="name" nowrap><a href="#utf8cwidth">utf8cwidth (utf8_char[, ambiguous_width=1])</a></td> |
| 210 | <td class="summary">Get the width of a utf8 character for terminal display.</td> | 210 | <td class="summary">Get the width of a utf8 character for terminal display.</td> |
| 211 | </tr> | 211 | </tr> |
| 212 | <tr> | 212 | <tr> |
| 213 | <td class="name" nowrap><a href="#utf8swidth">utf8swidth (utf8_string)</a></td> | 213 | <td class="name" nowrap><a href="#utf8swidth">utf8swidth (utf8_string[, ambiguous_width=1])</a></td> |
| 214 | <td class="summary">Get the width of a utf8 string for terminal display.</td> | 214 | <td class="summary">Get the width of a utf8 string for terminal display.</td> |
| 215 | </tr> | 215 | </tr> |
| 216 | </table> | 216 | </table> |
| @@ -1248,7 +1248,7 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1248 | </dd> | 1248 | </dd> |
| 1249 | <dt> | 1249 | <dt> |
| 1250 | <a name = "utf8cwidth"></a> | 1250 | <a name = "utf8cwidth"></a> |
| 1251 | <strong>utf8cwidth (utf8_char)</strong> | 1251 | <strong>utf8cwidth (utf8_char[, ambiguous_width=1])</strong> |
| 1252 | </dt> | 1252 | </dt> |
| 1253 | <dd> | 1253 | <dd> |
| 1254 | Get the width of a utf8 character for terminal display. | 1254 | Get the width of a utf8 character for terminal display. |
| @@ -1260,6 +1260,11 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1260 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a> or <span class="type">int</span></span> | 1260 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a> or <span class="type">int</span></span> |
| 1261 | the utf8 character, or unicode codepoint, to check, only the width of the first character will be returned | 1261 | the utf8 character, or unicode codepoint, to check, only the width of the first character will be returned |
| 1262 | </li> | 1262 | </li> |
| 1263 | <li><span class="parameter">ambiguous_width</span> | ||
| 1264 | <span class="types"><span class="type">int</span></span> | ||
| 1265 | the width to return for ambiguous width characters (usually 1 or 2) | ||
| 1266 | (<em>default</em> 1) | ||
| 1267 | </li> | ||
| 1263 | </ul> | 1268 | </ul> |
| 1264 | 1269 | ||
| 1265 | <h3>Returns:</h3> | 1270 | <h3>Returns:</h3> |
| @@ -1286,7 +1291,7 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1286 | </dd> | 1291 | </dd> |
| 1287 | <dt> | 1292 | <dt> |
| 1288 | <a name = "utf8swidth"></a> | 1293 | <a name = "utf8swidth"></a> |
| 1289 | <strong>utf8swidth (utf8_string)</strong> | 1294 | <strong>utf8swidth (utf8_string[, ambiguous_width=1])</strong> |
| 1290 | </dt> | 1295 | </dt> |
| 1291 | <dd> | 1296 | <dd> |
| 1292 | Get the width of a utf8 string for terminal display. | 1297 | Get the width of a utf8 string for terminal display. |
| @@ -1298,6 +1303,11 @@ sequences will be buffered internally and returned one byte at a time. | |||
| 1298 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> | 1303 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> |
| 1299 | the utf8 string to check | 1304 | the utf8 string to check |
| 1300 | </li> | 1305 | </li> |
| 1306 | <li><span class="parameter">ambiguous_width</span> | ||
| 1307 | <span class="types"><span class="type">int</span></span> | ||
| 1308 | the width to return for ambiguous width characters (1 or 2) | ||
| 1309 | (<em>default</em> 1) | ||
| 1310 | </li> | ||
| 1301 | </ul> | 1311 | </ul> |
| 1302 | 1312 | ||
| 1303 | <h3>Returns:</h3> | 1313 | <h3>Returns:</h3> |
| @@ -1518,7 +1528,7 @@ This function will sleep, without doing a busy-loop and wasting CPU cycles. | |||
| 1518 | </div> <!-- id="main" --> | 1528 | </div> <!-- id="main" --> |
| 1519 | <div id="about"> | 1529 | <div id="about"> |
| 1520 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 1530 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 1521 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> | 1531 | <i style="float:right;">Last updated 2026-02-17 17:18:04 </i> |
| 1522 | </div> <!-- id="about" --> | 1532 | </div> <!-- id="about" --> |
| 1523 | </div> <!-- id="container" --> | 1533 | </div> <!-- id="container" --> |
| 1524 | </body> | 1534 | </body> |
