C# 클래스 Meek.StringExtension

파일 보기 프로젝트 열기: klintz/Meek

공개 메소드들

메소드 설명
Contains ( this source, string toCheck, System.StringComparison comparison ) : bool

Checks if the source string contains the specified string to check based on the comparison contstraint

IsInteger ( this source ) : bool

Checks if the string value is an integer

IsIntegerOnly ( this source ) : bool

Checks if the string contains integers only

IsNumber ( this source, bool floatpoint ) : bool

Checks if the specified string is a number

IsNumberOnly ( this source, bool floatpoint ) : bool

Checks if the string contains only digits or float-point

IsValidEmailAddress ( this source ) : bool

Returns true if the source string is a valid Email Address Format

IsValidUrl ( this source ) : bool

Checks if the String is a valid URL format

MD5 ( this source ) : string

Converts string into MD5 hash

Nl2Br ( this source ) : string

Replaces strings line breaks with html tag

Reduce ( this source, int count ) : string

Reduce String to shorter preview

Reduce ( this source, int count, string endings ) : string

Reduce String to shorter preview with a specified ending string

RemoveDiacritics ( this source ) : string

Removes diacritics character in a string

RemoveSpaces ( this source ) : string

Removes all emtpy spaces

Reverse ( this source ) : string

Reverse the source string

UrlAvailable ( this source ) : bool

Checks if the URL string is available

메소드 상세

Contains() 공개 정적인 메소드

Checks if the source string contains the specified string to check based on the comparison contstraint
public static Contains ( this source, string toCheck, System.StringComparison comparison ) : bool
source this Source String
toCheck string String to Check
comparison System.StringComparison StringComparison constraint
리턴 bool

IsInteger() 공개 정적인 메소드

Checks if the string value is an integer
public static IsInteger ( this source ) : bool
source this source string
리턴 bool

IsIntegerOnly() 공개 정적인 메소드

Checks if the string contains integers only
public static IsIntegerOnly ( this source ) : bool
source this source string
리턴 bool

IsNumber() 공개 정적인 메소드

Checks if the specified string is a number
public static IsNumber ( this source, bool floatpoint ) : bool
source this source string
floatpoint bool floating point flag
리턴 bool

IsNumberOnly() 공개 정적인 메소드

Checks if the string contains only digits or float-point
public static IsNumberOnly ( this source, bool floatpoint ) : bool
source this source string
floatpoint bool float point flag
리턴 bool

IsValidEmailAddress() 공개 정적인 메소드

Returns true if the source string is a valid Email Address Format
public static IsValidEmailAddress ( this source ) : bool
source this String to Check format
리턴 bool

IsValidUrl() 공개 정적인 메소드

Checks if the String is a valid URL format
public static IsValidUrl ( this source ) : bool
source this String to Check
리턴 bool

MD5() 공개 정적인 메소드

Converts string into MD5 hash
public static MD5 ( this source ) : string
source this string
리턴 string

Nl2Br() 공개 정적인 메소드

Replaces strings line breaks with html tag
public static Nl2Br ( this source ) : string
source this string
리턴 string

Reduce() 공개 정적인 메소드

Reduce String to shorter preview
public static Reduce ( this source, int count ) : string
source this source string
count int reduce length
리턴 string

Reduce() 공개 정적인 메소드

Reduce String to shorter preview with a specified ending string
public static Reduce ( this source, int count, string endings ) : string
source this source string
count int reduce length
endings string ending string
리턴 string

RemoveDiacritics() 공개 정적인 메소드

Removes diacritics character in a string
public static RemoveDiacritics ( this source ) : string
source this string
리턴 string

RemoveSpaces() 공개 정적인 메소드

Removes all emtpy spaces
public static RemoveSpaces ( this source ) : string
source this source string
리턴 string

Reverse() 공개 정적인 메소드

Reverse the source string
public static Reverse ( this source ) : string
source this String to be reversed
리턴 string

UrlAvailable() 공개 정적인 메소드

Checks if the URL string is available
public static UrlAvailable ( this source ) : bool
source this URL string
리턴 bool