Skip to content

Commit 4d3cd0d

Browse files
committed
added comments to stdlib_string_type.f90. function is elemental or pure (query)??
1 parent 30ea5af commit 4d3cd0d

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/stdlib_string_type.f90

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,30 +91,30 @@ module stdlib_string_type
9191
module procedure :: repeat_string
9292
end interface repeat
9393

94-
!>
95-
!>
94+
!> Convert the character sequence hold by the input string to lower case
9695
!>
96+
!> Elemental or pure ???? Does not return anything
9797
interface to_lower
9898
module procedure :: to_lower_string
9999
end interface to_lower
100100

101+
!> Convert the character sequence hold by the input string to upper case
101102
!>
102-
!>
103-
!>
103+
!> Elemental or pure ???? Does not return anything
104104
interface to_upper
105105
module procedure :: to_upper_string
106106
end interface to_upper
107107

108+
!> Convert the character sequence hold by the input string to title case
108109
!>
109-
!>
110-
!>
110+
!> Elemental or pure ???? Does not return anything
111111
interface to_title
112112
module procedure :: to_title_string
113113
end interface to_title
114114

115-
!>
116-
!>
117-
!>
115+
!> Reverse the character sequence hold by the input string
116+
!>
117+
!> Elemental or pure ???? Does not return anything
118118
interface reverse
119119
module procedure :: reverse_string
120120
end interface reverse
@@ -477,6 +477,7 @@ elemental function repeat_string(string, ncopies) result(repeated_string)
477477
end function repeat_string
478478

479479

480+
!> Convert the character sequence hold by the input string to lower case
480481
elemental function to_lower_string(string) result(lowered_string)
481482
type(string_type), intent(in) :: string
482483
type(string_type) :: lowered_string
@@ -486,6 +487,7 @@ elemental function to_lower_string(string) result(lowered_string)
486487
end function to_lower_string
487488

488489

490+
!> Convert the character sequence hold by the input string to upper case
489491
elemental function to_upper_string(string) result(uppered_string)
490492
type(string_type), intent(in) :: string
491493
type(string_type) :: uppered_string
@@ -495,6 +497,7 @@ elemental function to_upper_string(string) result(uppered_string)
495497
end function to_upper_string
496498

497499

500+
!> Convert the character sequence hold by the input string to title case
498501
elemental function to_title_string(string) result(titled_string)
499502
type(string_type), intent(in) :: string
500503
type(string_type) :: titled_string
@@ -504,6 +507,7 @@ elemental function to_title_string(string) result(titled_string)
504507
end function to_title_string
505508

506509

510+
!> Reverse the character sequence hold by the input string
507511
elemental function reverse_string(string) result(reversed_string)
508512
type(string_type), intent(in) :: string
509513
type(string_type) :: reversed_string

0 commit comments

Comments
 (0)