about check number heuristics

Chris cxl000 at hotmail.com
Wed Jan 31 02:15:49 EST 2007


On Tue, 2007-01-30 at 10:23 -0500, Derek Atkins wrote:
> 
> I think it just needs to skip over all non-numeric until the end; we
> only need to deal with strings of the form "c*d+", where we have any
> number (including zero) of leading alpha-numerics, followed by at
> least one digit.  Then we just need to keep the same minimum number of
> digits in the increment, and leave the "c*" substring alone.
> 
> For example:
> 
>    000123   ->   000124
>    A999     ->   A1000
>    0A1C999  ->   0A1C1000
> 
> I don't think it needs to be any more configurable than this.
> 
> > Regards,
> 
> -derek
> 
This is what I originally proposed and I have some prototype code that produces
       123        124
     00123      00124
      A123       A124
       999       1000
     00999      01000
      A999      A1000
    00A123     00A124
    00A999    00A1000
       ABC       ABC1

I'll hook it into gnucash and send a patch.
Regards,
Chris



More information about the gnucash-devel mailing list