[sword-cvs] sword/src/mgr swlocale.cpp,1.5,1.6

sword@www.crosswire.org sword@www.crosswire.org
Sun, 18 Jan 2004 13:24:06 -0700


Update of /cvs/core/sword/src/mgr
In directory www:/tmp/cvs-serv16728/src/mgr

Modified Files:
	swlocale.cpp 
Log Message:
added Encoding value to SWLocale


Index: swlocale.cpp
===================================================================
RCS file: /cvs/core/sword/src/mgr/swlocale.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- swlocale.cpp	1 Oct 2002 19:52:40 -0000	1.5
+++ swlocale.cpp	18 Jan 2004 20:24:04 -0000	1.6
@@ -30,6 +30,7 @@
 
 	name         = 0;
 	description  = 0;
+	encoding		 = 0;
 	bookAbbrevs  = 0;
 	BMAX         = 0;
 	books        = 0;
@@ -42,6 +43,10 @@
 	confEntry = localeSource->Sections["Meta"].find("Description");
 	if (confEntry != localeSource->Sections["Meta"].end())
 		stdstr(&description, (*confEntry).second.c_str());
+
+	confEntry = localeSource->Sections["Meta"].find("Description");
+	if (confEntry != localeSource->Sections["Meta"].end())
+		stdstr(&description, (*confEntry).second.c_str());
 }
 
 
@@ -93,6 +98,9 @@
 	return description;
 }
 
+const char *SWLocale::getEncoding() {
+	return encoding;
+}
 
 void SWLocale::augment(SWLocale &addFrom) {
 	*localeSource += *addFrom.localeSource;