persister cleanup (still broke but logic is there for when it isn't); also replace all the SOE BS for forwarding stl port with native object classes because i thought that may be part of the problem...

This commit is contained in:
DarthArgus
2016-12-10 23:17:06 +00:00
parent 688ab3fc9e
commit 8e94519082
450 changed files with 1287 additions and 1494 deletions
@@ -161,8 +161,7 @@ void LocalizationManager::install (AbstractFileFactory * fileFactory, Unicode::U
ms_singletonHashMap = new LocalizationManagerHashMap();
Unicode::UnicodeNarrowStringVector::const_iterator end = localeNameMap.end();
for ( Unicode::UnicodeNarrowStringVector::const_iterator iter = localeNameMap.begin(); iter != end; ++iter )
for (auto iter = localeNameMap.begin(); iter != localeNameMap.end(); ++iter )
{
Unicode::NarrowString localeName = (*iter);
LocalizationManager * localizationManager = new LocalizationManager (fileFactory, localeName, debugBadStringsFunc, displayBadStringIds);
+3 -12
View File
@@ -18,27 +18,18 @@
#endif
#include <cstring>
#include <vector>
#include "Unicode.h"
#include "utf8.h"
namespace std
{
template <class _Tp, class _Alloc> class vector;
}
template <class _Tp, class _Alloc = std::allocator<_Tp> > struct unicode_stdvector
{
typedef std::vector<_Tp, _Alloc> fwd;
};
//-----------------------------------------------------------------
namespace Unicode
{
typedef std::string UTF8String;
typedef unicode_stdvector<Unicode::String>::fwd UnicodeStringVector;
typedef unicode_stdvector<Unicode::NarrowString>::fwd UnicodeNarrowStringVector;
typedef std::vector<Unicode::String> UnicodeStringVector;
typedef std::vector<Unicode::NarrowString> UnicodeNarrowStringVector;
String narrowToWide (const char * const nstr);
String narrowToWide (const NarrowString & nstr);