Skip to content

M_Cyjb_StringView_Trim_1

CYJB edited this page Mar 20, 2024 · 2 revisions

StringView.Trim 方法 (Char)

从当前字符串视图删除指定字符的前导和尾随匹配项。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public StringView Trim(
	char trimChar
)

参数

 

trimChar
Type: System.Char
要删除的字符。

返回值

Type: StringView
删除前导和尾随字符的剩余字符串视图。

参见

Reference

StringView 结构
Trim 重载
Cyjb 命名空间

Clone this wiki locally