Class StringLineStartNormalizationExtensions
Extensions to normalize strings
Inheritance
System.Object
StringLineStartNormalizationExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl.TextConverter.Rtf
Assembly: Dangl.TextConverter.dll
Syntax
public static class StringLineStartNormalizationExtensions
Methods
| Improve this Doc View SourceNormalizeLineStarts(String)
This will normalize fixed indentions on strings after the first line, and ensure that each line is trimmed at the end. See the documentation or the readme for more details how and when this is useful.
Declaration
public static string NormalizeLineStarts(this string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source |
Returns
Type | Description |
---|---|
System.String |
NormalizeLineStarts(String, Boolean)
This will normalize fixed indentions on strings after the first line, and ensure that each line is trimmed at the end. See the documentation or the readme for more details how and when this is useful.
Declaration
public static string NormalizeLineStarts(this string source, bool trimLineEnds)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | |
System.Boolean | trimLineEnds |
Returns
Type | Description |
---|---|
System.String |