C# Class DDay.iCal.TextUtil

Afficher le fichier Open project: nachocove/DDay-iCal-Xamarin

Méthodes publiques

Méthode 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 méthode

public static Normalize ( TextReader tr, ISerializationContext ctx ) : TextReader
tr TextReader
ctx ISerializationContext
Résultat TextReader

Normalize() public static méthode

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
Résultat TextReader

RemoveEmptyLines() public static méthode

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
Résultat string

UnwrapLines() public static méthode

public static UnwrapLines ( TextReader tr ) : TextReader
tr TextReader
Résultat TextReader

UnwrapLines() public static méthode

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
Résultat string

WrapLines() public static méthode

public static WrapLines ( string value ) : string
value string
Résultat string