| Parameter | Description |
|---|---|
| fs | A string to search. |
| rune | A single Unicode.Rune to search for within this string. |
int The index of the last occurrence of the byte sequence within this string. Returns -1 if no occurrence is found.
Returns the index of the last occurrence of a single Unicode rune within this string.
| Parameter | Description |
|---|---|
| fs | A string to search. |
| bytes | A byte sequence to search for within this string. |
| bytesLen | The number of bytes in the byte sequence. |
int The index of the last occurrence of the byte sequence within this string. Returns -1 if no occurrence is found.
Returns the index of the last occurrence of a byte sequence within this string.
| Parameter | Description |
|---|---|
| fs | A string to search. |
| bytes | A byte sequence to search for within this string. |
| bytesLen | The number of bytes in the byte sequence. |
| startIndex | The smallest index in this string to consider as the first byte of the byte sequence. |
| distance | The greatest index in this string to consider as the first byte of the byte sequence. |
int The index of the last occurrence of the byte sequence within this string. Returns -1 if no occurrences found.
Returns the index of the last occurrence of a byte sequence within a subrange of this string.
| Parameter | Description |
|---|---|
| fs | A string to search. |
| other | A substring to search for in the this string. |
int The index of the last occurrence of the substring within this string. Returns -1 if no occurrence is found.
Returns the index of the last occurrence of a substring within this string.
| Parameter | Description |
|---|---|
| fs | A string to search. |
| other | A substring to search for within this string. |
| startIndex | The greatest index in this string to consider as an occurrence of the substring. |
| distance | The smallest index in this string to consider as an occurrence of the substring. |
int the index of the last occurrence of the substring within the first string. Returns -1 if no occurrence is found.
Returns the index of the last occurrence of a substring within a subrange of this string.