dc_string::str_to_logical Interface Reference

Private Member Functions

logical function str2bool (string)
 

Detailed Description

Definition at line 67 of file dc_string.f90.

Member Function/Subroutine Documentation

◆ str2bool()

logical function dc_string::str_to_logical::str2bool ( character(len = *), intent(in)  string)
private

Definition at line 515 of file dc_string.f90.

515  !
516  ! string で与えられる文字型変数を論理型にして返します。 string
517  ! が空、 または 0、 0.0、 0.0D0、 0.0d0、 .false.、 .FALSE.、 f、
518  ! F、 false、 FALSE の場合には <tt>.false.</tt> が返ります。
519  ! それ以外の場合には <tt>.true.</tt> が返ります。
520  !
521  character(len = *), intent(in):: string
522 
523  continue
524 
525  select case(string)
526  case ("", "0", "0.0", "0.0D0", "0.0d0", ".false.", ".FALSE.", &
527  & "f", "F", "false", "FALSE")
528  result = .false.
529  case default
530  result = .true.
531  end select
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition: dc_types.f90:118

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