@@ -93,11 +93,11 @@ module stdlib_system
93
93
logical , parameter , public :: ISWIN = .false.
94
94
#endif
95
95
96
- public :: joinpath
96
+ public :: join_path
97
97
public :: operator (/ )
98
- public :: splitpath
99
- public :: basename
100
- public :: dirname
98
+ public :: split_path
99
+ public :: base_name
100
+ public :: dir_name
101
101
102
102
! ! version: experimental
103
103
! !
@@ -565,12 +565,12 @@ end function process_get_ID
565
565
566
566
end interface
567
567
568
- interface joinpath
568
+ interface join_path
569
569
! ! version: experimental
570
570
! !
571
571
! !### Summary
572
572
! ! join the paths provided according to the OS-specific path-separator
573
- ! ! ([Specification](../page/specs/stdlib_system.html#joinpath ))
573
+ ! ! ([Specification](../page/specs/stdlib_system.html#join_path ))
574
574
! !
575
575
module pure function join2(p1, p2) result(path)
576
576
character (:), allocatable :: path
@@ -581,7 +581,7 @@ module pure function joinarr(p) result(path)
581
581
character (:), allocatable :: path
582
582
character (* ), intent (in ) :: p(:)
583
583
end function joinarr
584
- end interface joinpath
584
+ end interface join_path
585
585
586
586
interface operator (/ )
587
587
! ! version: experimental
@@ -596,54 +596,54 @@ module pure function join_op(p1, p2) result(path)
596
596
end function join_op
597
597
end interface operator (/ )
598
598
599
- interface splitpath
599
+ interface split_path
600
600
! ! version: experimental
601
601
! !
602
602
! !### Summary
603
603
! ! splits the path immediately following the final path-separator
604
604
! ! separating into typically a directory and a file name.
605
- ! ! ([Specification](../page/specs/stdlib_system.html#splitpath ))
605
+ ! ! ([Specification](../page/specs/stdlib_system.html#split_path ))
606
606
! !
607
607
! !### Description
608
608
! ! If the path is empty `head`='.' and tail=''
609
609
! ! If the path only consists of separators, `head` is set to the separator and tail is empty
610
610
! ! If the path is a root directory, `head` is set to that directory and tail is empty
611
611
! ! `head` ends with a path-separator iff the path appears to be a root directory or a child of the root directory
612
- module subroutine splitpath (p , head , tail )
612
+ module subroutine split_path (p , head , tail )
613
613
character (* ), intent (in ) :: p
614
614
character (:), allocatable , intent (out ) :: head, tail
615
- end subroutine splitpath
616
- end interface splitpath
615
+ end subroutine split_path
616
+ end interface split_path
617
617
618
- interface basename
618
+ interface base_name
619
619
! ! version: experimental
620
620
! !
621
621
! !### Summary
622
- ! ! returns the basename (last component) of the provided path
623
- ! ! ([Specification](../page/specs/stdlib_system.html#basename ))
622
+ ! ! returns the base name (last component) of the provided path
623
+ ! ! ([Specification](../page/specs/stdlib_system.html#base_name ))
624
624
! !
625
625
! !### Description
626
- ! ! The value returned is the `tail` of the interface `splitpath `
627
- module function basename (p ) result(base)
626
+ ! ! The value returned is the `tail` of the interface `split_path `
627
+ module function base_name (p ) result(base)
628
628
character (:), allocatable :: base
629
629
character (* ), intent (in ) :: p
630
- end function basename
631
- end interface basename
630
+ end function base_name
631
+ end interface base_name
632
632
633
- interface dirname
633
+ interface dir_name
634
634
! ! version: experimental
635
635
! !
636
636
! !### Summary
637
637
! ! returns everything but the last component of the provided path
638
- ! ! ([Specification](../page/specs/stdlib_system.html#dirname ))
638
+ ! ! ([Specification](../page/specs/stdlib_system.html#dir_name ))
639
639
! !
640
640
! !### Description
641
- ! ! The value returned is the `head` of the interface `splitpath `
642
- module function dirname (p ) result(base)
641
+ ! ! The value returned is the `head` of the interface `split_path `
642
+ module function dir_name (p ) result(base)
643
643
character (:), allocatable :: base
644
644
character (* ), intent (in ) :: p
645
- end function dirname
646
- end interface dirname
645
+ end function dir_name
646
+ end interface dir_name
647
647
648
648
649
649
contains
0 commit comments