Skip to content

Commit 3777c04

Browse files
committed
renamed stringlist to stringlist_type
1 parent fb3ddd5 commit 3777c04

File tree

7 files changed

+34
-34
lines changed

7 files changed

+34
-34
lines changed

doc/specs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This is and index/directory of the specifications (specs) for each new module/fe
2626
- [stats_distribution_PRNG](./stdlib_stats_distribution_PRNG.html) - Probability Distributions random number generator
2727
- [string\_type](./stdlib_string_type.html) - Basic string support
2828
- [strings](./stdlib_strings.html) - String handling and manipulation routines
29-
- [stringlist](./stdlib_stringlist.html) - 1-Dimensional list of strings
29+
- [stringlist_type](./stdlib_stringlist_type.html) - 1-Dimensional list of strings
3030

3131
## Released/Stable Features & Modules
3232

doc/specs/stdlib_stringlist.md renamed to doc/specs/stdlib_stringlist_type.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: stringlist
2+
title: stringlist type
33
---
44

5-
# `stdlib_stringlist` module (1-D List of Strings)
5+
# `stdlib_stringlist_type` module (1-D List of Strings)
66

77
[TOC]
88

99
## Introduction
1010

11-
The `stdlib_stringlist` module provides with 2 derived types to deal with list of strings.
11+
The `stdlib_stringlist_type` module provides with 2 derived types to deal with list of strings.
1212
`stringlist_type` derived type represents a one-dimensional list of variable-length strings which is compatible with Fortran intrinsic character and `stringlist_type` derived type represents an index to access, modify the elements of a stringlist and insert strings to a stringlist.
1313

1414
## Derived type provided
@@ -47,8 +47,8 @@ Experimental
4747

4848
#### Syntax
4949

50-
For fidx: `res = [[stdlib_stringlist(module):fidx()]] (idx)`.
51-
For bidx: `res = [[stdlib_stringlist(module):bidx()]] (idx)`.
50+
For fidx: `res = [[stdlib_stringlist_type(module):fidx()]] (idx)`.
51+
For bidx: `res = [[stdlib_stringlist_type(module):bidx()]] (idx)`.
5252

5353
#### Status
5454

@@ -71,7 +71,7 @@ The result is of type `stringlist_index_type`.
7171

7272
```fortran
7373
program demo_fidx_bidx
74-
use stdlib_stringlist, only: stringlist_type, stringlist_index_type, fidx, bidx
74+
use stdlib_stringlist_type, only: stringlist_type, stringlist_index_type, fidx, bidx
7575
implicit none
7676
7777
type(stringlist_type) :: stringlist
@@ -106,9 +106,9 @@ With argument: Initializes a stringlist equivalent to the input array `array` i.
106106

107107
#### Syntax
108108

109-
- No arguments given: `res = [[stdlib_stringlist(module):stringlist_type(interface)]] ()`
109+
- No arguments given: `res = [[stdlib_stringlist_type(module):stringlist_type(interface)]] ()`
110110

111-
- With argument: `res = [[stdlib_stringlist(module):stringlist_type(interface)]] (array)`
111+
- With argument: `res = [[stdlib_stringlist_type(module):stringlist_type(interface)]] (array)`
112112

113113
#### Status
114114

@@ -134,7 +134,7 @@ The result is an instance of type `stringlist_type`.
134134

135135
```fortran
136136
program demo_constructor
137-
use stdlib_stringlist, only: stringlist_type
137+
use stdlib_stringlist_type, only: stringlist_type
138138
use stdlib_string_type, only: string_type
139139
implicit none
140140
@@ -162,7 +162,7 @@ Inserts the string `string` _AT_ the index `idx`, so that the newly added elemen
162162

163163
#### Syntax
164164

165-
`call [[stdlib_stringlist(module):stringlist_type(type)]]%[[stdlib_stringlist(module):insert_at(generic)]] (idx, string)`
165+
`call [[stdlib_stringlist_type(module):stringlist_type(type)]]%[[stdlib_stringlist_type(module):insert_at(generic)]] (idx, string)`
166166

167167
#### Status
168168

@@ -174,7 +174,7 @@ Pure subroutine.
174174

175175
#### Argument
176176

177-
- `idx`: [[stdlib_stringlist(module):stringlist_index_type(type)]].
177+
- `idx`: [[stdlib_stringlist_type(module):stringlist_index_type(type)]].
178178
This argument is intent(in).
179179

