On 8 apr, 18:57, The Beez <
the.beez.spe...@gmail.com> wrote:
Well, it didn't take too long until I found an annoying error in
PARSE. Of course the delimiter itself may never be part of the result,
so I had to fix that. On the other hand, you want parsing to STOP at
the end of the buffer, whether it is reached because it's at the end
or whether a NULL byte is encountered. Subsequent parses shouldn't
increment >IN anymore, nor return anything but an empty string.
OMIT doesn't have that problem, because it simply stops at the first
non-matching character - in other words, since it always skips
characters it doesn't need to skip anything else.
At the same time I fixed an "error" in Accept(). I mean an "error",
because the standard simply states that then ACCEPT gets a count of 0,
the result is undetermined. 4tH returned a character in that case. Now
it returns a NULL string, a much more sane result.
Lately, I've ironed out a lot of these bugs. Most likely, you will
never encounter them, because you feed 4tH with sane programming, but
nonetheless it should react in a controlled way when it is confronted
with INSANE programming.
Hans Bezemer