Version: 2022.2
public bool Contains (char c, stringComparison ordinal);

参数

c A character.
ordinal A string comparison option.

返回

bool True if the character is found, otherwise false.

描述

Checks if a character is contained in the StringView.


public bool Contains (string s, stringComparison ordinal);

参数

s A string.
ordinal A string comparison option.

返回

bool True if the string is found, otherwise false.

描述

Checks if a string is contained in the StringView.


public bool Contains (stringView s, stringComparison ordinal);

参数

s A StringView.
ordinal A string comparison option.

返回

bool True if the StringView is found, otherwise false.

描述

Checks if a StringView is contained in the StringView.