546
edits
(functions of "Nasal\strings.nas" added by intelligent copy/paste) |
m (One character vs. String distinction) |
||
Line 4: | Line 4: | ||
This page contains description of functions available in "$FG_ROOT\data\Nasal\strings.nas". | This page contains description of functions available in "$FG_ROOT\data\Nasal\strings.nas". | ||
For string related functions in Nasal also see [[Nasal_library|Nasal library]] page. | For string related functions in Nasal also see [[Nasal_library|Nasal library]] page. | ||
== One Character Functions == | |||
=== string.isalnum() === | === string.isalnum() === | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> | ||
Line 68: | Line 69: | ||
string.tolower(); | string.tolower(); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== String Functions == | |||
=== string.trim(str,lr[,func]) === | === string.trim(str,lr[,func]) === | ||
Trim spaces at the left (lr < 0), at the right (lr > 0), or both (lr = 0) is default. | Trim spaces at the left (lr < 0), at the right (lr > 0), or both (lr = 0) is default. |
edits