[sword-devel] Check if a key is valid
Troy A. Griffitts
scribe at crosswire.org
Sat Feb 8 11:29:26 MST 2020
Hi Matthias,
I have just added an example to show how to check if a string is a valid
verse reference:
http://crosswire.org/svn/sword/trunk/examples/classes/versevalid.cpp
Hope this helps,
Troy
On 2/8/20 2:40 AM, Matthias Lindner wrote:
> Hi alltoghether,
>
> I try to implement a Bible App which has a Multipurpose search field..
> (so you can either type in a Bibleverse or a searchstring)
>
> So i need to find out if the typed in string is a valid key or not..
> i tried several methods also with the returned char error.. but non of
> them
> really returned a real error when i handed over a crazy String like
> "test test test" instead it just set the key to revelation of jhon..
>
> Any hints how to check if a handed over char ikey can be tested if
> its valid?
>
> blessings
> Matthias aka Paradoxon
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200208/c6acf67d/attachment.html>
More information about the sword-devel
mailing list