C# Class DDay.iCal.TextUtil

Mostrar archivo Open project: nachocove/DDay-iCal-Xamarin

Public Methods

Method Description
Normalize ( TextReader tr, ISerializationContext ctx ) : TextReader
Normalize ( string s, ISerializationContext ctx ) : TextReader

Normalizes line endings, converting "\r" into "\r\n" and "\n" into "\r\n".

RemoveEmptyLines ( string s ) : string

Removes blank lines from a string with normalized (\r\n) line endings. NOTE: this method makes the line/col numbers output from antlr incorrect.

UnwrapLines ( TextReader tr ) : TextReader
UnwrapLines ( string s ) : string

Unwraps lines from the RFC 2445 "line folding" technique. NOTE: this method makes the line/col numbers output from antlr incorrect.

WrapLines ( string value ) : string

Method Details

Normalize() public static method

public static Normalize ( TextReader tr, ISerializationContext ctx ) : TextReader
tr TextReader
ctx ISerializationContext
return TextReader

Normalize() public static method

Normalizes line endings, converting "\r" into "\r\n" and "\n" into "\r\n".
public static Normalize ( string s, ISerializationContext ctx ) : TextReader
s string
ctx ISerializationContext
return TextReader

RemoveEmptyLines() public static method

Removes blank lines from a string with normalized (\r\n) line endings. NOTE: this method makes the line/col numbers output from antlr incorrect.
public static RemoveEmptyLines ( string s ) : string
s string
return string

UnwrapLines() public static method

public static UnwrapLines ( TextReader tr ) : TextReader
tr TextReader
return TextReader

UnwrapLines() public static method

Unwraps lines from the RFC 2445 "line folding" technique. NOTE: this method makes the line/col numbers output from antlr incorrect.
public static UnwrapLines ( string s ) : string
s string
return string

WrapLines() public static method

public static WrapLines ( string value ) : string
value string
return string