C# Class Bloom.Extensions

Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
AppendLineFormat ( this sb, string format ) : void
EscapeCharsForHttp ( this fileName ) : string

Escapes a number of characters that need it for our url/http processing.

Note that calls to EscapeCharsForHttp() must be matched by an equal number of subsequent calls to UnescapeCharsForHttp(). (Normally each is called once.)

FromLocalhost ( this uri ) : string
SizeTextRectangleToText ( this args ) : void
ToInt ( this value ) : int
ToLocalhost ( this fileName ) : string
UnescapeCharsForHttp ( this uri ) : string

Remove the escaping of characters that need it for our url/http processing to restore a valid file pathname.

Note that calls to UnescapeCharsForHttp() must be matched by an equal number of previous calls to EscapeCharsForHttp(). (Normally each is called once.)

Method Details

AppendLineFormat() public static method

public static AppendLineFormat ( this sb, string format ) : void
sb this
format string
return void

EscapeCharsForHttp() public static method

Escapes a number of characters that need it for our url/http processing.
Note that calls to EscapeCharsForHttp() must be matched by an equal number of subsequent calls to UnescapeCharsForHttp(). (Normally each is called once.)
public static EscapeCharsForHttp ( this fileName ) : string
fileName this
return string

FromLocalhost() public static method

public static FromLocalhost ( this uri ) : string
uri this
return string

SizeTextRectangleToText() public static method

public static SizeTextRectangleToText ( this args ) : void
args this
return void

ToInt() public static method

public static ToInt ( this value ) : int
value this
return int

ToLocalhost() public static method

public static ToLocalhost ( this fileName ) : string
fileName this
return string

UnescapeCharsForHttp() public static method

Remove the escaping of characters that need it for our url/http processing to restore a valid file pathname.
Note that calls to UnescapeCharsForHttp() must be matched by an equal number of previous calls to EscapeCharsForHttp(). (Normally each is called once.)
public static UnescapeCharsForHttp ( this uri ) : string
uri this
return string