TropNul commented on a Page, $split.text()  -  Dec 22, 2007

It\'s a good idea but imho, there are some things that it does which should not.

1) removal of double chars (most probably because of the $addtok\'s natural behaviour)
2) even though the chars in double are not close to each other, one of them, the second one, is removed also (once more, $addtok\'s fault).
3) //echo $split.text(mirc,44,5) echoes
m,i,r
c
which imo in not what it should do because the text in input does not even contain 5 chars. When spliting at N, it should not count the Cs also.

Furthermore, the error message will never be displayed, for the simple reason that you set %k inside a condition that is out of context when an error, in this case, is to be detected.

What I would like it to do.

1) with $split.text(text,44) it should echo \"t,e,x,t\" and not \"t,e,x\"
2) with $split.text(text,44,5) it should echo \"t,e,x,t\" also and not \"t,e,x\"
\"t\"
for the same reason I gave above.

Alright for the \'review\'.

[ $mid is your friend :p ]
[ I\'ll try to scratch something like this with regexps (my passion lol) ]

Cordialement

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.