gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_string::strhead Interface Reference

Public Member Functions

logical function strhead_cc (whole, head)

Detailed Description

Definition at line 198 of file dc_string.f90.

Member Function/Subroutine Documentation

◆ strhead_cc()

logical function dc_string::strhead::strhead_cc ( character(len = *), intent(in) whole,
character(len = *), intent(in) head )

Check if string starts with head

Compares the beginning of string whole with string head. Returns .true. if they match, .false. otherwise. Returns .false. if whole is shorter than head.

Parameters
[in]wholeString to check
[in]headPrefix string to match
Returns
.true. if whole starts with head

Definition at line 474 of file dc_string.f90.

475 character(len = *), intent(in):: whole
476 character(len = *), intent(in):: head
477 continue
478 result = (len(whole) >= len(head))
479 if (.not. result) return
480 result = (whole(1:len(head)) == head)

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