NormalPhone 1.0.0

dotnet add package NormalPhone --version 1.0.0
NuGet\Install-Package NormalPhone -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NormalPhone" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NormalPhone --version 1.0.0
#r "nuget: NormalPhone, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NormalPhone as a Cake Addin
#addin nuget:?package=NormalPhone&version=1.0.0

// Install NormalPhone as a Cake Tool
#tool nuget:?package=NormalPhone&version=1.0.0

Phone number string normalization-denormalization tools

PhoneNormalizationContext context = new PhoneNormalizationContextImpl();

Assert.AreEqual("7 1112223344", context.NormalNumberFactory.make("+7 111 222-33-44"));
Assert.AreEqual("7 1112223344", context.NormalNumberFactory.make("+7 111 222 33 44"));
Assert.AreEqual("44 3811294728", context.NormalNumberFactory.make("+44 (381) 129-47-28"));
Assert.AreEqual("33 7540250047", context.NormalNumberFactory.make("+33 754 025.00.47"));

Assert.AreEqual(string.Empty, context.NormalNumberFactory.make("2.3.4.5"));
Assert.AreEqual(string.Empty, context.NormalNumberFactory.make("not a phone number"));

Assert.AreEqual("+7 912 923-56-73", context.InternationalNumberFactory.make("7 9129235673"));
Assert.AreEqual("+1 534-137-2039", context.InternationalNumberFactory.make("1 5341372039"));
Assert.AreEqual("+33 2981259365", context.InternationalNumberFactory.make("33 2981259365"));
Assert.AreEqual("+44 847 274 3614", context.InternationalNumberFactory.make("44 8472743614"));
Assert.AreEqual("+39 387 108 3726", context.InternationalNumberFactory.make("39 3871083726"));
Assert.AreEqual("+49 1115640837", context.InternationalNumberFactory.make("49 1115640837"));
Assert.AreEqual("+358 2 183783290", context.InternationalNumberFactory.make("358 2183783290"));

Assert.AreEqual(string.Empty, context.InternationalNumberFactory.make("D 238947"));
Assert.AreEqual(string.Empty, context.InternationalNumberFactory.make("is not a phone number"));
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 722 5/19/2019

First version