gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_string::tolower Interface Reference

Public Member Functions

subroutine clower (ch)
 

Detailed Description

Definition at line 186 of file dc_string.f90.

Member Function/Subroutine Documentation

◆ clower()

subroutine dc_string::tolower::clower ( character(len = *), intent(inout)  ch)

文字列を小文字に変換(上書き)

文字列 ch に英字が含まれる場合、その英字を小文字に変換して ch に返します。 英字でない文字や既に小文字になっている文字はそのまま返します。

Parameters
[in,out]ch変換する文字列

Definition at line 1756 of file dc_string.f90.

1757 character(len = *), intent(inout):: ch
1758 integer:: i, lch, idx
1759 continue
1760 lch = len(ch)
1761 do, i = 1, lch
1762 idx = ichar(ch(i:i))
1763 if (65 <= idx .and. idx <= 90) then
1764 ch(i:i)=char(idx + 32)
1765 end if
1766 end do

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