Difference between revisions of "Manual:DIL Manual/split()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import of LLM wiki pages)
(XML import)
 
Line 1: Line 1:
 +
<span id="bfsplit"></span>
 +
stringlist split ( var s : string, var t : string)
 +
        s : A string with zero or more words separated by var t.
 +
    return: A stringlist where each string was a word in 's'
 +
            separated by string 't'.
  
 
+
  You can use '&amp;x' to split a string by line.  This is very usefull when reading in files with 'loadstr'.
 
<span id="bfsplit"></span>
 
<span id="bfsplit"></span>
 
  stringlist split ( var s : string, var t : string)
 
  stringlist split ( var s : string, var t : string)

Latest revision as of 22:32, 4 December 2025

stringlist split ( var s : string, var t : string)
       s : A string with zero or more words separated by var t.
   return: A stringlist where each string was a word in 's'
           separated by string 't'.
		   You can use '&x' to split a string by line.  This is very usefull when reading in files with 'loadstr'.

stringlist split ( var s : string, var t : string)
       s : A string with zero or more words separated by var t.
   return: A stringlist where each string was a word in 's'
           separated by string 't'.
		   You can use '&x' to split a string by line.  This is very usefull when reading in files with 'loadstr'.