C# Class Discuz.Api.StringHelper

Afficher le fichier Open project: gruan01/Discuz.Mobi

Méthodes publiques

Méthode Description
FixUrl ( this url ) : string

修正URL

FixUrl ( this url, string defaultPrefix ) : string

修正URL

ParseErrorType ( this str ) : ErrorTypes
ParseString ( this s, bool ignoreCase ) : string>.Dictionary

從URL中取 Key / Value

SetUrlKeyValue ( this url, string key, string value, Encoding encode = null ) : string

設置 URL中的 key

Method Details

FixUrl() public static méthode

修正URL
public static FixUrl ( this url ) : string
url this
Résultat string

FixUrl() public static méthode

修正URL
public static FixUrl ( this url, string defaultPrefix ) : string
url this
defaultPrefix string
Résultat string

ParseErrorType() public static méthode

public static ParseErrorType ( this str ) : ErrorTypes
str this
Résultat ErrorTypes

ParseString() public static méthode

從URL中取 Key / Value
public static ParseString ( this s, bool ignoreCase ) : string>.Dictionary
s this
ignoreCase bool
Résultat string>.Dictionary

SetUrlKeyValue() public static méthode

設置 URL中的 key
public static SetUrlKeyValue ( this url, string key, string value, Encoding encode = null ) : string
url this
key string
value string
encode System.Text.Encoding
Résultat string