public static Normalize ( string str ) : string | ||
str | string | |
return | string |
public Number ParseNationalString(string @string) { @string = Number.Normalize(@string, null); if (StartsWithCountryCode(@string)) { @string = StripCountryCode(@string); return(FindFirstParsedNationalStringFromTerritories(@string)); } throw new FailedToParseNumberException(); }
private Number ParseInternationalString(string @string) { @string = Number.Normalize(@string, null); if (StartsWithPlus(@string)) { @string = StripLeadingPlus(@string); } Region region; if ((region = RegionForString(@string)) != null) { return(region.ParseNationalString(@string)); } throw new FailedToParseNumberException(); }
private string ToNationalNumber(string str) { return(StripNationalPrefix(Number.Normalize(str, this))); }
public string Normalize(string str) { return(Number.Normalize(str, this)); }