[sword-devel] mod2osis - linked verses ....

Troy A. Griffitts scribe at crosswire.org
Tue Apr 28 23:41:12 MST 2009


One issue below (and yes! I believe it is a wonderful goal to have 
mod2osis actually produce valid OSIS!) :)

>    // have to increment in case you don't get in the loop body
>    endRange.increment();
>    // check error so that if you are on the last verse in the 
> versification, you don't loop forever.
>    while (!endRange.Error() && myModule.isLinked(myKey, endRange)) {
>           endRange.increment();
>    }

At this point Error() (in the code below) will always return false.  It 
is cleared in the while loop above.  Error() returns the error code and 
brings low the error bit.


>    // If you hit the last verse you don't need to decrement
>    if (!endRange.Error()) {
>        endRange.decrement();
>    }
>    // test to see that you have a range.
>    if (myKey != endRange) {
>       ... then I have a range ...
>    }




More information about the sword-devel mailing list