Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
17
Task/Multisplit/EasyLang/multisplit.easy
Normal file
17
Task/Multisplit/EasyLang/multisplit.easy
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
proc multisplit str$ sep$[] . .
|
||||
repeat
|
||||
min = 1 / 0
|
||||
for sep$ in sep$[]
|
||||
pos = strpos str$ sep$
|
||||
if pos > 0 and pos < min
|
||||
min = pos
|
||||
msep$ = sep$
|
||||
.
|
||||
.
|
||||
until min = 1 / 0
|
||||
write substr str$ 1 (min - 1) & "{" & msep$ & "}"
|
||||
str$ = substr str$ (min + len msep$) 9999
|
||||
.
|
||||
print str$
|
||||
.
|
||||
multisplit "a!===b=!=c" [ "==" "!=" "=" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue