Skip to content

Commit

Permalink
Rename to_upper() to as_upper()
Browse files Browse the repository at this point in the history
  • Loading branch information
aradi committed Mar 23, 2024
1 parent 3ac882d commit 25ff282
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/fortuno/chartypes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

!> Contains various types related to character representations.
module fortuno_chartypes
use fortuno_utils, only : as_char, nl, string, to_upper
use fortuno_utils, only : as_char, as_upper, nl, string
implicit none

private
Expand Down Expand Up @@ -202,7 +202,7 @@ subroutine get_named_items_as_char_(items, repr, itemsep, namesep, capitalizenam
associate(name => items(iitem)%name, val => valuestrings(iitem)%content)
reprlen = len(name)
repr(pos : pos + reprlen - 1) = name
if (capitalizename) repr(pos:pos) = to_upper(repr(pos:pos))
if (capitalizename) repr(pos:pos) = as_upper(repr(pos:pos))
pos = pos + reprlen
repr(pos : pos + nameseplen - 1) = namesep
pos = pos + nameseplen
Expand Down
6 changes: 3 additions & 3 deletions src/fortuno/utils.f90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module fortuno_utils
public :: nl
public :: stderr, stdout
public :: string, string_list
public :: to_upper
public :: as_upper

!> New line character
character(*), parameter :: nl = new_line("")
Expand Down Expand Up @@ -98,7 +98,7 @@ end function basename


!> Converts a string to upper-case.
pure function to_upper(str) result(upperstr)
pure function as_upper(str) result(upperstr)

!> String to convert
character(*), intent(in) :: str
Expand All @@ -123,6 +123,6 @@ pure function to_upper(str) result(upperstr)
end if
end do

end function to_upper
end function as_upper

end module fortuno_utils

0 comments on commit 25ff282

Please sign in to comment.