Rune.IsSeparator(Rune) 方法
定义
返回一个值,该值指示指定的 rune 是否属于分隔符类别。Returns a value that indicates whether the specified rune is categorized as a separator character.
public:
static bool IsSeparator(System::Text::Rune value);
public static bool IsSeparator (System.Text.Rune value);
static member IsSeparator : System.Text.Rune -> bool
Public Shared Function IsSeparator (value As Rune) As Boolean
参数
- value
- Rune
要计算的 rune。The rune to evaluate.
返回
如果 true 是分隔符,则为 value;否则为 false。true if value is a separator character; otherwise, false.
注解
此方法等效于查询 GetUnicodeCategory(Rune) 结果并将其与任何值 SpaceSeparator 、和进行比较 LineSeparator ParagraphSeparator 。This method is equivalent to querying GetUnicodeCategory(Rune) and comparing the result against any of the values SpaceSeparator, LineSeparator, and ParagraphSeparator.
有关详细信息,请参阅 Char.IsSeparator。For more information, see Char.IsSeparator.