Charles.Forsyth20060303-partialeea662d19 years agoHistory
56 lines · 969 B · Text
RawDownload
.TH SYS-TOKENIZE 2.SH NAMEtokenize \- split string into words.SH SYNOPSIS.EXinclude "sys.m";sys := load Sys Sys->PATH; tokenize: fn(s, delim: string): (int, list of string);.EE.SH DESCRIPTION.B Tokenizebreaks.I sinto words separated by characters in.IR delim .The returned tuple holds the number of wordsand an ordered list of those words (whose.B hdgives the leftmost word from.IR s )..PPWords are delimited by the maximal sequences of anycharacter from the.I delimstring..B Tokenizeskips delimiter characters at the beginning and end of.IR s ,so each element in the returned list has non-zero length..PPIf.I sis.B nilor contains no words,.B tokenizereturns a count of zero and a.B nillist..PP.I Delimmay be.B nilor the empty string, specifying no delimiter characters.The resulting word list will be.B nil(if.I sis.B nilor the empty string)or a single-item list with a copy of.IR s ..SH SEE ALSO.IR sys-intro (2)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t