MLUG: Re: [MLUG] String manipulation in C
Re: [MLUG] String manipulation in C
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Mon, 2007-07-02 at 16:10 -0500, Stephen Montgomery-Smith wrote:

> You might want sequence+startLocTotal+1 instead, here, that is, if you 
> want to detect for the possibility of the pattern appearing twice but 
> overlapping - e.g. if pattern is "ABA" and you are searching "XXABABAXX" - 
> do you want the pattern to be found once (which is what your program will 
> do) or twice?

Good point- I *do* need to catch that. An offset of +1 from the start
would be better than cleaving off everything before the end of match. 

Jack


_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members