diff options
author | Roberto C. Sanchez <roberto@connexer.com> | 2014-10-21 22:58:34 -0400 |
---|---|---|
committer | Roberto C. Sanchez <roberto@connexer.com> | 2014-10-21 22:58:34 -0400 |
commit | 1ea03c0fce8066c1e22188447b4a6ca4dcef1201 (patch) | |
tree | 1ad46980fdca402062502b20b7e16468b89393f8 /src/backend/managers/btstringmgr.h | |
parent | 579657c8cb4ecd8a313221e70bdbbc7267f20286 (diff) |
Imported Upstream version 2.10.1
Diffstat (limited to 'src/backend/managers/btstringmgr.h')
-rw-r--r-- | src/backend/managers/btstringmgr.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/backend/managers/btstringmgr.h b/src/backend/managers/btstringmgr.h index 1cf7170..3fd0175 100644 --- a/src/backend/managers/btstringmgr.h +++ b/src/backend/managers/btstringmgr.h @@ -1,8 +1,10 @@ /********* * +* In the name of the Father, and of the Son, and of the Holy Spirit. +* * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -12,16 +14,20 @@ #include <QString> -// Sword includes: +/* Sword includes: */ #include <stringmgr.h> -/** Unicode string manager implementation. - * This is the StringManager implementation which works with QString. - * @author The BibleTime developers - */ +/** + Unicode string manager implementation. -class BTStringMgr : public sword::StringMgr { + A Qt-based sword::StringMgr is better than the default one in Sword, in case + Sword is not compiled against ICU regarding this. However, we have no good + means to check this, so let's use this class as default. This is currently + done in BibleTime::initBackends() as follows: + sword::StringMgr::setSystemStringMgr(new BtStringMgr()); +*/ +class BtStringMgr : public sword::StringMgr { public: /** Converts the param to an upper case Utf8 string @@ -50,4 +56,4 @@ class BTStringMgr : public sword::StringMgr { bool isUtf8(const char *buf) const; }; -#endif +#endif /* BTSTRINGMGR_H */ |