M_Cyjb_StringView_ReplaceLineEndings_1 - CYJB/Cyjb GitHub Wiki

StringView.ReplaceLineEndings 方法 (String)

将当前字符串视图中的所有换行序列替换为 replacementText

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

语法

C#

public StringView ReplaceLineEndings(
	string replacementText
)

参数

 

replacementText
Type: System.String
要替换到的字符串。

返回值

Type: StringView
替换换行符后的字符串视图。

Remarks

识别与 ReplaceLineEndings() 相同的换行序列,具体为 CR (U+000D)、LF (U+000A)、CRLF (U+000D U+000A)、NEL (U+0085)、LS (U+2028)、FF (U+000C)和 PS (U+2029)。

参见

Reference

StringView 结构
ReplaceLineEndings 重载
Cyjb 命名空间

⚠️ **GitHub.com Fallback** ⚠️