dc_string::toupper Interface Reference

Private Member Functions

subroutine cupper (ch)
 

Detailed Description

Definition at line 134 of file dc_string.f90.

Member Function/Subroutine Documentation

◆ cupper()

subroutine dc_string::toupper::cupper ( character(len = *), intent(inout)  ch)
private

Definition at line 1350 of file dc_string.f90.

1350  !
1351  ! 文字列 ch に英字が含まれる場合、その英字を大文字に変換して ch
1352  ! に返します。 英字でない文字や既に大文字になっている文字は
1353  ! そのまま返します。
1354  !
1355  character(len = *), intent(inout):: ch
1356  integer:: i, lch, idx
1357  continue
1358  lch = len(ch)
1359  do, i = 1, lch
1360  idx = ichar(ch(i:i))
1361  if (97 <= idx .and. idx <= 122) then
1362  ch(i:i)=char(idx - 32)
1363  end if
1364  end do

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