[sword-devel] ListKey contains key

Manfred Bergmann bergmannmd at web.de
Fri Apr 10 10:55:12 MST 2009


Hi.

Another API question.

Is there an inexpensive way of checking whether ListKey contains a  
certain key?
For example:
I have a ListKey from "Gen 1:1-5".
Now I need to know if this ListKey contains "Gen 1:3".

Of course I can loop over the ListKey but if exists I would prefer a  
better way.
I've tried the following and it seemed to work but I'm not sure this  
is correct API usage:

ListKey lk = vk.ParseVerseList("Gen 1:1-5", "Gen1", true);
lk = "Gen 1:3";
BOOL contains = !lk.Error();



Manfred



More information about the sword-devel mailing list