gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 
)

文字列が指定接頭辞で始まるか確認

文字列 whole の先頭部分(head と同じ文字列長)と 文字列 head とを比較し、同じならば .true. を、 異なる場合には .false. を返します。 whole の文字列長が head の文字列長よりも短い場合には .false. を返します。

Parameters
[in]wholeチェックする文字列
[in]head一致させる接頭辞
Returns
whole が head で始まる場合は .true.

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: