C# Class Bloom.Extensions

Afficher le fichier Open project: BloomBooks/BloomDesktop

Méthodes publiques

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

public static AppendLineFormat ( this sb, string format ) : void
sb this
format string
Résultat void

EscapeCharsForHttp() public static méthode

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

FromLocalhost() public static méthode

public static FromLocalhost ( this uri ) : string
uri this
Résultat string

SizeTextRectangleToText() public static méthode

public static SizeTextRectangleToText ( this args ) : void
args this
Résultat void

ToInt() public static méthode

public static ToInt ( this value ) : int
value this
Résultat int

ToLocalhost() public static méthode

public static ToLocalhost ( this fileName ) : string
fileName this
Résultat string

UnescapeCharsForHttp() public static méthode

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