Version: 2022.3
public bool StartsWith (char c, stringComparison stringComparison);

参数

c A character.
stringComparison A string comparison option.

返回

bool True if the StringView starts with c, otherwise false.

描述

Checks if the StringView starts with the character c.


public bool StartsWith (string v, stringComparison sc);

参数

v A string.
sc A string comparison option.

返回

bool True if the StringView starts with v, otherwise false.

描述

Checks if the StringView starts with the string v.