Difference between revisions of "Manual:DIL Manual/left()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
<span id="bfleft"></span> | <span id="bfleft"></span> | ||
| Line 31: | Line 29: | ||
x:extraptr; | x:extraptr; | ||
code | code | ||
| − | + | dilend | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | ---~---~---~---~---~---~---~---~--- | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | </i><!--ENDCODE--> | |
| − | + | ---~---~---~---~---~---~---~---~--- | |
| − | + | <span id="bfleft"></span> | |
| − | |||
| − | + | '''Function:''' <i><!--CODE-->string left ( o : string, l : integer );</i><!--ENDCODE--> | |
| − | |||
| − | |||
| − | |||
| − | + | <!--TERM--> '''o''' | |
| − | + | <!--DEFINITION--> the original string to be parsed | |
| − | + | <!--TERM--> '''l''' | |
| − | + | <!--DEFINITION--> The amount of characters to parse out | |
| − | + | <!--TERM--> '''return''' | |
| − | + | <!--DEFINITION--> the left portion of the string with length l | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | This function parses the string passed to it and returns the number | |
| − | + | of characters defined in its second argument. | |
| − | |||
| − | |||
| − | |||
| − | + | '''Example:''' <i><!--CODE-->"short" := left ("shorten me",5);</i><!--ENDCODE--> | |
| + | '''Example:''' | ||
| + | <i><!--CODE--> | ||
| + | ---~---~---~---~---~---~---~---~--- | ||
| − | + | dilbegin aware describe (arg:string); | |
| − | + | var | |
| − | + | side:string; | |
| − | + | oneword:stringlist; | |
| − | + | location:string; | |
| − | + | ln:integer; | |
| − | + | args:stringlist; | |
| − | + | temp:string; | |
| − | + | i:integer; | |
| − | + | x:extraptr; | |
| − | + | code | |
| − | + | dilend | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
---~---~---~---~---~---~---~---~--- | ---~---~---~---~---~---~---~---~--- | ||
Latest revision as of 22:30, 4 December 2025
Function: string left ( o : string, l : integer );
o
the original string to be parsed
l
The amount of characters to parse out
return
the left portion of the string with length l
This function parses the string passed to it and returns the number of characters defined in its second argument.
Example: "short" := left ("shorten me",5);
Example:
---~---~---~---~---~---~---~---~---
dilbegin aware describe (arg:string);
var
side:string;
oneword:stringlist;
location:string;
ln:integer;
args:stringlist;
temp:string;
i:integer;
x:extraptr;
code
dilend
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---
Function: string left ( o : string, l : integer );
o
the original string to be parsed
l
The amount of characters to parse out
return
the left portion of the string with length l
This function parses the string passed to it and returns the number of characters defined in its second argument.
Example: "short" := left ("shorten me",5);
Example:
---~---~---~---~---~---~---~---~---
dilbegin aware describe (arg:string);
var
side:string;
oneword:stringlist;
location:string;
ln:integer;
args:stringlist;
temp:string;
i:integer;
x:extraptr;
code
dilend
---~---~---~---~---~---~---~---~---
---~---~---~---~---~---~---~---~---