fix for linux

This commit is contained in:
Dario 2020-07-21 11:38:35 +02:00
parent 515d4d18df
commit 015caeed5b

View File

@ -252,7 +252,15 @@ std::string Mnemonic::getCompleteWordList()
std::shared_lock<std::shared_mutex> _lock(mWorkingMutex);
std::string result("");
//std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" };
Poco::RegularExpression toReplaced[] = { "&auml;", "&ouml;", "&uuml;", "&Auml;", "&Ouml;", "&Uuml;", "&szlig;" };
Poco::RegularExpression toReplaced[] = {
std::string("&auml;"),
std::string("&ouml;"),
std::string("&uuml;"),
std::string("&Auml;"),
std::string("&Ouml;"),
std::string("Uuml;"),
std::string("&szlig;")
};
std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
for (int i = 0; i < 2048; i++) {
if (mWords[i]) {
@ -300,7 +308,15 @@ std::string Mnemonic::getCompleteWordListSorted()
words.sort(compare_nocase);
//std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" };
Poco::RegularExpression toReplaced[] = { "&auml;", "&ouml;", "&uuml;", "&Auml;", "&Ouml;", "&Uuml;", "&szlig;" };
Poco::RegularExpression toReplaced[] = {
std::string("&auml;"),
std::string("&ouml;"),
std::string("&uuml;"),
std::string("&Auml;"),
std::string("&Ouml;"),
std::string("Uuml;"),
std::string("&szlig;")
};
std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
int i = 0;
for(auto it = words.begin(); it != words.end(); it++) {