Lines Matching refs:strHost
815 std::string strHost = temp.substr(0, pos);
818 if (!ISFileNohost(strHost)) {
819 AnalysisHost(strHost, urlinfo.host, flags, special);
820 } else if (!ISFileNohost(strHost) && flags.test(static_cast<size_t>(BitsetStatusFlag::BIT0))) {
823 if (!ISFileNohost(strHost)) {
880 void AnalyHostPath(std::string &strHost, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags,
884 if (strHost[strHost.size() - 1] != ']' && (pos = strHost.find_last_of(':')) != std::string::npos) {
885 std::string port = strHost.substr(pos + 1);
886 strHost = strHost.substr(0, pos);
893 void AnalyStrHost(std::string &strHost, UrlData& urlinfo,
896 if (strHost.find('@') != std::string::npos) {
897 AnalysisUsernameAndPasswd(strHost, urlinfo.username, urlinfo.password, flags);
899 if (strHost.empty()) {
919 std::string strHost = "";
922 strHost = hostandpath.substr(0, i);
924 if (strHost.find('@') != std::string::npos) {
925 AnalysisUsernameAndPasswd(strHost, urlinfo.username, urlinfo.password, flags);
927 if (strHost.empty()) {
932 if (strHost[strHost.size() - 1] != ']' && (pos = strHost.find_last_of(':')) != std::string::npos) {
933 std::string port = strHost.substr(pos + 1);
934 strHost = strHost.substr(0, pos);
937 if (strHost[strHost.size() - 1] != ']' && (pos = strHost.find_last_of(':')) != std::string::npos &&
941 AnalysisHost(strHost, urlinfo.host, flags, special);
944 strHost = hostandpath;
945 AnalyStrHost(strHost, urlinfo, flags);
946 AnalyHostPath(strHost, flags, urlinfo);
947 AnalysisHost(strHost, urlinfo.host, flags, special);
960 std::string strHost = input;
961 if (strHost.find('@') != std::string::npos) {
962 AnalysisUsernameAndPasswd(strHost, urlinfo.username, urlinfo.password, flags);
964 if (strHost.empty()) {
968 if (strHost[strHost.size() - 1] != ']') {
969 if ((pos = strHost.find_last_of(':')) != std::string::npos) {
970 std::string port = strHost.substr(pos + 1);
971 strHost = strHost.substr(0, pos);
974 if ((pos = strHost.find_last_of(':')) != std::string::npos &&
979 AnalysisHost(strHost, urlinfo.host, flags, true);
1010 std::string strHost = input.substr(0, pos);
1012 if (strHost.find('@') != std::string::npos) {
1013 AnalysisUsernameAndPasswd(strHost, urlinfo.username, urlinfo.password, flags);
1015 if (strHost.empty()) {
1019 if (strHost[strHost.size() - 1] != ']' && (pos = strHost.find_last_of(':')) != std::string::npos) {
1020 pos = strHost.find_last_of(':');
1022 std::string port = strHost.substr(pos + 1);
1023 strHost = strHost.substr(0, pos);
1027 if (strHost[strHost.size() - 1] != ']' && strHost.find_last_of(':') != std::string::npos &&
1031 AnalysisHost(strHost, urlinfo.host, flags, special);
1450 std::string strHost = input;
1451 size_t length = strHost.size();
1453 if ((strHost[pos] == ':') || (strHost[pos] == '?') || (strHost[pos] == '#') ||
1454 (strHost[pos] == '/') || (strHost[pos] == '\\')) {
1455 strHost = strHost.substr(0, pos);
1459 if (strHost.size() == 0) {
1465 AnalysisHost(strHost, thisHostname, thisFlags, special);
1526 void SplitString(const std::string& input, std::string& strHost, std::string& port)
1532 strHost = input.substr(0, pos);
1547 std::string strHost = input;
1549 SplitString(input, strHost, port);
1550 if (strHost.size() == 0) {
1556 AnalysisHost(strHost, thisHostname, hostnameflags, special);