Tokenize a string: Difference between revisions

Content added Content deleted
m (→‎Version #2.: fixing typo)
Line 1,482: Line 1,482:
if(v1!=d1, vo=v1; next);
if(v1!=d1, vo=v1; next);
if(vo==d1||i==1, listput(Lr,""); p1=i+1; vo=v1; next);
if(vo==d1||i==1, listput(Lr,""); p1=i+1; vo=v1; next);
if(i-p1>1, listput(Lr,ssubstr(str,p1,i-p1)); p1=i+1);
if(i-p1>0, listput(Lr,ssubstr(str,p1,i-p1)); p1=i+1);
vo=v1;
vo=v1;
);
);