Method EndsWith
EndsWith<T>(ref T, Rune)
Returns true if a given character occurs at the end of this string.
Declaration
public static bool EndsWith<T>(this ref T fs, Unicode.Rune rune) where T : unmanaged, INativeList<byte>, IUTF8Bytes
Parameters
Type | Name | Description |
---|---|---|
T | fs | A string to search. |
Unicode.Rune | rune | A character to search for within this string. |
Returns
Type | Description |
---|---|
bool | True if the character occurs at the end of this string. |
Type Parameters
Name | Description |
---|---|
T | A string type. |
EndsWith<T, U>(ref T, in U)
Returns true if a given substring occurs at the end of this string.
Declaration
public static bool EndsWith<T, U>(this ref T fs, in U other) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes
Parameters
Type | Name | Description |
---|---|---|
T | fs | A string to search. |
U | other | A substring to search for within this string. |
Returns
Type | Description |
---|---|
bool | True if the substring occurs at the end of this string. |
Type Parameters
Name | Description |
---|---|
T | A string type. |
U | A string type. |