C# Class Simplify.String.StringHelper

Strings operations helper class
Afficher le fichier Open project: i4004/Simplify.Web

Méthodes publiques

Méthode 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

Méthode Description
Matching ( string stringA, string stringB, int length ) : RetCount

Method Details

IndistinctMatching() public static méthode

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.
Résultat float

ParseMobilePhone() public static méthode

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

StripHtmlTags() public static méthode

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

ValidateEMail() public static méthode

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

ValidateMobilePhone() public static méthode

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