[sword-devel] Bug with SWKey operators
Joachim Ansorg
sword-devel@crosswire.org
Sun, 7 Apr 2002 01:35:56 +0200
Hi!
See the attached test program. It's doesn't work properly, neither using en
or de as locale. Is the code wrong or is Sword buggy?
---------
#include <swkey.h>
#include <versekey.h>
#include <localemgr.h>
#include <iostream.h>
int main (int argc, char* argv[]) {
// LocaleMgr::systemLocaleMgr.setDefaultLocaleName("de");
VerseKey vk1 = "Genesis 2:10";
VerseKey vk2 = "Genesis 1:1";
while (vk2 <= vk1) {
cout << vk2 << " <= " << vk1 << endl;
vk2++;
}
};
---------
Thanks,
Joachim