C# Class Hardly.StringHelpers

ファイルを表示 Open project: hardlydifficult/HardlyBot

Public Methods

Method Description
AppendStrings ( this source, string stringsToAppend, string textBetween = null ) : string[]
GetAfter ( this source, string searchToken, bool firstOrLastInstance = true ) : string
GetBefore ( this source, string searchToken, bool firstOrLastInstance = true ) : string
GetBetween ( this source, string searchToken1, string searchToken2, bool firstOrLastInstance1 = true, bool firstOrLastInstance2 = true ) : string
GetNextLine ( this data, uint &index ) : string
IsEmpty ( this value ) : bool
IsLowercase ( this value ) : bool
IsTrimmed ( this value ) : bool
ToBytesEncoded ( this data ) : byte[]
ToCsv ( this values, string insertBetweenEach = ",", string insertBeforeEachValue = null, string insertAfterEachValue = null ) : string
ToHtmlSafePlainText ( this value ) : string
ToHtmlSafeTagText ( this value ) : string
ToHtmlSafeUrl ( this value ) : string
ToStringAzViaMod ( this i, bool includeUppercase = false, bool includeNumbers = false, char includedSymbols = null ) : string
ToStringAzViaMod ( this i, char availableChars ) : string
ToStringDecode ( this data ) : string
ToStringWithCommaAndDecimals ( this value, uint numberOfDecimals ) : string
ToStringWithCommas ( this value ) : string
Tokenize ( this source, string token = ",", bool includeToken = false ) : string[]

Method Details

AppendStrings() public static method

public static AppendStrings ( this source, string stringsToAppend, string textBetween = null ) : string[]
source this
stringsToAppend string
textBetween string
return string[]

GetAfter() public static method

public static GetAfter ( this source, string searchToken, bool firstOrLastInstance = true ) : string
source this
searchToken string
firstOrLastInstance bool
return string

GetBefore() public static method

public static GetBefore ( this source, string searchToken, bool firstOrLastInstance = true ) : string
source this
searchToken string
firstOrLastInstance bool
return string

GetBetween() public static method

public static GetBetween ( this source, string searchToken1, string searchToken2, bool firstOrLastInstance1 = true, bool firstOrLastInstance2 = true ) : string
source this
searchToken1 string
searchToken2 string
firstOrLastInstance1 bool
firstOrLastInstance2 bool
return string

GetNextLine() public static method

public static GetNextLine ( this data, uint &index ) : string
data this
index uint
return string

IsEmpty() public static method

public static IsEmpty ( this value ) : bool
value this
return bool

IsLowercase() public static method

public static IsLowercase ( this value ) : bool
value this
return bool

IsTrimmed() public static method

public static IsTrimmed ( this value ) : bool
value this
return bool

ToBytesEncoded() public static method

public static ToBytesEncoded ( this data ) : byte[]
data this
return byte[]

ToCsv() public static method

public static ToCsv ( this values, string insertBetweenEach = ",", string insertBeforeEachValue = null, string insertAfterEachValue = null ) : string
values this
insertBetweenEach string
insertBeforeEachValue string
insertAfterEachValue string
return string

ToHtmlSafePlainText() public static method

public static ToHtmlSafePlainText ( this value ) : string
value this
return string

ToHtmlSafeTagText() public static method

public static ToHtmlSafeTagText ( this value ) : string
value this
return string

ToHtmlSafeUrl() public static method

public static ToHtmlSafeUrl ( this value ) : string
value this
return string

ToStringAzViaMod() public static method

public static ToStringAzViaMod ( this i, bool includeUppercase = false, bool includeNumbers = false, char includedSymbols = null ) : string
i this
includeUppercase bool
includeNumbers bool
includedSymbols char
return string

ToStringAzViaMod() public static method

public static ToStringAzViaMod ( this i, char availableChars ) : string
i this
availableChars char
return string

ToStringDecode() public static method

public static ToStringDecode ( this data ) : string
data this
return string

ToStringWithCommaAndDecimals() public static method

public static ToStringWithCommaAndDecimals ( this value, uint numberOfDecimals ) : string
value this
numberOfDecimals uint
return string

ToStringWithCommas() public static method

public static ToStringWithCommas ( this value ) : string
value this
return string

Tokenize() public static method

public static Tokenize ( this source, string token = ",", bool includeToken = false ) : string[]
source this
token string
includeToken bool
return string[]