C# Class Lagou.API.StringHelper

Afficher le fichier Open project: gruan01/Lagou.UWP

Méthodes publiques

Méthode Description
ClearHtml ( this html ) : string
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

SmartToInt ( this str, int defaultValue ) : int

智慧轉換為 Int ,取字串中的第一個數位串

ToInt ( this str ) : int

ToInt ( this str, int defaultValue ) : int

ToIntOrNull ( this str ) : int?

ToIntOrNull ( this str, int defaultValue ) : int?

Method Details

ClearHtml() public static méthode

public static ClearHtml ( this html ) : string
html this
Résultat string

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

SmartToInt() public static méthode

智慧轉換為 Int ,取字串中的第一個數位串
public static SmartToInt ( this str, int defaultValue ) : int
str this
defaultValue int
Résultat int

ToInt() public static méthode

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

ToInt() public static méthode

public static ToInt ( this str, int defaultValue ) : int
str this
defaultValue int
Résultat int

ToIntOrNull() public static méthode

public static ToIntOrNull ( this str ) : int?
str this
Résultat int?

ToIntOrNull() public static méthode

public static ToIntOrNull ( this str, int defaultValue ) : int?
str this
defaultValue int
Résultat int?