C# Class Simplify.String.StringHelper

Strings operations helper class
Mostrar archivo Open project: i4004/Simplify.Web

Public Methods

Method Description
IndistinctMatching ( string stringA, string stringB, int comparingBlockLength = 3 ) : float

Indistinct matching of the two strings.

ParseMobilePhone ( string phone ) : string

Parse and convert mobile phone to format like +77015543456

StripHtmlTags ( string source ) : string

Strips the HTML tags of the strings.

ValidateEMail ( string eMail ) : bool

Checking if e-mail address is correct

ValidateMobilePhone ( string phone ) : bool

Checking if mobile phone is correct

Private Methods

Method Description
Matching ( string stringA, string stringB, int length ) : RetCount

Method Details

IndistinctMatching() public static method

Indistinct matching of the two strings.
public static IndistinctMatching ( string stringA, string stringB, int comparingBlockLength = 3 ) : float
stringA string The string a.
stringB string The string b.
comparingBlockLength int Length of the comparing block.
return float

ParseMobilePhone() public static method

Parse and convert mobile phone to format like +77015543456
public static ParseMobilePhone ( string phone ) : string
phone string Mobile phone source string
return string

StripHtmlTags() public static method

Strips the HTML tags of the strings.
public static StripHtmlTags ( string source ) : string
source string The source string.
return string

ValidateEMail() public static method

Checking if e-mail address is correct
public static ValidateEMail ( string eMail ) : bool
eMail string E-mail address
return bool

ValidateMobilePhone() public static method

Checking if mobile phone is correct
public static ValidateMobilePhone ( string phone ) : bool
phone string Mobile phone number
return bool