@@ -59,7 +59,7 @@ module stdlib_strings
59
59
module procedure :: ends_with_char_char
60
60
end interface ends_with
61
61
62
- ! > Slices the input string to return a new string
62
+ ! > Extracts characters from the input string to return a new string
63
63
! >
64
64
! > Version: experimental
65
65
interface slice
@@ -299,9 +299,9 @@ elemental function ends_with_string_string(string, substring) result(match)
299
299
300
300
end function ends_with_string_string
301
301
302
- ! > Slices the region between the input 'first' and 'last' index (both inclusive)
302
+ ! > Extract the characters from the region between 'first' and 'last' index (both inclusive)
303
303
! > of the input 'string' by taking strides of length 'stride'
304
- ! > Returns a new string_type object
304
+ ! > Returns a new string
305
305
elemental function slice_string (string , first , last , stride ) result(sliced_string)
306
306
type (string_type), intent (in ) :: string
307
307
integer , intent (in ), optional :: first, last, stride
@@ -311,7 +311,7 @@ elemental function slice_string(string, first, last, stride) result(sliced_strin
311
311
312
312
end function slice_string
313
313
314
- ! > Slices the region between the input 'first' and 'last' index (both inclusive)
314
+ ! > Extract the characters from the region between 'first' and 'last' index (both inclusive)
315
315
! > of the input 'string' by taking strides of length 'stride'
316
316
! > Returns a new string
317
317
pure function slice_char (string , first , last , stride ) result(sliced_string)
0 commit comments