[sword-devel] ParseVerseList

Manu Mital mitalmanu at hotmail.com
Sat Jun 3 08:19:18 MST 2006


Hi,

In Adam Clarke's commentary (Genesis 1:1), the scripture reference "Ho 12:1 Mal 1:6 Da 5:18, 20 7:18, 22" is interpreted by the Sword GUI as Hosea 12:1, Malachi 1:6, Daniel 5:18, Daniel 5:207 and Daniel 11:22

The correct sequence is Hos 12:1 Mal 1:6  Dan 5:18 Dan 5:20,  Dan 7:18, Dan 7:22.

If I have a string like 

string key = "Ho 12:1 Mal 1:6 Da 5:18, 20 7:18, 22"

How can I get the correct list of verses? I tried the following but must be missing something. 

sword::VerseKey vk;
sword::ListKey list = vk.ParseVerseList(key, vk, true);
for(list= TOP; !list.Error(); list++)  {   pModule->SetKey( (const char *) list );       pModule->KeyText() ;   }

What am I missing?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.crosswire.org/pipermail/sword-devel/attachments/20060603/575e99d7/attachment.html


More information about the sword-devel mailing list