C# Класс Simplify.String.StringHelper

Strings operations helper class
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Matching ( string stringA, string stringB, int length ) : RetCount

Описание методов

IndistinctMatching() публичный статический Метод

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.
Результат float

ParseMobilePhone() публичный статический Метод

Parse and convert mobile phone to format like +77015543456
public static ParseMobilePhone ( string phone ) : string
phone string Mobile phone source string
Результат string

StripHtmlTags() публичный статический Метод

Strips the HTML tags of the strings.
public static StripHtmlTags ( string source ) : string
source string The source string.
Результат string

ValidateEMail() публичный статический Метод

Checking if e-mail address is correct
public static ValidateEMail ( string eMail ) : bool
eMail string E-mail address
Результат bool

ValidateMobilePhone() публичный статический Метод

Checking if mobile phone is correct
public static ValidateMobilePhone ( string phone ) : bool
phone string Mobile phone number
Результат bool