Source::NormalizeNewlines Method (String^, String^)

 

Converts the newlines in the specified text to the specified newline.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
String^ NormalizeNewlines(
	String^ input,
	String^ newline
)

Parameters

input
Type: System::String^

The text in which to convert the newlines.

newline
Type: System::String^

The newline to which to convert.

Return Value

Type: System::String^

Returns a string containing the converted text.

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

Return to top
Show: