Lines Matching refs:url_canon
9 #include "url/url_canon.h"
26 using url_canon::CanonHostInfo;
67 result.push_back(url_canon::kHexCharLookup[(bytes[i] >> 4) & 0xf]);
68 result.push_back(url_canon::kHexCharLookup[bytes[i] & 0xf]);
120 void (url_canon::Replacements<CHAR>::*set)(const CHAR*,
122 void (url_canon::Replacements<CHAR>::*clear)(),
123 url_canon::Replacements<CHAR>* rep,
149 url_canon::StdStringCanonOutput output(&out_str);
150 url_canon::AppendUTF8Value(utf_cases[i].input, &output);
162 url_canon::StdStringCanonOutput output(&out_str);
165 url_canon::AppendUTF8Value(0x110000, &output);
204 url_canon::StdStringCanonOutput output(&out_str);
218 url_canon::StdStringCanonOutput output(&out_str);
267 url_canon::ICUCharsetConverter converter(conv.converter());
270 url_canon::StdStringCanonOutput output(&str);
285 url_canon::ICUCharsetConverter converter(conv.converter());
292 url_canon::RawCanonOutput<static_size> output;
327 url_canon::StdStringCanonOutput output1(&out_str);
328 bool success = url_canon::CanonicalizeScheme(scheme_cases[i].input,
339 url_canon::StdStringCanonOutput output2(&out_str);
343 success = url_canon::CanonicalizeScheme(wide_input.c_str(), in_comp,
357 url_canon::StdStringCanonOutput output(&out_str);
359 EXPECT_TRUE(url_canon::CanonicalizeScheme("", url_parse::Component(0, -1),
449 url_canon::StdStringCanonOutput output(&out_str);
451 bool success = url_canon::CanonicalizeHost(host_cases[i].input8, in_comp,
470 url_canon::StdStringCanonOutput output(&out_str);
472 bool success = url_canon::CanonicalizeHost(input16.c_str(), in_comp,
492 url_canon::StdStringCanonOutput output(&out_str);
495 url_canon::CanonicalizeHostVerbose(host_cases[i].input8, in_comp,
519 url_canon::StdStringCanonOutput output(&out_str);
522 url_canon::CanonicalizeHostVerbose(input16.c_str(), in_comp,
621 url_canon::StdStringCanonOutput output1(&out_str1);
622 url_canon::CanonHostInfo host_info;
623 url_canon::CanonicalizeIPAddress(cases[i].input8, component, &output1,
643 url_canon::StdStringCanonOutput output2(&out_str2);
644 url_canon::CanonicalizeIPAddress(input16.c_str(), component, &output2,
776 url_canon::StdStringCanonOutput output1(&out_str1);
777 url_canon::CanonHostInfo host_info;
778 url_canon::CanonicalizeIPAddress(cases[i].input8, component, &output1,
797 url_canon::StdStringCanonOutput output2(&out_str2);
798 url_canon::CanonicalizeIPAddress(input16.c_str(), component, &output2,
815 url_canon::StdStringCanonOutput output1(&out_str1);
816 url_canon::CanonHostInfo host_info;
820 url_canon::CanonicalizeIPAddress(spec, url_parse::Component(),
824 url_canon::CanonicalizeIPAddress(spec, url_parse::Component(0, 0),
861 url_canon::StdStringCanonOutput output1(&out_str);
863 bool success = url_canon::CanonicalizeUserInfo(user_info_cases[i].input,
880 url_canon::StdStringCanonOutput output2(&out_str);
882 success = url_canon::CanonicalizeUserInfo(wide_input.c_str(),
926 url_canon::StdStringCanonOutput output1(&out_str);
927 bool success = url_canon::CanonicalizePort(port_cases[i].input, in_comp,
939 url_canon::StdStringCanonOutput output2(&out_str);
941 success = url_canon::CanonicalizePort(wide_input.c_str(), in_comp,
1031 url_canon::StdStringCanonOutput output(&out_str);
1032 bool success = url_canon::CanonicalizePath(path_cases[i].input8, in_comp,
1048 url_canon::StdStringCanonOutput output(&out_str);
1050 bool success = url_canon::CanonicalizePath(input16.c_str(), in_comp,
1068 url_canon::StdStringCanonOutput output(&out_str);
1069 bool success = url_canon::CanonicalizePath(path_with_null, in_comp,
1117 url_canon::ICUCharsetConverter converter(conv.converter());
1120 url_canon::ICUCharsetConverter* conv_pointer = &converter;
1129 url_canon::StdStringCanonOutput output(&out_str);
1130 url_canon::CanonicalizeQuery(query_cases[i].input8, in_comp,
1143 url_canon::StdStringCanonOutput output(&out_str);
1144 url_canon::CanonicalizeQuery(input16.c_str(), in_comp,
1154 url_canon::StdStringCanonOutput output(&out_str);
1156 url_canon::CanonicalizeQuery("a \x00z\x01", url_parse::Component(0, 5), NULL,
1191 url_canon::StdStringCanonOutput output(&out_str);
1192 url_canon::CanonicalizeRef(ref_cases[i].input8, in_comp,
1209 url_canon::StdStringCanonOutput output(&out_str);
1210 url_canon::CanonicalizeRef(input16.c_str(), in_comp, &output, &out_comp);
1225 url_canon::StdStringCanonOutput output(&out_str);
1226 url_canon::CanonicalizeRef(null_input, null_input_component,
1289 url_canon::StdStringCanonOutput output(&out_str);
1290 bool success = url_canon::CanonicalizeStandardURL(
1320 url_canon::Replacements<char> r;
1321 typedef url_canon::Replacements<char> R; // Clean up syntax.
1335 url_canon::StdStringCanonOutput output(&out_str);
1337 url_canon::ReplaceStandardURL(replace_cases[i].base, parsed,
1354 url_canon::Replacements<char> r;
1357 url_canon::StdStringCanonOutput output1(&out_str1);
1359 url_canon::ReplaceStandardURL(src, parsed, r, NULL, &output1, &new_parsed);
1366 url_canon::StdStringCanonOutput output2(&out_str2);
1367 url_canon::ReplaceStandardURL(src, parsed, r, NULL, &output2, &new_parsed);
1398 url_canon::Replacements<char> r;
1399 typedef url_canon::Replacements<char> R; // Clean up syntax.
1410 url_canon::StdStringCanonOutput output(&out_str);
1412 url_canon::ReplaceFileURL(cur.base, parsed,
1449 url_canon::Replacements<char> r;
1450 typedef url_canon::Replacements<char> R; // Clean up syntax.
1461 url_canon::StdStringCanonOutput output(&out_str);
1463 url_canon::ReplaceFileSystemURL(cur.base, parsed, r, NULL,
1489 url_canon::Replacements<char> r;
1490 typedef url_canon::Replacements<char> R; // Clean up syntax.
1501 url_canon::StdStringCanonOutput output(&out_str);
1503 url_canon::ReplacePathURL(cur.base, parsed,
1541 url_canon::Replacements<char> r;
1542 typedef url_canon::Replacements<char> R;
1553 url_canon::StdStringCanonOutput output(&out_str);
1555 url_canon::ReplaceMailtoURL(cur.base, parsed,
1632 url_canon::StdStringCanonOutput output(&out_str);
1633 bool success = url_canon::CanonicalizeFileURL(cases[i].input, url_len,
1676 url_canon::StdStringCanonOutput output(&out_str);
1677 bool success = url_canon::CanonicalizeFileSystemURL(cases[i].input, url_len,
1712 url_canon::StdStringCanonOutput output(&out_str);
1713 bool success = url_canon::CanonicalizePathURL(path_cases[i].input, url_len,
1770 url_canon::StdStringCanonOutput output(&out_str);
1771 bool success = url_canon::CanonicalizeMailtoURL(cases[i].input, url_len,
1799 EXPECT_EQ(0, url_canon::_itoa_s(12, buf, sizeof(buf) - 1, 10));
1805 EXPECT_EQ(0, url_canon::_itoa_s(1234, buf, sizeof(buf) - 1, 10));
1810 EXPECT_EQ(EINVAL, url_canon::_itoa_s(12345, buf, sizeof(buf) - 1, 10));
1815 EXPECT_EQ(0, url_canon::_itoa_s(12, buf, 10));
1820 EXPECT_EQ(0, url_canon::_itoa_s(12345, buf, 10));
1823 EXPECT_EQ(EINVAL, url_canon::_itoa_s(123456, buf, 10));
1827 EXPECT_EQ(0, url_canon::_itoa_s(1234, buf, sizeof(buf) - 1, 16));
1840 EXPECT_EQ(0, url_canon::_itow_s(12, buf, sizeof(buf) / 2 - 1, 10));
1845 EXPECT_EQ(0, url_canon::_itow_s(1234, buf, sizeof(buf) / 2 - 1, 10));
1850 EXPECT_EQ(EINVAL, url_canon::_itow_s(12345, buf, sizeof(buf) / 2 - 1, 10));
1855 EXPECT_EQ(0, url_canon::_itow_s(12, buf, 10));
1860 EXPECT_EQ(0, url_canon::_itow_s(12345, buf, 10));
1863 EXPECT_EQ(EINVAL, url_canon::_itow_s(123456, buf, 10));
2035 bool succeed_is_rel = url_canon::IsRelativeURL(
2046 url_canon::StdStringCanonOutput output(&resolved);
2049 bool succeed_resolve = url_canon::ResolveRelativeURL(
2084 url_canon::Replacements<base::char16> repl;
2099 url_canon::StdStringCanonOutput repl_output(&repl_str);
2100 url_canon::ReplaceFileURL(src, parsed, repl, NULL, &repl_output, &repl_parsed);