Lindrian commented on a Page, Typos Code Comparison  -  Jul 30, 2008

Yes ,that is entirely up to you how you wish to return the values. But when you actually count the size of a snippet, you use the algorithm i posted.

Trailing and leading spaces are never accounted for :P, thats just the way its always been.

And what $file().size really is counting, is the additional data windows saves, and not the content itself only.

Just to show what I mean:
Image (If you look at the acual size, you see its 1 byte)

But then again, several options on how to count would be nice. Definitely a improvement.

 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.