C# 클래스 DDay.iCal.TextUtil

파일 보기 프로젝트 열기: nachocove/DDay-iCal-Xamarin

공개 메소드들

메소드 설명
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

메소드 상세

Normalize() 공개 정적인 메소드

public static Normalize ( TextReader tr, ISerializationContext ctx ) : TextReader
tr TextReader
ctx ISerializationContext
리턴 TextReader

Normalize() 공개 정적인 메소드

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
리턴 TextReader

RemoveEmptyLines() 공개 정적인 메소드

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
리턴 string

UnwrapLines() 공개 정적인 메소드

public static UnwrapLines ( TextReader tr ) : TextReader
tr TextReader
리턴 TextReader

UnwrapLines() 공개 정적인 메소드

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
리턴 string

WrapLines() 공개 정적인 메소드

public static WrapLines ( string value ) : string
value string
리턴 string