Share via


Source.NormalizeNewlines(String, String) Method

Definition

Convert the newlines in the given input string to the style of newline provided in the second argument.

public:
 System::String ^ NormalizeNewlines(System::String ^ input, System::String ^ newline);
public:
 Platform::String ^ NormalizeNewlines(Platform::String ^ input, Platform::String ^ newline);
std::wstring NormalizeNewlines(std::wstring const & input, std::wstring const & newline);
public string NormalizeNewlines (string input, string newline);
member this.NormalizeNewlines : string * string -> string
Public Function NormalizeNewlines (input As String, newline As String) As String

Parameters

input
String

The text in which to convert the newlines.

newline
String

The newline to which to convert.

Returns

Returns a string containing the converted text.

Remarks

This method is used to convert carriage returns, line feeds, and carriage return/line feeds to the specified newline string.

Applies to