180180
- `string`: Character scalar or [[stdlib_string_type(module):string_type(type)]].
@@ -188,7 +188,7 @@ No result.
188188

189189
```fortran
190190
program demo_insert_at
191-
use stdlib_stringlist, only: stringlist_type, stringlist_index_type, fidx, bidx
191+
use stdlib_stringlist_type, only: stringlist_type, stringlist_index_type, fidx, bidx
192192
use stdlib_string_type, only: string_type
193193
implicit none
194194
@@ -222,7 +222,7 @@ Returns the string present currently at the index `idx` in a stringlist. If inde
222222

223223
#### Syntax
224224

225-
`res = [[stdlib_stringlist(module):stringlist_type(type)]]%[[stdlib_stringlist(module):get(generic)]] (idx)`
225+
`res = [[stdlib_stringlist_type(module):stringlist_type(type)]]%[[stdlib_stringlist_type(module):get(generic)]] (idx)`
226226

227227
#### Status
228228

@@ -234,7 +234,7 @@ Pure function.
234234

235235
#### Argument
236236

237-
- `idx`: [[stdlib_stringlist(module):stringlist_index_type(type)]].
237+
- `idx`: [[stdlib_stringlist_type(module):stringlist_index_type(type)]].
238238
This argument is intent(in).
239239

240240
#### Result value
@@ -245,7 +245,7 @@ The result is a string of type `string_type`.
245245

246246
```fortran
247247
program demo_get
248-
use stdlib_stringlist, only: stringlist_type, fidx, bidx
248+
use stdlib_stringlist_type, only: stringlist_type, fidx, bidx
249249
use stdlib_string_type, only: string_type
250250
implicit none
251251
@@ -284,7 +284,7 @@ Returns the number of elements present currently in the stringlist.
284284

285285
#### Syntax
286286

287-
`res = [[stdlib_stringlist(module):stringlist_type(type)]]%[[stdlib_stringlist(module):len()]] ()`
287+
`res = [[stdlib_stringlist_type(module):stringlist_type(type)]]%[[stdlib_stringlist_type(module):len()]] ()`
288288

289289
#### Status
290290

@@ -306,7 +306,7 @@ The result is of type `integer`.
306306

307307
```fortran
308308
program demo_len
309-
use stdlib_stringlist, only: stringlist_type, bidx
309+
use stdlib_stringlist_type, only: stringlist_type, bidx
310310
implicit none
311311
312312
type(stringlist_type) :: stringlist
@@ -336,7 +336,7 @@ Removes all elements from a stringlist.
336336

337337
#### Syntax
338338

339-
`call [[stdlib_stringlist(module):stringlist_type(type)]]%[[stdlib_stringlist(module):clear()]] ()`
339+
`call [[stdlib_stringlist_type(module):stringlist_type(type)]]%[[stdlib_stringlist_type(module):clear()]] ()`
340340

341341
#### Status
342342

@@ -358,7 +358,7 @@ No result.
358358

359359
```fortran
360360
program demo_clear
361-
use stdlib_stringlist, only: stringlist_type, fidx
361+
use stdlib_stringlist_type, only: stringlist_type, fidx
362362
implicit none
363363
364364
type(stringlist_type) :: stringlist

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ set(SRC
5656
stdlib_specialfunctions.f90
5757
stdlib_specialfunctions_legendre.f90
5858
stdlib_quadrature_gauss.f90
59-
stdlib_stringlist.f90
59+
stdlib_stringlist_type.f90
6060
${outFiles}
6161
)
6262

src/Makefile.manual

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SRC = f18estop.f90 \
4040
stdlib_logger.f90 \
4141
stdlib_quadrature_gauss.f90 \
4242
stdlib_strings.f90 \
43-
stdlib_stringlist.f90 \
43+
stdlib_stringlist_type.f90 \
4444
$(SRCGEN)
4545

4646
LIB = libstdlib.a
@@ -156,6 +156,6 @@ stdlib_math_linspace.o: \
156156
stdlib_math_logspace.o: \
157157
stdlib_math_linspace.o
158158
stdlib_linalg_outer_product.o: stdlib_linalg.o
159-
stdlib_stringlist.o: stdlib_string_type.o \
159+
stdlib_stringlist_type.o: stdlib_string_type.o \
160160
stdlib_math.o \
161161
stdlib_optval.o

