C# Class Apache.Shiro.Util.StringUtils

ファイルを表示 Open project: katasource/shironet

Public Methods

Method Description
Clean ( string value ) : string
HasLength ( string value ) : bool
HasText ( string value ) : bool
Split ( string value, char delimiter = DEFAULT_DELIMITER_CHAR, char beginQuote = DEFAULT_QUOTE_CHAR, char endQuote = DEFAULT_QUOTE_CHAR, bool retainQuotes = false, bool trimTokens = true ) : string[]
SplitKeyValue ( string keyValue ) : string[]
StartsWithIgnoreCase ( string value, string prefix ) : bool
ToDelimitedString ( string delimiter ) : string
ToString ( ) : string
ToStringArray ( ICollection collection ) : string[]
TokenizeToStringArray ( string value, string delimiters, bool trimTokens = true, bool ignoreEmptyTokens = true ) : string[]

Method Details

Clean() public static method

public static Clean ( string value ) : string
value string
return string

HasLength() public static method

public static HasLength ( string value ) : bool
value string
return bool

HasText() public static method

public static HasText ( string value ) : bool
value string
return bool

Split() public static method

public static Split ( string value, char delimiter = DEFAULT_DELIMITER_CHAR, char beginQuote = DEFAULT_QUOTE_CHAR, char endQuote = DEFAULT_QUOTE_CHAR, bool retainQuotes = false, bool trimTokens = true ) : string[]
value string
delimiter char
beginQuote char
endQuote char
retainQuotes bool
trimTokens bool
return string[]

SplitKeyValue() public static method

public static SplitKeyValue ( string keyValue ) : string[]
keyValue string
return string[]

StartsWithIgnoreCase() public static method

public static StartsWithIgnoreCase ( string value, string prefix ) : bool
value string
prefix string
return bool

ToDelimitedString() public static method

public static ToDelimitedString ( string delimiter ) : string
delimiter string
return string

ToString() public static method

public static ToString ( ) : string
return string

ToStringArray() public static method

public static ToStringArray ( ICollection collection ) : string[]
collection ICollection
return string[]

TokenizeToStringArray() public static method

public static TokenizeToStringArray ( string value, string delimiters, bool trimTokens = true, bool ignoreEmptyTokens = true ) : string[]
value string
delimiters string
trimTokens bool
ignoreEmptyTokens bool
return string[]