@@ -19,7 +19,7 @@ well as operators for working with character variables and constants.
19
19
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
20
20
### The ` string_type ` derived type
21
21
22
- The ` string_type ` is defined as a non-extenable derived type representing a
22
+ The ` string_type ` is defined as a non-extendible derived type representing a
23
23
sequence of characters. The internal representation of the character sequence
24
24
is implementation dependent and not visible for the user of the module.
25
25
@@ -30,7 +30,7 @@ Experimental
30
30
31
31
## Procedures and methods provided
32
32
33
- Procedures returning ` string_type ` instances can usually used in elemental
33
+ Procedures returning ` string_type ` instances can usually be used in elemental
34
34
context, while procedures returning scalar character values can only be
35
35
used in a pure way.
36
36
62
62
63
63
#### Result value
64
64
65
- The result is an instance of ` string_type ` .
65
+ The result is an instance of ` string_type ` with zero length .
66
66
67
67
#### Example
68
68
@@ -117,7 +117,7 @@ type(string_type) :: string
117
117
string = string_type("Sequence")
118
118
! len(string) == 8
119
119
string = string_type(" S p a c e d ")
120
- ! len(string) == 9
120
+ ! len(string) == 13
121
121
end
122
122
```
123
123
752
752
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
753
753
### Verify function
754
754
755
- Scan a string for the absence of a set of characters. Verifies that all
756
- the characters in string belong to the set of characters in set.
755
+ Scan a * string* for the absence of a * set* of characters. Verifies that all
756
+ the characters in * string* belong to the set of characters in * set* .
757
757
758
758
#### Description
759
759
812
812
813
813
814
814
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
815
- ### Lgt function (lexical greater)
815
+ ### Lgt function (lexical greater than )
816
816
817
- Lexically compare the order of two character sequences being greater.
817
+ Lexically compare the order of two character sequences being greater than .
818
818
819
819
#### Description
820
820
865
865
866
866
867
867
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
868
- ### Llt function (lexical less)
868
+ ### Llt function (lexical less than )
869
869
870
- Lexically compare the order of two character sequences being less.
870
+ Lexically compare the order of two character sequences being less than .
871
871
872
872
#### Description
873
873
918
918
919
919
920
920
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
921
- ### Lge function (lexical greater or equal)
921
+ ### Lge function (lexical greater than or equal)
922
922
923
- Lexically compare the order of two character sequences being greater or equal.
923
+ Lexically compare the order of two character sequences being greater than
924
+ or equal.
924
925
925
926
#### Description
926
927
971
972
972
973
973
974
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
974
- ### Lle function (lexical less or equal)
975
+ ### Lle function (lexical less than or equal)
975
976
976
- Lexically compare the order of two character sequences being less or equal.
977
+ Lexically compare the order of two character sequences being less than
978
+ or equal.
977
979
978
980
#### Description
979
981
@@ -1032,19 +1034,22 @@ Compare the order of two character sequences being greater.
1032
1034
1033
1035
The left-hand side, the right-hand side or both character sequences can
1034
1036
be represented by a string type.
1035
- This defines three procedures overloading the intrinsic ` operator(.gt.) ` .
1037
+ This defines three procedures overloading the intrinsic ` operator(>) `
1038
+ and ` operator(.gt.) ` .
1036
1039
1037
1040
#### Syntax
1038
1041
1039
1042
` res = lhs > rhs `
1040
1043
1044
+ ` res = lhs .gt. rhs `
1045
+
1041
1046
#### Status
1042
1047
1043
1048
Experimental
1044
1049
1045
1050
#### Class
1046
1051
1047
- Elemental function, ` operator(.gt.) ` .
1052
+ Elemental function, ` operator(>) ` and ` operator( .gt.)` .
1048
1053
1049
1054
#### Argument
1050
1055
@@ -1085,19 +1090,22 @@ Compare the order of two character sequences being less.
1085
1090
1086
1091
The left-hand side, the right-hand side or both character sequences can
1087
1092
be represented by a string type.
1088
- This defines three procedures overloading the intrinsic ` operator(.lt.) ` .
1093
+ This defines three procedures overloading the intrinsic ` operator(<) `
1094
+ and ` operator(.lt.) ` .
1089
1095
1090
1096
#### Syntax
1091
1097
1092
1098
` res = lhs < rhs `
1093
1099
1100
+ ` res = lhs .lt. rhs `
1101
+
1094
1102
#### Status
1095
1103
1096
1104
Experimental
1097
1105
1098
1106
#### Class
1099
1107
1100
- Elemental function, ` operator(.lt.) ` .
1108
+ Elemental function, ` operator(<) ` and ` operator( .lt.)` .
1101
1109
1102
1110
#### Argument
1103
1111
@@ -1138,19 +1146,22 @@ Compare the order of two character sequences being greater or equal.
1138
1146
1139
1147
The left-hand side, the right-hand side or both character sequences can
1140
1148
be represented by a string type.
1141
- This defines three procedures overloading the intrinsic ` operator(.ge.) ` .
1149
+ This defines three procedures overloading the intrinsic ` operator(>=) `
1150
+ and ` operator(.ge.) ` .
1142
1151
1143
1152
#### Syntax
1144
1153
1145
1154
` res = lhs >= rhs `
1146
1155
1156
+ ` res = lhs .ge. rhs `
1157
+
1147
1158
#### Status
1148
1159
1149
1160
Experimental
1150
1161
1151
1162
#### Class
1152
1163
1153
- Elemental function, ` operator(.ge.) ` .
1164
+ Elemental function, ` operator(>=) ` and ` operator( .ge.)` .
1154
1165
1155
1166
#### Argument
1156
1167
@@ -1191,19 +1202,22 @@ Compare the order of two character sequences being less or equal.
1191
1202
1192
1203
The left-hand side, the right-hand side or both character sequences can
1193
1204
be represented by a string type.
1194
- This defines three procedures overloading the intrinsic ` operator(.le.) ` .
1205
+ This defines three procedures overloading the intrinsic ` operator(<=) `
1206
+ and ` operator(.le.) ` .
1195
1207
1196
1208
#### Syntax
1197
1209
1198
1210
` res = lhs <= rhs `
1199
1211
1212
+ ` res = lhs .le. rhs `
1213
+
1200
1214
#### Status
1201
1215
1202
1216
Experimental
1203
1217
1204
1218
#### Class
1205
1219
1206
- Elemental function, ` operator(.le.) ` .
1220
+ Elemental function, ` operator(<=) ` and ` operator( .le.)` .
1207
1221
1208
1222
#### Argument
1209
1223
@@ -1244,19 +1258,22 @@ Compare two character sequences for equality.
1244
1258
1245
1259
The left-hand side, the right-hand side or both character sequences can
1246
1260
be represented by a string type.
1247
- This defines three procedures overloading the intrinsic ` operator(.eq.) ` .
1261
+ This defines three procedures overloading the intrinsic ` operator(==) `
1262
+ and ` operator(.eq.) ` .
1248
1263
1249
1264
#### Syntax
1250
1265
1251
1266
` res = lhs == rhs `
1252
1267
1268
+ ` res = lhs .eq. rhs `
1269
+
1253
1270
#### Status
1254
1271
1255
1272
Experimental
1256
1273
1257
1274
#### Class
1258
1275
1259
- Elemental function, ` operator(.eq.) ` .
1276
+ Elemental function, ` operator(==) ` and ` operator( .eq.)` .
1260
1277
1261
1278
#### Argument
1262
1279
@@ -1297,19 +1314,22 @@ Compare two character sequences for inequality.
1297
1314
1298
1315
The left-hand side, the right-hand side or both character sequences can
1299
1316
be represented by a string type.
1300
- This defines three procedures overloading the intrinsic ` operator(.ne.) ` .
1317
+ This defines three procedures overloading the intrinsic ` operator(/=) `
1318
+ and ` operator(.ne.) ` .
1301
1319
1302
1320
#### Syntax
1303
1321
1304
1322
` res = lhs /= rhs `
1305
1323
1324
+ ` res = lhs .ne. rhs `
1325
+
1306
1326
#### Status
1307
1327
1308
1328
Experimental
1309
1329
1310
1330
#### Class
1311
1331
1312
- Elemental function, ` operator(.ne.) ` .
1332
+ Elemental function, ` operator(/=) ` and ` operator( .ne.)` .
1313
1333
1314
1334
#### Argument
1315
1335
0 commit comments