mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix for linux
This commit is contained in:
parent
515d4d18df
commit
015caeed5b
@ -252,7 +252,15 @@ std::string Mnemonic::getCompleteWordList()
|
|||||||
std::shared_lock<std::shared_mutex> _lock(mWorkingMutex);
|
std::shared_lock<std::shared_mutex> _lock(mWorkingMutex);
|
||||||
std::string result("");
|
std::string result("");
|
||||||
//std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" };
|
//std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" };
|
||||||
Poco::RegularExpression toReplaced[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
|
Poco::RegularExpression toReplaced[] = {
|
||||||
|
std::string("ä"),
|
||||||
|
std::string("ö"),
|
||||||
|
std::string("ü"),
|
||||||
|
std::string("Ä"),
|
||||||
|
std::string("Ö"),
|
||||||
|
std::string("Uuml;"),
|
||||||
|
std::string("ß")
|
||||||
|
};
|
||||||
std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
|
std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
|
||||||
for (int i = 0; i < 2048; i++) {
|
for (int i = 0; i < 2048; i++) {
|
||||||
if (mWords[i]) {
|
if (mWords[i]) {
|
||||||
@ -300,7 +308,15 @@ std::string Mnemonic::getCompleteWordListSorted()
|
|||||||
words.sort(compare_nocase);
|
words.sort(compare_nocase);
|
||||||
|
|
||||||
//std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" };
|
//std::string toReplaced[] = { "auml", "ouml", "uuml", "Auml", "Ouml", "Uuml", "szlig" };
|
||||||
Poco::RegularExpression toReplaced[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
|
Poco::RegularExpression toReplaced[] = {
|
||||||
|
std::string("ä"),
|
||||||
|
std::string("ö"),
|
||||||
|
std::string("ü"),
|
||||||
|
std::string("Ä"),
|
||||||
|
std::string("Ö"),
|
||||||
|
std::string("Uuml;"),
|
||||||
|
std::string("ß")
|
||||||
|
};
|
||||||
std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
|
std::string replaceStrings[] = { "ä", "ö", "ü", "Ä", "Ö", "Ü", "ß" };
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for(auto it = words.begin(); it != words.end(); it++) {
|
for(auto it = words.begin(); it != words.end(); it++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user