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 |
public static Normalize ( TextReader tr, ISerializationContext ctx ) : TextReader | ||
tr | TextReader | |
ctx | ISerializationContext | |
return | TextReader |
public static Normalize ( string s, ISerializationContext ctx ) : TextReader | ||
s | string | |
ctx | ISerializationContext | |
return | TextReader |
public static RemoveEmptyLines ( string s ) : string | ||
s | string | |
return | string |
public static UnwrapLines ( TextReader tr ) : TextReader | ||
tr | TextReader | |
return | TextReader |
public static UnwrapLines ( string s ) : string | ||
s | string | |
return | string |
public static WrapLines ( string value ) : string | ||
value | string | |
return | string |