src/stdlib_stringlist.f90 renamed to src/stdlib_stringlist_type.f90

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! stdlib_stringlist.f90 --
1+
! stdlib_stringlist_type.f90 --
22
! Module for storing and manipulating list of strings
33
! The strings may have arbitrary lengths, not necessarily the same
44
!
@@ -14,7 +14,7 @@
1414
! Note the distinction between AT and BEFORE in the module. Care has been taken to keep it consistent
1515
! throughout the PR
1616
!
17-
module stdlib_stringlist
17+
module stdlib_stringlist_type
1818
use stdlib_string_type, only: string_type, operator(/=) !, move
1919
use stdlib_math, only: clip
2020
implicit none
@@ -36,15 +36,15 @@ module stdlib_stringlist
3636
!> Version: experimental
3737
!>
3838
!> Returns an instance of type 'stringlist_index_type' representing forward index
39-
!> [Specifications](../page/specs/stdlib_stringlist.html#fidx)
39+
!> [Specifications](../page/specs/stdlib_stringlist_type.html#fidx)
4040
interface fidx
4141
module procedure forward_index
4242
end interface
4343

4444
!> Version: experimental
4545
!>
4646
!> Returns an instance of type 'stringlist_index_type' representing backward index
47-
!> [Specifications](../page/specs/stdlib_stringlist.html#bidx)
47+
!> [Specifications](../page/specs/stdlib_stringlist_type.html#bidx)
4848
interface bidx
4949
module procedure backward_index
5050
end interface
@@ -93,7 +93,7 @@ module stdlib_stringlist
9393
!>
9494
!> Constructor for stringlist
9595
!> Returns an instance of type stringlist_type
96-
!> [Specifications](../page/specs/stdlib_stringlist.html#stringlist_type)
96+
!> [Specifications](../page/specs/stdlib_stringlist_type.html#stringlist_type)
9797
interface stringlist_type
9898
module procedure new_stringlist
9999
module procedure new_stringlist_carray
@@ -103,7 +103,7 @@ module stdlib_stringlist
103103
!>
104104
!> Concatenates stringlist with the input entity
105105
!> Returns a new stringlist
106-
!> [Specifications](../page/specs/stdlib_stringlist.html#append-operator)
106+
!> [Specifications](../page/specs/stdlib_stringlist_type.html#append-operator)
107107
interface operator(//)
108108
module procedure append_char
109109
module procedure append_string
@@ -120,7 +120,7 @@ module stdlib_stringlist
120120
!>
121121
!> Compares stringlist for equality with the input entity
122122
!> Returns a logical
123-
!> [Specifications](../page/specs/stdlib_stringlist.html#equality-operator)
123+
!> [Specifications](../page/specs/stdlib_stringlist_type.html#equality-operator)
124124
interface operator(==)
125125
module procedure eq_stringlist
126126
module procedure eq_stringlist_carray
@@ -133,7 +133,7 @@ module stdlib_stringlist
133133
!>
134134
!> Compares stringlist for inequality with the input entity
135135
!> Returns a logical
136-
!> [Specifications](../page/specs/stdlib_stringlist.html#inequality-operator)
136+
!> [Specifications](../page/specs/stdlib_stringlist_type.html#inequality-operator)
137137
interface operator(/=)
138138
module procedure ineq_stringlist
139139
module procedure ineq_stringlist_carray
@@ -723,4 +723,4 @@ pure function get_string_idx_wrap( list, idx )
723723
end function get_string_idx_wrap
724724

725725

726-
end module stdlib_stringlist
726+
end module stdlib_stringlist_type

src/tests/stringlist/test_append_prepend.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module test_append_prepend
33
use stdlib_error, only: check
44
use stdlib_string_type, only: string_type, operator(//), operator(==)
5-
use stdlib_stringlist, only: stringlist_type, fidx, bidx, list_head, &
5+
use stdlib_stringlist_type, only: stringlist_type, fidx, bidx, list_head, &
66
& list_tail, operator(//), operator(==), operator(/=)
77
use stdlib_ascii, only: to_string
88
implicit none

src/tests/stringlist/test_insert_at.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module test_insert_at
33
use stdlib_error, only: check
44
use stdlib_string_type, only: string_type, operator(//), operator(==)
5-
use stdlib_stringlist, only: stringlist_type, fidx, bidx, list_head, list_tail, operator(==)
5+
use stdlib_stringlist_type, only: stringlist_type, fidx, bidx, list_head, list_tail, operator(==)
66
use stdlib_ascii, only: to_string
77
implicit none
88

0 commit comments

Comments
 (0)