StartsWith
Returns true if a given character occurs at the beginning of this string.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
StartsWith<T>(T, Rune)
Returns true if a given character occurs at the beginning of this string.
public static bool StartsWith<T>(this ref T fs, Unicode.Rune rune) where T : unmanaged, INativeList<byte>, IUTF8Bytes
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the character occurs at the beginning of this string. |
StartsWith<T, U>(T, T)
Returns true if a given substring occurs at the beginning of this string.
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
Returns
Type | Description |
|---|---|
| bool | True if the substring occurs at the beginning of this string. |