[sword-devel] how to get the book name from VerseKey (KDevelop)

Davey Erwin daveyerwin at gmail.com
Fri Apr 28 12:13:19 MST 2006

        SWMgr manager(0, 0, true, 0, true);
	SWModule *target;
	ModMap::iterator it;
	it = manager.Modules.find("KJV");	
	target = (*it).second;
	VerseKey mykey= "Gen 1:1";
	std::cout << mykey.Verse();//outputs verse number(1)
	std::cout << mykey.Chapter();//outputs chapter number (1)
	std::cout << mykey.Book();//outputs nothing (Iwant
to output "Geneses")
	std::cout << target->StripText();//ouputs verse text
	std::cout << std::endl;

how do I get Geneses out of versekey ?

More information about the sword-devel mailing list