[sword-cvs] sword/bindings/swig localemgr.i,1.6,1.7 sword.pl,1.4,1.5
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 9 Feb 2004 11:33:52 -0700
- Previous message: [sword-cvs] sword/bindings/swig listkey.i,1.4,1.5 localemgr.i,1.5,1.6 lzsscompress.i,1.3,1.4 rawcom.i,1.3,1.4 rawgenbook.i,1.4,1.5 rawld.i,1.3,1.4 rawld4.i,1.3,1.4 rawtext.i,1.3,1.4 swbuf.i,1.2,1.3 swcom.i,1.3,1.4 swcompress.i,1.3,1.4 swconfig.i,1.6,1.7 swfiltermgr.i,1.3,1.4 swgenbook.i,1.3,1.4 swkey.i,1.5,1.6 swld.i,1.3,1.4 swmgr.i,1.8,1.9 swmodule.i,1.6,1.7 sword.i,1.6,1.7 swposition.i,1.3,1.4 swtext.i,1.3,1.4 treekey.i,1.3,1.4 treekeyidx.i,1.4,1.5 versekey.i,1.5,1.6 zcom.i,1.3,1.4 zipcompress.i,1.3,1.4 zld.i,1.3,1.4 ztext.i,1.3,1.4
- Next message: [sword-cvs] sword/bindings/swig/package configure.ac,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/core/sword/bindings/swig
In directory www:/tmp/cvs-serv2391
Modified Files:
localemgr.i sword.pl
Log Message:
fixes
Index: localemgr.i
===================================================================
RCS file: /cvs/core/sword/bindings/swig/localemgr.i,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- localemgr.i 9 Feb 2004 18:25:42 -0000 1.6
+++ localemgr.i 9 Feb 2004 18:33:50 -0000 1.7
@@ -13,13 +13,8 @@
virtual ~LocaleMgr ();
virtual SWLocale *getLocale (const char *name);
virtual std::list < SWBuf > getAvailableLocales ();
- //virtual const char *translate (const char *name, const char *text);
virtual const char *getDefaultLocaleName();
virtual void setDefaultLocaleName (const char *name);
-%extend {
- static LocaleMgr* const getSystemLocaleMgr() {
- return &(LocaleMgr::systemLocaleMgr);
- };
-}
+ static LocaleMgr* const getSystemLocaleMgr();
};
Index: sword.pl
===================================================================
RCS file: /cvs/core/sword/bindings/swig/sword.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sword.pl 6 Feb 2004 21:01:00 -0000 1.4
+++ sword.pl 9 Feb 2004 18:33:50 -0000 1.5
@@ -1,11 +1,11 @@
#!/usr/bin/perl
-use sword;
+use Sword;
-print "Version (should be 1.0): " , $sword::VERSION , "\n";
+print "Version (should be 1.0): " , $Sword::VERSION , "\n";
print "Create SWConfig object!\n";
-$config = new sword::SWConfig("test.conf");
+$config = new Sword::SWConfig("test.conf");
print "Load\n";
$config->Load();
@@ -22,17 +22,17 @@
#testing SWMgr
print "testing SWMgr\n";
-#$localemgr = sword::LocaleMgr::getSystemLocaleMgr();
+#$localemgr = Sword::LocaleMgr::getSystemLocaleMgr();
#$localemgr->setDefaultLocaleName("de");
-$mgr = new sword::SWMgr();
+$mgr = new Sword::SWMgr();
print "init ... ";
#$module = $mgr->module("GerLut1545-temp");
$module = $mgr->module("WEB");
print "Printing WEB Module information: \n";
print "Name:\t", $module->Name(),"\nDescription:\t", $module->Description(), "\nLang:\t", $module->Lang(), "\n";
-$key = new sword::VerseKey("Matthew 3:16");
+$key = new Sword::VerseKey("Matthew 3:16");
$key->setPersist(1);
$module->SetKey($key);
@@ -49,7 +49,7 @@
$module->write("This is a test entry! This tests the write abilities of the Sword Perl classes");
print "(", $module->KeyText() ,")\t", $module->StripText(), "\n";
-print "Seraching for God: ";
+print "Searching for God: ";
$list = $module->Search("Gott");
print $list->Count(), " entries found!\n";
#for ( $i = 0; $i < $list->Count(); $i++) {
@@ -58,8 +58,8 @@
#}
print "Creating new module! Writing search result...";
-#sword::RawText::createModule("/usr/share/sword/modules/texts/ztext/testmodule/");
-#$newmod = new sword::RawText("/usr/share/sword/modules/texts/ztext/testmodule/");
+#Sword::RawText::createModule("/usr/share/sword/modules/texts/ztext/testmodule/");
+#$newmod = new Sword::RawText("/usr/share/sword/modules/texts/ztext/testmodule/");
#$key->setText("Genesis 1:1");
$newkey = $key->clone();
@@ -75,11 +75,11 @@
print "Now create the LD module\n";
mkdir("ldmod");
-sword::zText::createModule("ldmod/",4);
+Sword::zText::createModule("ldmod/",4);
print "first step}\n";
-$newmod = new sword::zText("ldmod/");
+$newmod = new Sword::zText("ldmod/");
print "Created module;\n";
- Previous message: [sword-cvs] sword/bindings/swig listkey.i,1.4,1.5 localemgr.i,1.5,1.6 lzsscompress.i,1.3,1.4 rawcom.i,1.3,1.4 rawgenbook.i,1.4,1.5 rawld.i,1.3,1.4 rawld4.i,1.3,1.4 rawtext.i,1.3,1.4 swbuf.i,1.2,1.3 swcom.i,1.3,1.4 swcompress.i,1.3,1.4 swconfig.i,1.6,1.7 swfiltermgr.i,1.3,1.4 swgenbook.i,1.3,1.4 swkey.i,1.5,1.6 swld.i,1.3,1.4 swmgr.i,1.8,1.9 swmodule.i,1.6,1.7 sword.i,1.6,1.7 swposition.i,1.3,1.4 swtext.i,1.3,1.4 treekey.i,1.3,1.4 treekeyidx.i,1.4,1.5 versekey.i,1.5,1.6 zcom.i,1.3,1.4 zipcompress.i,1.3,1.4 zld.i,1.3,1.4 ztext.i,1.3,1.4
- Next message: [sword-cvs] sword/bindings/swig/package configure.ac,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]