C# Class iQQ.Net.WebQQCore.Util.Extensions.StringExtensions

Mostrar archivo Open project: huoshan12345/iQQ.Net

Public Methods

Method Description
GetOrEmpty ( this str ) : string
IsNullOrEmpty ( this str ) : bool
IsNullOrWhiteSpace ( this str ) : bool
Md5ToBytes ( this input ) : byte[]

将字符串MD5加密为字节数组

Md5ToString ( this input ) : string

将字符串MD5加密为字符串

RegexReplace ( this str, string rex, string replacement ) : string
ToBytes ( this input, Encoding encoding ) : byte[]
ToUTF8Bytes ( this input ) : byte[]
UrlEncode ( this url ) : string

Method Details

GetOrEmpty() public static method

public static GetOrEmpty ( this str ) : string
str this
return string

IsNullOrEmpty() public static method

public static IsNullOrEmpty ( this str ) : bool
str this
return bool

IsNullOrWhiteSpace() public static method

public static IsNullOrWhiteSpace ( this str ) : bool
str this
return bool

Md5ToBytes() public static method

将字符串MD5加密为字节数组
public static Md5ToBytes ( this input ) : byte[]
input this
return byte[]

Md5ToString() public static method

将字符串MD5加密为字符串
public static Md5ToString ( this input ) : string
input this
return string

RegexReplace() public static method

public static RegexReplace ( this str, string rex, string replacement ) : string
str this
rex string
replacement string
return string

ToBytes() public static method

public static ToBytes ( this input, Encoding encoding ) : byte[]
input this
encoding System.Text.Encoding
return byte[]

ToUTF8Bytes() public static method

public static ToUTF8Bytes ( this input ) : byte[]
input this
return byte[]

UrlEncode() public static method

public static UrlEncode ( this url ) : string
url this
return string