Nasal library/string: Difference between revisions

Jump to navigation Jump to search
m
Line 127: Line 127:
The result will start with a slash if it started with a slash or backslash, it will end without slash.                                                 
The result will start with a slash if it started with a slash or backslash, it will end without slash.                                                 
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
string.normpath();
string.normpath(path);
</syntaxhighlight>
</syntaxhighlight>
=== string.replace(str,old,new) ===
=== string.replace(str,old,new) ===
Replace all occurrences of 'old' by 'new'.
Replace all occurrences of 'old' by 'new'.
546

edits

Navigation menu