C# Class BoxKite.Twitter.Extensions.StringExtensions

显示文件 Open project: nickhodge/BoxKite.Twitter

Public Methods

Method Description
HTMLDecode ( this sourceString ) : string
ParseDateTime ( this date ) : System.DateTime

Sun Apr 15 02:31:50 +0000 2012 to DateTime

ToBase64String ( this source ) : String
ToDateTimeOffset ( this date ) : DateTimeOffset

Sun Apr 15 02:31:50 +0000 2012 to timeoffset to now

based on http://stackoverflow.com/a/4975344

TrimAndTruncate ( this inputString, int targetLength ) : string
TrimLastChar ( this sourceString ) : string

Remove last character of a string

UrlEncode ( this inputString ) : string

Method Details

HTMLDecode() public static method

public static HTMLDecode ( this sourceString ) : string
sourceString this
return string

ParseDateTime() public static method

Sun Apr 15 02:31:50 +0000 2012 to DateTime
public static ParseDateTime ( this date ) : System.DateTime
date this In Sun Apr 15 02:31:50 +0000 2012 format
return System.DateTime

ToBase64String() public static method

public static ToBase64String ( this source ) : String
source this
return String

ToDateTimeOffset() public static method

Sun Apr 15 02:31:50 +0000 2012 to timeoffset to now
based on http://stackoverflow.com/a/4975344
public static ToDateTimeOffset ( this date ) : DateTimeOffset
date this
return DateTimeOffset

TrimAndTruncate() public static method

public static TrimAndTruncate ( this inputString, int targetLength ) : string
inputString this
targetLength int
return string

TrimLastChar() public static method

Remove last character of a string
public static TrimLastChar ( this sourceString ) : string
sourceString this
return string

UrlEncode() public static method

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