M_Cyjb_StringView_ReplaceLineEndings_1 - CYJB/Cyjb GitHub Wiki
将当前字符串视图中的所有换行序列替换为 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
替换换行符后的字符串视图。
识别与 ReplaceLineEndings() 相同的换行序列,具体为 CR (U+000D)、LF (U+000A)、CRLF (U+000D U+000A)、NEL (U+0085)、LS (U+2028)、FF (U+000C)和 PS (U+2029)。