mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
Rename nsurl_enquire to nsurl_has_component.
svn path=/trunk/netsurf/; revision=13183
This commit is contained in:
parent
07309888d6
commit
714f07c48b
@ -322,7 +322,7 @@ void fetch_curl_finalise(lwc_string *scheme)
|
|||||||
|
|
||||||
bool fetch_curl_can_fetch(const nsurl *url)
|
bool fetch_curl_can_fetch(const nsurl *url)
|
||||||
{
|
{
|
||||||
return nsurl_enquire(url, NSURL_HOST);
|
return nsurl_has_component(url, NSURL_HOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -724,10 +724,10 @@ nserror llcache_object_retrieve(nsurl *url, uint32_t flags,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Look for a query segment */
|
/* Look for a query segment */
|
||||||
has_query = nsurl_enquire(url, NSURL_QUERY);
|
has_query = nsurl_has_component(url, NSURL_QUERY);
|
||||||
|
|
||||||
/* Get rid of any url fragment */
|
/* Get rid of any url fragment */
|
||||||
if (nsurl_enquire(url, NSURL_FRAGMENT)) {
|
if (nsurl_has_component(url, NSURL_FRAGMENT)) {
|
||||||
error = nsurl_defragment(url, &defragmented_url);
|
error = nsurl_defragment(url, &defragmented_url);
|
||||||
if (error != NSERROR_OK)
|
if (error != NSERROR_OK)
|
||||||
return error;
|
return error;
|
||||||
|
@ -794,7 +794,7 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
|
|||||||
lwc_string_unref(bw->frag_id);
|
lwc_string_unref(bw->frag_id);
|
||||||
bw->frag_id = NULL;
|
bw->frag_id = NULL;
|
||||||
|
|
||||||
if (nsurl_enquire(nsurl, NSURL_FRAGMENT)) {
|
if (nsurl_has_component(nsurl, NSURL_FRAGMENT)) {
|
||||||
bool same_url = false;
|
bool same_url = false;
|
||||||
|
|
||||||
bw->frag_id = nsurl_get_component(nsurl, NSURL_FRAGMENT);
|
bw->frag_id = nsurl_get_component(nsurl, NSURL_FRAGMENT);
|
||||||
@ -811,7 +811,8 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
|
|||||||
* don't bother to fetch, just update the window.
|
* don't bother to fetch, just update the window.
|
||||||
*/
|
*/
|
||||||
if (same_url && fetch_is_post == false &&
|
if (same_url && fetch_is_post == false &&
|
||||||
nsurl_enquire(nsurl, NSURL_QUERY) == false) {
|
nsurl_has_component(nsurl, NSURL_QUERY) ==
|
||||||
|
false) {
|
||||||
nsurl_unref(nsurl);
|
nsurl_unref(nsurl);
|
||||||
if (nsref != NULL)
|
if (nsref != NULL)
|
||||||
nsurl_unref(nsref);
|
nsurl_unref(nsref);
|
||||||
|
@ -1482,7 +1482,7 @@ lwc_string *nsurl_get_component(const nsurl *url, nsurl_component part)
|
|||||||
|
|
||||||
|
|
||||||
/* exported interface, documented in nsurl.h */
|
/* exported interface, documented in nsurl.h */
|
||||||
bool nsurl_enquire(const nsurl *url, nsurl_component part)
|
bool nsurl_has_component(const nsurl *url, nsurl_component part)
|
||||||
{
|
{
|
||||||
assert(url != NULL);
|
assert(url != NULL);
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ lwc_string *nsurl_get_component(const nsurl *url, nsurl_component part);
|
|||||||
* NSURL_QUERY
|
* NSURL_QUERY
|
||||||
* NSURL_FRAGMENT
|
* NSURL_FRAGMENT
|
||||||
*/
|
*/
|
||||||
bool nsurl_enquire(const nsurl *url, nsurl_component part);
|
bool nsurl_has_component(const nsurl *url, nsurl_component part);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user