H A D | js_url.cpp | 75 void ReplaceSpecialSymbols(std::string& input, std::string& oldstr, std::string& newstr)
in ReplaceSpecialSymbols() argument 80 if ((pos = input.find(oldstr)) != std::string::npos) {
in ReplaceSpecialSymbols() 81 input.replace(pos, oldlen, newstr);
in ReplaceSpecialSymbols() 102 std::string DecodeSpecialChars(std::string input)
in DecodeSpecialChars() argument 104 std::string temp = input;
in DecodeSpecialChars() 106 if (input.empty()) {
in DecodeSpecialChars() 175 bool AnalysisScheme(std::string& input, std::string& scheme,
in AnalysisScheme() argument 178 if (!isalpha(input[0])) {
in AnalysisScheme() 182 size_t strlen = input.size();
in AnalysisScheme() 184 if ((isalnum(input[ in AnalysisScheme() 202 AnalysisFragment(const std::string& input, std::string& fragment, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisFragment() argument 209 AnalysisQuery(const std::string& input, std::string& query, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisQuery() argument 215 AnalysisUsernameAndPasswd(std::string& input, std::string& username, std::string& password, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisUsernameAndPasswd() argument 257 AnalysisPath(std::string& input, std::vector<std::string>& path, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags, bool isSpecial) AnalysisPath() argument 299 AnalysisPort(std::string input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisPort() argument 332 AnalysisOpaqueHost(std::string input, std::string& host, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisOpaqueHost() argument 487 IPv6Host(std::string& input, std::string& host, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) IPv6Host() argument 688 AnalyseIPv4(const std::string& input, std::string& host, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalyseIPv4() argument 729 AnalysisHost(std::string& input, std::string& host, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags, bool special) AnalysisHost() argument 759 ISFileNohost(const std::string& input) ISFileNohost() argument 767 AnalysisFilePath(std::string& input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisFilePath() argument 829 AnalysisFile(std::string& input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisFile() argument 859 AnalysisFilescheme(const std::string& input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisFilescheme() argument 868 AnalyInfoPath(std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)> &flags, UrlData& urlinfo, const std::string& input) AnalyInfoPath() argument 905 AnalysisNoDefaultProtocol(std::string& input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisNoDefaultProtocol() argument 957 AnalysisOnlyHost(const std::string& input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags, size_t pos) AnalysisOnlyHost() argument 982 JudgePos(size_t &pos, const size_t &length, const std::string& input) JudgePos() argument 991 SkipSlashSymbol(std::string& input, size_t& pos) SkipSlashSymbol() argument 1004 ParsingHostAndPath(std::string& input, UrlData& urlinfo, size_t& pos, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) ParsingHostAndPath() argument 1035 AnalysisHostAndPath(std::string& input, UrlData& urlinfo, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisHostAndPath() argument 1059 AnalysisInput(std::string& input, UrlData& urlData, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) AnalysisInput() argument 1131 InitOnlyInput(std::string& input, UrlData& urlData, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)>& flags) InitOnlyInput() argument 1169 ToolHasBase(std::string input, std::string &strInput, UrlData &urlData, std::bitset<static_cast<size_t>(BitsetStatusFlag::BIT_STATUS_11)> &flags) ToolHasBase() argument 1194 URL(const std::string& input) URL() argument 1213 URL(const std::string& input, const std::string& base) URL() argument 1263 URL(const std::string& input, const URL& base) URL() argument 1445 SetHostname(const std::string& input) SetHostname() argument 1475 SetHref(const std::string& input) SetHref() argument 1489 SetPath(const std::string& input) SetPath() argument 1526 SplitString(const std::string& input, std::string& strHost, std::string& port) SplitString() argument 1542 SetHost(const std::string& input) SetHost() argument 1586 SetPort(const std::string& input) SetPort() argument 1607 SetSearch(const std::string& input) SetSearch() argument 1627 SetFragment(const std::string& input) SetFragment() argument 1644 SetScheme(const std::string& input) SetScheme() argument 1665 SetUsername(const std::string& input) SetUsername() argument 1681 SetPassword(const std::string& input) SetPassword() argument [all...] |
H A D | test_util.cpp | 126 std::string input = "abc123"; in HWTEST_F() local 127 napi_create_string_utf8(env, input.c_str(), NAPI_AUTO_LENGTH, &src); in HWTEST_F() 146 std::string input = "abc123abc"; in HWTEST_F() local 147 napi_create_string_utf8(env, input.c_str(), NAPI_AUTO_LENGTH, &src); in HWTEST_F() 176 unsigned char input = 'g'; in HWTEST_F() local 177 unsigned char res = OHOS::Util::HexToChar(input); in HWTEST_F() 276 std::string input = "abc123"; in HWTEST_F() local 278 napi_create_string_utf8(env, input.c_str(), input.size(), &src); in HWTEST_F() 310 std::string input in HWTEST_F() local 338 std::string input = "text"; HWTEST_F() local 372 std::string input = "abc123"; HWTEST_F() local 421 std::string input = "abc哈熠"; HWTEST_F() local 456 std::string input = "abc哈熠"; HWTEST_F() local 491 std::string input = "abc哈熠"; HWTEST_F() local 526 std::string input = "abc哈熠"; HWTEST_F() local 561 std::string input = "abc哈熠"; HWTEST_F() local 595 std::string input = "abc123"; HWTEST_F() local 637 std::string input = "text"; HWTEST_F() local 679 std::string input = "12345"; HWTEST_F() local 722 std::string input = "abc123"; HWTEST_F() local 765 std::string input = "abc123哈"; HWTEST_F() local 808 std::string input = "abc123哈"; HWTEST_F() local 851 std::string input = "abc123哈"; HWTEST_F() local 1654 unsigned char input[3] = {0x73, 0x31, 0x33}; HWTEST_F() local 1689 unsigned char input[14] = {66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115}; HWTEST_F() local 1723 unsigned char input[26] = {66, 97, 115, 101, 54, 52, 32, 69, 110, HWTEST_F() local 1759 unsigned char input[4] = {168, 174, 155, 255}; HWTEST_F() local 1793 unsigned char input[6] = {66, 97, 115, 101, 54, 52}; HWTEST_F() local 1826 unsigned char input[6] = {66, 97, 115, 101, 54, 51}; HWTEST_F() local 1853 unsigned char input[4] = {168, 174, 155, 255}; HWTEST_F() local 1887 unsigned char input[3] = {115, 49, 51}; HWTEST_F() local 1926 unsigned char input[14] = {66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115}; HWTEST_F() local 1965 unsigned char input[26] = {66, 97, 115, 101, 54, 52, 32, 69, 110, HWTEST_F() local 2005 unsigned char input[4] = {168, 174, 155, 255}; HWTEST_F() local 2044 unsigned char input[6] = {66, 97, 115, 101, 54, 52}; HWTEST_F() local 2084 unsigned char input[4] = {99, 122, 69, 122}; HWTEST_F() local 2119 unsigned char input[20] = {81, 109, 70, 122, 90, 84, 89, 48, 73, 69, 53, 118, 90, 71, 85, 117, 97, 110, 77, 61}; HWTEST_F() local 2154 std::string input = "czEz"; HWTEST_F() local 2183 std::string input = "qK6b/w=="; HWTEST_F() local 2211 std::string input = "QmFzZTY0"; HWTEST_F() local 2247 unsigned char input[20] = {81, 109, 70, 122, 90, 84, 89, 48, 73, 69, 53, 118, 90, 71, 85, 117, 97, 110, 77, 61}; HWTEST_F() local 2271 std::string input = "qK6b/w=="; HWTEST_F() local 2303 unsigned char input[3] = {0x73, 0x31, 0x33}; HWTEST_F() local 2337 unsigned char input[14] = {66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115}; HWTEST_F() local 2363 unsigned char input[26] = {66, 97, 115, 101, 54, 52, 32, 69, 110, HWTEST_F() local 2390 unsigned char input[4] = {168, 174, 155, 255}; HWTEST_F() local 2416 unsigned char input[6] = {66, 97, 115, 101, 54, 52}; HWTEST_F() local 2442 unsigned char input[3] = {115, 49, 51}; HWTEST_F() local 2474 unsigned char input[14] = {66, 97, 115, 101, 54, 52, 32, 78, 111, 100, 101, 46, 106, 115}; HWTEST_F() local 2499 unsigned char input[26] = {66, 97, 115, 101, 54, 52, 32, 69, 110, HWTEST_F() local 2525 unsigned char input[4] = {168, 174, 155, 255}; HWTEST_F() local 2550 unsigned char input[6] = {66, 97, 115, 101, 54, 52}; HWTEST_F() local 2577 unsigned char input[4] = {99, 122, 69, 122}; HWTEST_F() local 2603 unsigned char input[8] = {113, 75, 54, 98, 47, 119, 61, 61}; HWTEST_F() local 2629 std::string input = "czEz"; HWTEST_F() local 2649 std::string input = "QmFzZTY0IEVuY29kaW5nIGluIE5vZGUuanM="; HWTEST_F() local 2669 std::string input = "qK6b/w=="; HWTEST_F() local 3005 unsigned char input[4] = {99, 122, 69, 122}; HWTEST_F() local 3141 std::string input = "😃"; HWTEST_F() local 3173 std::string input = "😃a"; HWTEST_F() local 3205 std::string input = "😃a🤞"; HWTEST_F() local 3237 std::string input = "中a"; HWTEST_F() local 3269 std::string input = "中aÿ"; HWTEST_F() local [all...] |