Method StartsWith
StartsWith<T>(ref T, Rune)
Returns true if a given character occurs at the beginning of this string.
Declaration
public static bool StartsWith<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 beginning of this string. |
Type Parameters
Name | Description |
---|---|
T | A string type. |
StartsWith<T, U>(ref T, in U)
Returns true if a given substring occurs at the beginning of this string.
Declaration
public static bool StartsWith<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 beginning of this string. |
Type Parameters
Name | Description |
---|---|
T | A string type. |
U | A string type. |