forked from markus/S_New4
1_Sep_19
This commit is contained in:
parent
c021a655dd
commit
d54e24dfb5
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
struct Account {
|
struct Account {
|
||||||
|
@ -234,8 +234,8 @@ std::string PageManager::replace(std::string str, std::string substr1, std::stri
|
|||||||
if(substr1 == "")
|
if(substr1 == "")
|
||||||
return str;
|
return str;
|
||||||
size_t index = 0;
|
size_t index = 0;
|
||||||
for (index = str.find(substr1, index); index != std::string::npos; index = str.find(substr1, index + strlen(substr1.c_str())) )
|
for (index = str.find(substr1, index); index != std::string::npos; index = str.find(substr1, index + substr1.length()) )
|
||||||
str.replace(index, strlen(substr1.c_str()), substr2);
|
str.replace(index, substr1.length(), substr2);
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -327,7 +327,7 @@ std::string PageManager::chooseHosterLink(std::string HosterList, std::string Ho
|
|||||||
std::cout << " => Error: Konnte 'href=\"' in chooseHosterLink() nicht finden." << std::endl;
|
std::cout << " => Error: Konnte 'href=\"' in chooseHosterLink() nicht finden." << std::endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Line.erase(0, pos + static_cast<int>(strlen("href=\"")));
|
Line.erase(0, pos + 6/*static_cast<int>(strlen("href=\""))*/);
|
||||||
|
|
||||||
pos = Line.find("\"");
|
pos = Line.find("\"");
|
||||||
if(pos == std::string::npos) {
|
if(pos == std::string::npos) {
|
||||||
@ -341,7 +341,3 @@ std::string PageManager::chooseHosterLink(std::string HosterList, std::string Ho
|
|||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,9 +4,8 @@
|
|||||||
#include "accountManager.h"
|
#include "accountManager.h"
|
||||||
#include "curl/curl.h"
|
#include "curl/curl.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <unistd.h>
|
#include <unistd.h> // sleep
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <string.h>
|
#include <string.h> // strlen
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include <limits.h> // PATH_MAX
|
#include <limits.h> // PATH_MAX
|
||||||
#include <unistd.h> // readlink()
|
#include <unistd.h> // readlink()
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user