C# Class Discuz.Api.StringHelper

显示文件 Open project: gruan01/Discuz.Mobi

Public Methods

Method 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 method

修正URL
public static FixUrl ( this url ) : string
url this
return string

FixUrl() public static method

修正URL
public static FixUrl ( this url, string defaultPrefix ) : string
url this
defaultPrefix string
return string

ParseErrorType() public static method

public static ParseErrorType ( this str ) : ErrorTypes
str this
return ErrorTypes

ParseString() public static method

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

SetUrlKeyValue() public static method

設置 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
return string