You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/specs/stdlib_strings.md
+55-3Lines changed: 55 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@ end program demo_slice
280
280
Returns the starting index of the `occurrence`th occurrence of the substring `pattern`
281
281
in the input string `string`.
282
282
Default value of `occurrence` is set to `1`.
283
-
If `consider_overlapping` is not provided or is set to `.true.` the function counts two overlapping occurrences of substring as two different occurrences.
283
+
If `consider_overlapping` is not provided or is set to `.true.` the function counts two overlapping occurrences of substring `pattern`as two different occurrences.
284
284
If `occurrence`th occurrence is not found, function returns `0`.
285
285
286
286
#### Syntax
@@ -308,7 +308,7 @@ Elemental function
308
308
309
309
#### Result value
310
310
311
-
The result is a scalar of integer type or integer array of rank equal to the highest rank among all dummy arguments.
311
+
The result is a scalar of integer type or an integer array of rank equal to the highest rank among all dummy arguments.
Returns the number of times substring `pattern` has occurred in the input string `string`.
393
+
If `consider_overlapping` is not provided or is set to `.true.` the function counts two overlapping occurrences of substring `pattern` as two different occurrences.
0 commit comments