[sword-cvs] sword/src/mgr stringmgr.cpp,1.1,1.2
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 19 Apr 2004 07:27:51 -0700
Update of /cvs/core/sword/src/mgr
In directory www:/tmp/cvs-serv23629/src/mgr
Modified Files:
stringmgr.cpp
Log Message:
changed StringMgr to camelCase (joachim)
Index: stringmgr.cpp
===================================================================
RCS file: /cvs/core/sword/src/mgr/stringmgr.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- stringmgr.cpp 17 Apr 2004 17:16:17 -0000 1.1
+++ stringmgr.cpp 19 Apr 2004 14:27:48 -0000 1.2
@@ -1,6 +1,5 @@
/******************************************************************************
- * stringmgr.cpp - implementation of class LocaleMgr used to interact with
- * registered locales for a sword installation
+ * stringmgr.cpp - implementation of class StringMgr
*
* $Id$
*
@@ -53,9 +52,9 @@
#ifdef _ICU_
//here comes our IcuStringMgr reimplementation
- class IcuStringMgr : public StringMgr {
+ class ICUStringMgr : public StringMgr {
public:
- virtual char* upperUtf8(char*, const unsigned int maxlen = 0);
+ virtual char* upperUTF8(char*, const unsigned int maxlen = 0);
virtual char* upperLatin1(char*);
protected:
@@ -102,7 +101,7 @@
m_systemStringMgr = new StringMgr();
SWLog::getSystemLog()->logError("created default StringMgr");
#else
- m_systemStringMgr = new IcuStringMgr();
+ m_systemStringMgr = new ICUStringMgr();
SWLog::getSystemLog()->logError("created default IcuStringMgr");
#endif
}
@@ -114,7 +113,7 @@
/** Converts the param to an upper case Utf8 string
* @param The text encoded in utf8 which should be turned into an upper case string
*/
-char* StringMgr::upperUtf8(char* t, const unsigned int maxlen) {
+char* StringMgr::upperUTF8(char* t, const unsigned int maxlen) {
//the default impl does nothing
// SWLog::getSystemLog()->logError("StringMgr::upperUtf8 with %s and %d", t, maxlen);
@@ -142,7 +141,7 @@
#ifdef _ICU_
- char* IcuStringMgr::upperUtf8(char* buf, const unsigned int maxlen) {
+ char* ICUStringMgr::upperUTF8(char* buf, const unsigned int maxlen) {
char *ret = buf;
int max = maxlen;
@@ -163,7 +162,7 @@
return ret;
}
- char* IcuStringMgr::upperLatin1(char* t) {
+ char* ICUStringMgr::upperLatin1(char* t) {
StringMgr::upperLatin1(t); //use the default implementation
}