Home
last modified time | relevance | path

Searched refs:parsed (Results 1 – 25 of 128) sorted by relevance

123456

/external/chromium/googleurl/src/
Durl_parse_file.cc79 Parsed* parsed) { in DoParseUNC() argument
86 parsed->host = Component(after_slashes, host_len); in DoParseUNC()
88 parsed->host.reset(); in DoParseUNC()
89 parsed->path.reset(); in DoParseUNC()
98 parsed->host.reset(); in DoParseUNC()
100 &parsed->path, &parsed->query, &parsed->ref); in DoParseUNC()
112 parsed->host = MakeRange(after_slashes, next_slash); in DoParseUNC()
114 parsed->host.reset(); in DoParseUNC()
117 &parsed->path, &parsed->query, &parsed->ref); in DoParseUNC()
119 parsed->path.reset(); in DoParseUNC()
[all …]
Durl_canon_stdurl.cc42 const url_parse::Parsed& parsed, in DoCanonicalizeStandardURL() argument
47 bool success = CanonicalizeScheme(source.scheme, parsed.scheme, in DoCanonicalizeStandardURL()
52 if (parsed.username.is_valid() || parsed.password.is_valid() || in DoCanonicalizeStandardURL()
53 parsed.host.is_nonempty() || parsed.port.is_valid()) { in DoCanonicalizeStandardURL()
57 if (parsed.scheme.is_valid()) { in DoCanonicalizeStandardURL()
63 success &= CanonicalizeUserInfo(source.username, parsed.username, in DoCanonicalizeStandardURL()
64 source.password, parsed.password, in DoCanonicalizeStandardURL()
69 success &= CanonicalizeHost(source.host, parsed.host, in DoCanonicalizeStandardURL()
73 if (!parsed.host.is_nonempty()) in DoCanonicalizeStandardURL()
79 success &= CanonicalizePort(source.port, parsed.port, default_port, in DoCanonicalizeStandardURL()
[all …]
Durl_parse.cc89 Parsed* parsed) { in DoParseAfterScheme() argument
110 DoParseAuthority(spec, authority, &parsed->username, &parsed->password, in DoParseAfterScheme()
111 &parsed->host, &parsed->port); in DoParseAfterScheme()
112 ParsePath(spec, full_path, &parsed->path, &parsed->query, &parsed->ref); in DoParseAfterScheme()
316 void DoParseStandardURL(const CHAR* spec, int spec_len, Parsed* parsed) { in DoParseStandardURL() argument
324 if (DoExtractScheme(spec, spec_len, &parsed->scheme)) { in DoParseStandardURL()
325 after_scheme = parsed->scheme.end() + 1; // Skip past the colon. in DoParseStandardURL()
330 parsed->scheme.reset(); in DoParseStandardURL()
333 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); in DoParseStandardURL()
339 void DoParsePathURL(const CHAR* spec, int spec_len, Parsed* parsed) { in DoParsePathURL() argument
[all …]
Durl_parse_unittest.cc158 url_parse::Parsed parsed; in TEST() local
159 url_parse::ParseStandardURL(length_cases[i], true_length, &parsed); in TEST()
161 EXPECT_EQ(true_length, parsed.Length()); in TEST()
219 url_parse::Parsed parsed; in TEST() local
221 url_parse::ParseFileURL(count_cases[i].url, length, &parsed); in TEST()
223 url_parse::ParseStandardURL(count_cases[i].url, length, &parsed); in TEST()
225 int chars_before = parsed.CountCharactersBefore( in TEST()
332 url_parse::Parsed parsed; in TEST() local
335 url_parse::ParseStandardURL(url, static_cast<int>(strlen(url)), &parsed); in TEST()
336 int port = url_parse::ParsePort(url, parsed.port); in TEST()
[all …]
Durl_canon_pathurl.cc43 const url_parse::Parsed& parsed, in DoCanonicalizePathURL() argument
47 bool success = CanonicalizeScheme(source.scheme, parsed.scheme, in DoCanonicalizePathURL()
57 if (parsed.path.is_valid()) { in DoCanonicalizePathURL()
62 int end = parsed.path.end(); in DoCanonicalizePathURL()
63 for (int i = parsed.path.begin; i < end; i++) { in DoCanonicalizePathURL()
87 const url_parse::Parsed& parsed, in CanonicalizePathURL() argument
91 URLComponentSource<char>(spec), parsed, output, new_parsed); in CanonicalizePathURL()
96 const url_parse::Parsed& parsed, in CanonicalizePathURL() argument
100 URLComponentSource<char16>(spec), parsed, output, new_parsed); in CanonicalizePathURL()
109 url_parse::Parsed parsed(base_parsed); in ReplacePathURL() local
[all …]
Durl_canon_mailtourl.cc44 const url_parse::Parsed& parsed, in DoCanonicalizeMailtoURL() argument
64 if (parsed.path.is_valid()) { in DoCanonicalizeMailtoURL()
70 int end = parsed.path.end(); in DoCanonicalizeMailtoURL()
71 for (int i = parsed.path.begin; i < end; ++i) { in DoCanonicalizeMailtoURL()
86 CanonicalizeQuery(source.query, parsed.query, NULL, in DoCanonicalizeMailtoURL()
96 const url_parse::Parsed& parsed, in CanonicalizeMailtoURL() argument
100 URLComponentSource<char>(spec), parsed, output, new_parsed); in CanonicalizeMailtoURL()
105 const url_parse::Parsed& parsed, in CanonicalizeMailtoURL() argument
109 URLComponentSource<char16>(spec), parsed, output, new_parsed); in CanonicalizeMailtoURL()
118 url_parse::Parsed parsed(base_parsed); in ReplaceMailtoURL() local
[all …]
Durl_canon_fileurl.cc115 const url_parse::Parsed& parsed, in DoCanonicalizeFileURL() argument
135 bool success = CanonicalizeHost(source.host, parsed.host, in DoCanonicalizeFileURL()
137 success &= DoFileCanonicalizePath<CHAR, UCHAR>(source.path, parsed.path, in DoCanonicalizeFileURL()
139 CanonicalizeQuery(source.query, parsed.query, query_converter, in DoCanonicalizeFileURL()
143 CanonicalizeRef(source.ref, parsed.ref, output, &new_parsed->ref); in DoCanonicalizeFileURL()
152 const url_parse::Parsed& parsed, in CanonicalizeFileURL() argument
157 URLComponentSource<char>(spec), parsed, query_converter, in CanonicalizeFileURL()
163 const url_parse::Parsed& parsed, in CanonicalizeFileURL() argument
168 URLComponentSource<char16>(spec), parsed, query_converter, in CanonicalizeFileURL()
195 url_parse::Parsed parsed(base_parsed); in ReplaceFileURL() local
[all …]
Durl_util_unittest.cc70 url_parse::Parsed parsed; in TEST() local
77 url_util::ReplaceComponents(NULL, 0, parsed, replacements, NULL, &output, in TEST()
79 url_util::ReplaceComponents("", 0, parsed, replacements, NULL, &output, in TEST()
83 url_util::ReplaceComponents(NULL, 0, parsed, replacements, NULL, &output, in TEST()
85 url_util::ReplaceComponents("", 0, parsed, replacements, NULL, &output, in TEST()
89 url_util::ReplaceComponents(NULL, 0, parsed, replacements, NULL, &output, in TEST()
91 url_util::ReplaceComponents("", 0, parsed, replacements, NULL, &output, in TEST()
93 url_util::ReplaceComponents(NULL, 0, parsed, replacements, NULL, &output, in TEST()
95 url_util::ReplaceComponents("", 0, parsed, replacements, NULL, &output, in TEST()
Durl_canon_internal.cc307 url_parse::Parsed* parsed) { in SetupOverrideComponents() argument
313 &source->scheme, &parsed->scheme); in SetupOverrideComponents()
315 &source->username, &parsed->username); in SetupOverrideComponents()
317 &source->password, &parsed->password); in SetupOverrideComponents()
321 &source->host, &parsed->host); in SetupOverrideComponents()
322 if (parsed->host.len == -1) in SetupOverrideComponents()
323 parsed->host.len = 0; in SetupOverrideComponents()
326 &source->port, &parsed->port); in SetupOverrideComponents()
328 &source->path, &parsed->path); in SetupOverrideComponents()
330 &source->query, &parsed->query); in SetupOverrideComponents()
[all …]
Durl_parse.h218 void ParseStandardURL(const char* url, int url_len, Parsed* parsed);
219 void ParseStandardURL(const char16* url, int url_len, Parsed* parsed);
225 void ParsePathURL(const char* url, int url_len, Parsed* parsed);
226 void ParsePathURL(const char16* url, int url_len, Parsed* parsed);
230 void ParseFileURL(const char* url, int url_len, Parsed* parsed);
231 void ParseFileURL(const char16* url, int url_len, Parsed* parsed);
234 void ParseMailtoURL(const char* url, int url_len, Parsed* parsed);
235 void ParseMailtoURL(const char16* url, int url_len, Parsed* parsed);
Durl_canon_internal_file.h105 const ParsedURL& parsed, in DoCanonicalizeFileURL() argument
133 source.host, parsed.host, output, &new_parsed->host); in DoCanonicalizeFileURL()
141 int after_drive = FileDoDriveSpec(source.path, parsed.path.begin, in DoCanonicalizeFileURL()
142 parsed.path.end(), output); in DoCanonicalizeFileURL()
145 FileDoPath<CHAR, UCHAR>(source.path, after_drive, parsed.path.end(), output); in DoCanonicalizeFileURL()
150 source.query, parsed.query, output, &new_parsed->query); in DoCanonicalizeFileURL()
152 source.ref, parsed.ref, output, &new_parsed->ref); in DoCanonicalizeFileURL()
Durl_canon_ip.cc347 IPv6Parsed* parsed) { in DoParseIPv6() argument
349 parsed->reset(); in DoParseIPv6()
381 parsed->index_of_contraction == parsed->num_hex_components))) in DoParseIPv6()
388 if (parsed->num_hex_components >= 8) in DoParseIPv6()
391 parsed->hex_components[parsed->num_hex_components++] = in DoParseIPv6()
402 if (parsed->index_of_contraction != -1) in DoParseIPv6()
404 parsed->index_of_contraction = parsed->num_hex_components; in DoParseIPv6()
423 parsed->ipv4_component = url_parse::Component( in DoParseIPv6()
443 bool CheckIPv6ComponentsSize(const IPv6Parsed& parsed, in CheckIPv6ComponentsSize() argument
446 int num_bytes_without_contraction = parsed.num_hex_components * 2; in CheckIPv6ComponentsSize()
[all …]
Durl_util.cc273 const url_parse::Parsed& parsed, in DoReplaceComponents() argument
284 CompareSchemeComponent(spec, parsed.scheme, kFileScheme)) || in DoReplaceComponents()
290 return url_canon::ReplaceFileURL(spec, parsed, replacements, in DoReplaceComponents()
296 IsStandard(spec, spec_len, parsed.scheme)) || in DoReplaceComponents()
302 return url_canon::ReplaceStandardURL(spec, parsed, replacements, in DoReplaceComponents()
308 CompareSchemeComponent(spec, parsed.scheme, kMailtoScheme)) || in DoReplaceComponents()
314 return url_canon::ReplaceMailtoURL(spec, parsed, replacements, in DoReplaceComponents()
318 return url_canon::ReplacePathURL(spec, parsed, replacements, in DoReplaceComponents()
408 const url_parse::Parsed& parsed, in ReplaceComponents() argument
413 return DoReplaceComponents(spec, spec_len, parsed, replacements, in ReplaceComponents()
[all …]
Durl_canon_unittest.cc797 url_parse::Parsed parsed; in TEST() local
798 url_parse::ParseStandardURL(user_info_cases[i].input, url_len, &parsed); in TEST()
804 parsed.username, in TEST()
806 parsed.password, in TEST()
823 parsed.username, in TEST()
825 parsed.password, in TEST()
1224 url_parse::Parsed parsed; in TEST() local
1225 url_parse::ParseStandardURL(cases[i].input, url_len, &parsed); in TEST()
1231 cases[i].input, url_len, parsed, NULL, &output, &out_parsed); in TEST()
1254 url_parse::Parsed parsed; in TEST() local
[all …]
/external/chromium/net/http/
Dhttp_response_headers_unittest.cc54 scoped_refptr<HttpResponseHeaders> parsed = in TestCommon() local
56 parsed->GetNormalizedHeaders(&headers); in TestCommon()
66 EXPECT_EQ(test.expected_response_code, parsed->response_code()); in TestCommon()
68 EXPECT_TRUE(test.expected_parsed_version == parsed->GetParsedHttpVersion()); in TestCommon()
69 EXPECT_TRUE(test.expected_version == parsed->GetHttpVersion()); in TestCommon()
284 scoped_refptr<HttpResponseHeaders> parsed = new HttpResponseHeaders(headers); in TEST() local
287 EXPECT_TRUE(parsed->GetNormalizedHeader("cache-control", &value)); in TEST()
475 scoped_refptr<HttpResponseHeaders> parsed = new HttpResponseHeaders(headers); in TEST() local
479 EXPECT_TRUE(parsed->EnumerateHeader(&iter, "cache-control", &value)); in TEST()
481 EXPECT_TRUE(parsed->EnumerateHeader(&iter, "cache-control", &value)); in TEST()
[all …]
/external/chromium/net/base/
Dnet_util_unittest.cc1374 url_parse::Parsed parsed; in TEST() local
1378 L"ja", false, UnescapeRule::NONE, &parsed, NULL, NULL); in TEST()
1382 formatted.substr(parsed.username.begin, parsed.username.len)); in TEST()
1384 formatted.substr(parsed.password.begin, parsed.password.len)); in TEST()
1386 formatted.substr(parsed.host.begin, parsed.host.len)); in TEST()
1387 EXPECT_EQ(L"8080", formatted.substr(parsed.port.begin, parsed.port.len)); in TEST()
1389 formatted.substr(parsed.path.begin, parsed.path.len)); in TEST()
1391 formatted.substr(parsed.query.begin, parsed.query.len)); in TEST()
1392 EXPECT_EQ(L"\x30B0", formatted.substr(parsed.ref.begin, parsed.ref.len)); in TEST()
1398 L"ja", false, UnescapeRule::NORMAL, &parsed, NULL, NULL); in TEST()
[all …]
Dnet_util.cc1388 const url_parse::Parsed& parsed = url.parsed_for_possibly_invalid_spec(); in FormatUrl() local
1395 spec.begin() + parsed.CountCharactersBefore(url_parse::Parsed::USERNAME, in FormatUrl()
1398 new_parsed->scheme = parsed.scheme; in FormatUrl()
1407 (parsed.username.is_nonempty() || parsed.password.is_nonempty())) { in FormatUrl()
1408 if (parsed.username.is_nonempty() && parsed.password.is_nonempty()) { in FormatUrl()
1412 static_cast<size_t>(parsed.password.end())) { in FormatUrl()
1414 (parsed.username.len + parsed.password.len + 2); in FormatUrl()
1416 static_cast<size_t>(parsed.username.begin)) { in FormatUrl()
1421 parsed.username.is_nonempty() ? &parsed.username : &parsed.password; in FormatUrl()
1434 AppendFormattedComponent(spec, parsed.username, unescape_rules, &url_string, in FormatUrl()
[all …]
/external/webkit/WebKit/chromium/public/
DWebURL.h55 WebURL(const WebCString& spec, const url_parse::Parsed& parsed, bool isValid) in WebURL() argument
57 , m_parsed(parsed) in WebURL()
77 void assign(const WebCString& spec, const url_parse::Parsed& parsed, bool isValid) in assign() argument
80 m_parsed = parsed; in assign()
89 const url_parse::Parsed& parsed() const in parsed() function
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/
DLazyDERSequence.java10 private boolean parsed = false; field in LazyDERSequence
29 parsed = true; in parse()
34 if (!parsed) in getObjectAt()
44 if (parsed) in getObjects()
/external/webkit/SunSpider/tests/parse-only/
Dmootools-1.2.2-core-nc.js2525 var parsed = Selectors.Utils.parseSelector(selector);
2526 return (parsed) ? Selectors.Utils.filter(this, parsed, {}) : true;
2531 var Selectors = {Cache: {nth: {}, parsed: {}}}; property
2552 var parsed = argument.match(/^([+-]?\d*)?([a-z]+)?([+-]?\d*)?$/);
2553 if (!parsed) return false;
2554 var inta = parseInt(parsed[1], 10);
2556 var special = parsed[2] || false;
2557 var b = parseInt(parsed[3], 10) || 0;
2567 case 'n': parsed = {a: a, b: b, special: 'n'}; break;
2568 case 'odd': parsed = {a: 2, b: 0, special: 'n'}; break;
[all …]
/external/bluetooth/glib/glib/
Dgoption.c1214 gboolean *parsed) in parse_short_option() argument
1280 *parsed = TRUE; in parse_short_option()
1296 gboolean *parsed) in parse_long_option() argument
1320 *parsed = TRUE; in parse_long_option()
1354 *parsed = TRUE; in parse_long_option()
1372 *parsed = TRUE; in parse_long_option()
1393 *parsed = TRUE; in parse_long_option()
1408 gboolean *parsed) in parse_remaining_arg() argument
1429 *parsed = TRUE; in parse_remaining_arg()
1605 gboolean parsed = FALSE; in g_option_context_parse() local
[all …]
/external/libvpx/examples/includes/PHP-Markdown-Extra-1.2.3/
Dmarkdown.php1873 $parsed = ""; # Parsed text that will be returned.
1897 $parsed .= $parts[0]; # Text before current tag.
1919 $parsed .= $tag . $matches[0];
1924 $parsed .= $tag;
1934 $parsed .= $tag;
1943 $parsed .= $tag . $matches[0];
1948 $parsed .= $tag;
1959 preg_match($newline_before_re, $parsed) &&
1968 $parsed .= "\n\n$block_text\n\n";
1982 $parsed .= $block_text;
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc1218 FileDescriptorProto parsed; in TEST_F() local
1219 parser_->Parse(input_.get(), &parsed); in TEST_F()
1226 parsed.set_name("google/protobuf/unittest.proto"); in TEST_F()
1233 const FileDescriptor* actual = pool_.BuildFile(parsed); in TEST_F()
1234 parsed.Clear(); in TEST_F()
1235 actual->CopyTo(&parsed); in TEST_F()
1242 SortMessages(&parsed); in TEST_F()
1247 EXPECT_EQ(expected.DebugString(), parsed.DebugString()); in TEST_F()
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-death-test.cc688 ::std::vector< ::std::string> parsed; in SplitString()
693 parsed.push_back(str.substr(pos)); in SplitString()
696 parsed.push_back(str.substr(pos, colon - pos)); in SplitString()
700 dest->swap(parsed); in SplitString()
714 const long parsed = strtol(str.c_str(), &endptr, 10); // NOLINT in ParsePositiveInt() local
715 if (*endptr == '\0' && parsed <= INT_MAX) { in ParsePositiveInt()
716 *number = static_cast<int>(parsed); in ParsePositiveInt()
/external/libvpx/nestegg/
DTODO12 - Optionally build a Cue index as Clusters are parsed.
14 - Avoid building a list of Clusters as they are parsed and retain only the
15 last one parsed.

123456