[sword-devel] ListKey question and MacSword 1.1

Troy A. Griffitts scribe at crosswire.org
Sat May 8 11:37:44 MST 2004


      lk = vk.ParseVerseList("mat;mark;luke", vk, true);
      lk = "john 3:16";
      std::cout << "\nError should be set: " << ((lk.Error()) ? 
"set":"not set");
 



William Thimbleby wrote:
> Cheers,
> 
> The other question is: how do I find out if a listkey contains a key? 
> So, for instance if I have a list key generated from a verse list or 
> find results, how can I find out if it contains "John 3:16"?
> 
> —Will
> 
> On 8 May 2004, at 18:52, Troy A. Griffitts wrote:
> 
>> William,
>>     Sounds like a great release!!!  Maybe we can get it on the new CD 
>> before we cut (since it's taking me way too long to finish up 
>> necessary todo items).
>>
>>     Not sure I completely understand your question...  It sounds quite 
>> straight-forward, but from my experience, maybe you're asking 
>> something I had troubles with... (or maybe I'm trying to read too much 
>> in and it really is a basic question).
>>
>> Here's the basic answer, I'll save my time for the other answer in 
>> case this is really what you want:
>>
>>      ListKey lk;
>>      lk << "john 3:16";
>>      std::cout << "Count should be 1: " << lk.Count();
>>
>>
>>
>> William Thimbleby wrote:
>>
>>> Hi,
>>> Does anyone know if there is a way to see if a listkey contains a  
>>> single key? That'd be very handy.
>>> also FYI I've released a beta version of MacSword 1.1:
>>> http://prdownloads.sourceforge.net/macsword/MacSword-1.1beta2.dmg? 
>>> download
>>> here are the changes so far:
>>> Support for general books
>>> Find ranges now supported — for faster and more accurate searching
>>> Regular expression search result are now highlighted
>>> Left to right text supported properly
>>> Devotionals now remember window opened in
>>> MacSword remembers expanded items in modules list
>>> Cheers guys,
>>> —Will
>>> _______________________________________________
>>> sword-devel mailing list
>>> sword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>
>>
>> _______________________________________________
>> sword-devel mailing list
>> sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>>
> 
> _______________________________________________
> sword-devel mailing list
> sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel



More information about the sword-devel mailing list