C# Class Street.MvxPlugins.PhoneNumbers.PhoneNumberHelper

Inheritance: IPhoneNumberHelper
显示文件 Open project: kstreet/Street.MvxPlugins

Public Methods

Method Description
FormatPhoneNumberAsYouType ( string charToAddToFormatter, string regionCodeAsIso3166Alpha2 ) : string
GetE164PhoneNumberFormat ( string phoneNumberToConvertToE164Standard, string regionCodeAsIso3166Alpha2 ) : string
GetExampleNationalPhoneNumberForCountryCode ( string regionCodeAsIso3166Alpha2 ) : string
GetNumberCharactersOnly ( string stringToMakeDigitsOnly ) : string
GetPhoneNumberCountryCodeForIsoRegion ( string regionCodeAsIso3166Alpha2 ) : string
PhoneNumberHelper ( ) : System

Private Methods

Method Description
ClearFormatterContent ( ) : void
FormatPhoneNumber ( char charToAddToFormatterInstance, string validatedRegionCode ) : string

Method Details

FormatPhoneNumberAsYouType() public method

public FormatPhoneNumberAsYouType ( string charToAddToFormatter, string regionCodeAsIso3166Alpha2 ) : string
charToAddToFormatter string
regionCodeAsIso3166Alpha2 string
return string

GetE164PhoneNumberFormat() public method

public GetE164PhoneNumberFormat ( string phoneNumberToConvertToE164Standard, string regionCodeAsIso3166Alpha2 ) : string
phoneNumberToConvertToE164Standard string
regionCodeAsIso3166Alpha2 string
return string

GetExampleNationalPhoneNumberForCountryCode() public method

public GetExampleNationalPhoneNumberForCountryCode ( string regionCodeAsIso3166Alpha2 ) : string
regionCodeAsIso3166Alpha2 string
return string

GetNumberCharactersOnly() public static method

public static GetNumberCharactersOnly ( string stringToMakeDigitsOnly ) : string
stringToMakeDigitsOnly string
return string

GetPhoneNumberCountryCodeForIsoRegion() public method

public GetPhoneNumberCountryCodeForIsoRegion ( string regionCodeAsIso3166Alpha2 ) : string
regionCodeAsIso3166Alpha2 string
return string

PhoneNumberHelper() public method

public PhoneNumberHelper ( ) : System
return System