gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_url::operator(.onthesamefile.) Interface Reference

Public Member Functions

logical function urlonthesamefile (url_a, url_b)
 

Detailed Description

Definition at line 92 of file dc_url.f90.

Member Function/Subroutine Documentation

◆ urlonthesamefile()

logical function dc_url::operator(.onthesamefile.)::urlonthesamefile ( character(len = *), intent(in)  url_a,
character(len = *), intent(in)  url_b 
)

Check if two variable URLs point to the same file

Determines whether the variable URL given as the first argument and the variable URL given as the second argument point to the same file. Returns .true. if they point to the same file, .false. if they point to different files.

Parameters
[in]url_aFirst variable URL
[in]url_bSecond variable URL
Returns
.true. if same file, .false. otherwise

Definition at line 549 of file dc_url.f90.

550 use dc_string
551 use dc_types, only: string
552 character(len = *), intent(in) :: url_a
553 character(len = *), intent(in) :: url_b
554 character(len = STRING) :: filepart_a
555 character(len = STRING) :: filepart_b
556 call urlsplit(url_a, file=filepart_a)
557 call urlsplit(url_b, file=filepart_b)
558 result = (filepart_a == filepart_b)
Handling character types.
Definition dc_string.f90:83
Provides kind type parameter values.
Definition dc_types.f90:55
integer, parameter, public string
Character length for string
Definition dc_types.f90:137

References dc_types::string.


The documentation for this interface was generated from the following file: