@@ -93,11 +93,11 @@ module stdlib_system
9393 logical , parameter , public :: ISWIN = .false.
9494#endif
9595
96- public :: joinpath
96+ public :: join_path
9797public :: operator (/ )
98- public :: splitpath
99- public :: basename
100- public :: dirname
98+ public :: split_path
99+ public :: base_name
100+ public :: dir_name
101101
102102! ! version: experimental
103103! !
@@ -565,12 +565,12 @@ end function process_get_ID
565565
566566end interface
567567
568- interface joinpath
568+ interface join_path
569569 ! ! version: experimental
570570 ! !
571571 ! !### Summary
572572 ! ! 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 ))
574574 ! !
575575 module pure function join2(p1, p2) result(path)
576576 character (:), allocatable :: path
@@ -581,7 +581,7 @@ module pure function joinarr(p) result(path)
581581 character (:), allocatable :: path
582582 character (* ), intent (in ) :: p(:)
583583 end function joinarr
584- end interface joinpath
584+ end interface join_path
585585
586586interface operator (/ )
587587 ! ! version: experimental
@@ -596,54 +596,54 @@ module pure function join_op(p1, p2) result(path)
596596 end function join_op
597597end interface operator (/ )
598598
599- interface splitpath
599+ interface split_path
600600 ! ! version: experimental
601601 ! !
602602 ! !### Summary
603603 ! ! splits the path immediately following the final path-separator
604604 ! ! 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 ))
606606 ! !
607607 ! !### Description
608608 ! ! If the path is empty `head`='.' and tail=''
609609 ! ! If the path only consists of separators, `head` is set to the separator and tail is empty
610610 ! ! If the path is a root directory, `head` is set to that directory and tail is empty
611611 ! ! `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 )
613613 character (* ), intent (in ) :: p
614614 character (:), allocatable , intent (out ) :: head, tail
615- end subroutine splitpath
616- end interface splitpath
615+ end subroutine split_path
616+ end interface split_path
617617
618- interface basename
618+ interface base_name
619619 ! ! version: experimental
620620 ! !
621621 ! !### 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 ))
624624 ! !
625625 ! !### 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)
628628 character (:), allocatable :: base
629629 character (* ), intent (in ) :: p
630- end function basename
631- end interface basename
630+ end function base_name
631+ end interface base_name
632632
633- interface dirname
633+ interface dir_name
634634 ! ! version: experimental
635635 ! !
636636 ! !### Summary
637637 ! ! 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 ))
639639 ! !
640640 ! !### 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)
643643 character (:), allocatable :: base
644644 character (* ), intent (in ) :: p
645- end function dirname
646- end interface dirname
645+ end function dir_name
646+ end interface dir_name
647647
648648
649649contains
0 commit comments