[Biococoa-dev] BCScanner

Koen van der Drift kvddrift at earthlink.net
Sun Mar 13 20:40:57 EST 2005


Because it is needed for the BCDigest class, I started working on the 
BCScanner class. First method I attempted was

- (BOOL)scanSequence:(BCAbstractSequence*)subSequence 
intoSequence:(BCAbstractSequence **)value.

Trying to emulate what NSScanner does with a string, I am now using 
BCToolSequenceFinder to find the first occurance of the passed 
sequence. Because the BCScanner is probably going to be called a number 
of times in succession, I am doubting if using the BCToolSequenceFinder 
in this way is the most efficient. Maybe the BCToolSequenceFinder 
should be an ivar of the class? That would probably also be a better 
way to keep track of the scanLocation.

I committed my first attempt, so have a look and let me know what you 


- Koen.

More information about the Biococoa-dev mailing list