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: book/functions/helpers/string-fn.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,9 @@ The following standard methods operate on [strings](../../types/strings-chars.md
31
31
|`sub_string`| <ol><li>start position, counting from end if < 0</li><li>_(optional)_ number of characters to extract, none if ≤ 0, to end if omitted</li></ol> | extracts a sub-string |
32
32
|`sub_string`|[range](../../variables/ranges.md) of characters to extract, from beginning if ≤ 0, to end if ≥ length | extracts a sub-string |
33
33
|`split`|_none_| splits the string by whitespaces, returning an [array](../../types/arrays.md) of string segments |
34
-
|`split`| position to split at (in number of characters), counting from end if < 0, end if ≥ length | splits the string into two segments at the specified character position, returning an [array](../../arrays) of two string segments |
35
-
|`split`| <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter, returning an [array](../../arrays) of string segments |
36
-
|`split_rev`| <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter in reverse order, returning an [array](../../arrays) of string segments |
34
+
|`split`| position to split at (in number of characters), counting from end if < 0, end if ≥ length | splits the string into two segments at the specified character position, returning an [array](../types/arrays.md) of two string segments |
35
+
|`split`| <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter, returning an [array](../types/arrays.md) of string segments |
36
+
|`split_rev`| <ol><li>delimiter character/string</li><li>_(optional)_ maximum number of segments, 1 if < 1</li></ol> | splits the string by the specified delimiter in reverse order, returning an [array](../types/arrays.md) of string segments |
37
37
|`crop`| <ol><li>start position, counting from end if < 0</li><li>_(optional)_ number of characters to retain, none if ≤ 0, to end if omitted</li></ol> | retains only a portion of the string |
38
38
|`crop`|[range](../../variables/ranges.md) of characters to retain, from beginning if ≤ 0, to end if ≥ length | retains only a portion of the string |
39
39
|`replace`| <ol><li>target character/sub-string</li><li>replacement character/string</li></ol> | replaces a sub-string with another |
0 commit comments