all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
13
Task/Tokenize-a-string/HicEst/tokenize-a-string.hicest
Normal file
13
Task/Tokenize-a-string/HicEst/tokenize-a-string.hicest
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
CHARACTER string="Hello,How,Are,You,Today", list
|
||||
|
||||
nWords = INDEX(string, ',', 256) + 1
|
||||
maxWordLength = LEN(string) - 2*nWords
|
||||
ALLOCATE(list, nWords*maxWordLength)
|
||||
|
||||
DO i = 1, nWords
|
||||
EDIT(Text=string, SePaRators=',', item=i, WordEnd, CoPyto=CHAR(i, maxWordLength, list))
|
||||
ENDDO
|
||||
|
||||
DO i = 1, nWords
|
||||
WRITE(APPend) TRIM(CHAR(i, maxWordLength, list)), '.'
|
||||
ENDDO
|
||||
Loading…
Add table
Add a link
Reference in a new issue