Skip to content

Commit 812b5ed

Browse files
committed
modified the docs to add type(string_type) arguments
1 parent 616040d commit 812b5ed

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/specs/stdlib_system.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,13 @@ Pure function
555555

556556
### Arguments
557557

558-
`p1, p2`: Shall be a character string. It is an `intent(in)` argument.
558+
`p1, p2`: Shall be a character string or `type(string_type)`. It is an `intent(in)` argument.
559559
or
560-
`p`: Shall be a list of character strings. It is an `intent(in)` argument.
560+
`p`: Shall be a list of character strings or list of `type(string_type)`. It is an `intent(in)` argument.
561561

562562
### Return values
563563

564-
The resultant path.
564+
The resultant path, either a character string or `type(string_type)`.
565565

566566
## `operator(/)`
567567

@@ -581,13 +581,13 @@ Pure function.
581581

582582
### Arguments
583583

584-
`lval`: A character string. It is an `intent(in)` argument.
584+
`lval`: A character string or `type(string_type)`. It is an `intent(in)` argument.
585585

586-
`rval`: A character string. It is an `intent(in)` argument.
586+
`rval`: A character string or `type(string_type)`. It is an `intent(in)` argument.
587587

588588
### Result value
589589

590-
The result is an `allocatable` character string
590+
The result is an `allocatable` character string or `type(string_type)`
591591

592592
#### Example
593593

@@ -615,9 +615,9 @@ Subroutine
615615

616616
### Arguments
617617

618-
`p`: A character string containing the path to be split. It is an `intent(in)` argument.
619-
`head`: The first part of the path. It is an `allocatable, intent(out)` argument.
620-
`tail`: The rest part of the path. It is an `allocatable, intent(out)` argument.
618+
`p`: A character string or `type(string_type)` containing the path to be split. It is an `intent(in)` argument.
619+
`head`: The first part of the path. Either a character string or `type(string_type)`. It is an `intent(out)` argument.
620+
`tail`: The rest part of the path. Either a character string or `type(string_type)`. It is an `intent(out)` argument.
621621

622622
### Behavior
623623

@@ -654,15 +654,15 @@ Function
654654

655655
### Arguments
656656

657-
`p`: the path, a character string. It is an `intent(in)` argument.
657+
`p`: the path, a character string or `type(string_type)`. It is an `intent(in)` argument.
658658

659659
### Behavior
660660

661661
- The `tail` of `[[stdlib_system(module):split_path(interface)]]` is exactly what is returned. Same Behavior.
662662

663663
### Return values
664664

665-
A character string.
665+
A character string or `type(string_type)`.
666666

667667
### Example
668668

@@ -689,15 +689,15 @@ Function
689689

690690
### Arguments
691691

692-
`p`: the path, a character string. It is an `intent(in)` argument.
692+
`p`: the path, a character string or `type(string_type)`. It is an `intent(in)` argument.
693693

694694
### Behavior
695695

696696
- The `head` of `[[stdlib_system(module):split_path(interface)]]` is exactly what is returned. Same Behavior.
697697

698698
### Return values
699699

700-
A character string.
700+
A character string or `type(string_type)`.
701701

702702
### Example
703703

0 commit comments

Comments
 (0)