gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_string::toupper Interface Reference

Public Member Functions

subroutine cupper (ch)
 

Detailed Description

Definition at line 183 of file dc_string.f90.

Member Function/Subroutine Documentation

◆ cupper()

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

Convert string to uppercase (in-place)

Converts all lowercase letters in ch to uppercase. Non-alphabetic characters and already uppercase characters are unchanged.

Parameters
[in,out]chString to convert

Definition at line 1729 of file dc_string.f90.

1730 character(len = *), intent(inout):: ch
1731 integer:: i, lch, idx
1732 continue
1733 lch = len(ch)
1734 do, i = 1, lch
1735 idx = ichar(ch(i:i))
1736 if (97 <= idx .and. idx <= 122) then
1737 ch(i:i)=char(idx - 32)
1738 end if
1739 end do

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