在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → libphonenumber-csharp:C#原始端口克隆源码下载

libphonenumber-csharp:C#原始端口克隆源码下载

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:2.51M
  • 下载次数:0
  • 浏览次数:7
  • 发布时间:2024-03-17
  • 实例类别:一般编程问题
  • 发 布 人:chenxiaolan
  • 文件格式:.zip
  • 所需积分:2
 相关标签: Csharp lib ber ib cs

实例介绍

【实例简介】
libphonenumber-csharp: Forking original c# port源码下载
概览
libphonenumber-csharp是一个电话号码处理库,现已支持在Windows Phone上直接使用,同时也支持在Windows 10设备上的UWP应用中使用。
该库是从Java源代码重写而来的C#版本,它保留了原始的Apache License 2.0许可。为了了解更多关于这个端口的信息,请参考原始文档。
功能特点:
- 解析/格式化/验证世界上所有国家/地区的电话号码。
- GetNumberType - 根据电话号码本身获取号码类型;能够区分固定电话、移动电话、免费电话、高级费率电话、共享成本电话、VoIP电话和个人电话(在可行的情况下)。
- IsNumberMatch - 获取两个号码可能相同的置信等级。
- GetExampleNumber/GetExampleNumberByType - 为218个国家/地区提供有效的示例号码,并且可以指定所需的示例电话号码的类型。
- IsPossibleNumber - 仅通过长度信息快速猜测一个号码是否可能是电话号码,比完整的验证要快得多。
- AsYouTypeFormatter - 当用户输入每个数字时即时格式化电话号码。
- FindNumbers - 在文本输入中找到电话号码。
这是一个适合开发者和技术爱好者的资源,尤其是那些需要在应用程序中处理电话号码的开发者。
// 示例代码(此处可根据实际内容替换示例代码)

【实例截图】
【核心代码】
文件清单
└── libphonenumber-csharp-da90da1460d7df286373e65a1717d15e95ddee20
    ├── AUTHORS
    ├── csharp
    │   ├── lib
    │   │   ├── cleanprotobuf.py
    │   │   ├── copyres.py
    │   │   ├── DumpLocale.java
    │   │   ├── fixcs.py
    │   │   ├── Google.ProtocolBuffers.dll
    │   │   ├── makeprotobuf.bat
    │   │   ├── NuGet.exe
    │   │   ├── nunit.framework.dll
    │   │   ├── nunit.framework.xml
    │   │   ├── protobuf-license.txt
    │   │   ├── protoc.exe
    │   │   ├── ProtoGen.exe
    │   │   ├── publish.py
    │   │   └── version.py
    │   ├── PhoneNumbers
    │   │   ├── AreaCodeMap.cs
    │   │   ├── AreaCodeMapStorageStrategy.cs
    │   │   ├── AreaCodeParser.cs
    │   │   ├── AsYouTypeFormatter.cs
    │   │   ├── BuildMetadataFromXml.cs
    │   │   ├── CountryCodeToRegionCodeMap.cs
    │   │   ├── DefaultMapStorage.cs
    │   │   ├── FlyweightMapStorage.cs
    │   │   ├── ListExtension.cs
    │   │   ├── LocaleData.cs
    │   │   ├── MappingFileProvider.cs
    │   │   ├── MetadataManager.cs
    │   │   ├── NumberParseException.cs
    │   │   ├── Phonemetadata.cs
    │   │   ├── PhoneNumberAlternateFormats.xml
    │   │   ├── Phonenumber.cs
    │   │   ├── PhoneNumberMatch.cs
    │   │   ├── PhoneNumberMatcher.cs
    │   │   ├── PhoneNumberMetaDataForTesting.xml
    │   │   ├── PhoneNumberMetaData.xml
    │   │   ├── PhoneNumberOfflineGeocoder.cs
    │   │   ├── PhoneNumbers.csproj
    │   │   ├── PhoneNumbers.nuspec
    │   │   ├── PhoneNumberUtil.cs
    │   │   ├── PhoneRegex.cs
    │   │   ├── Properties
    │   │   │   └── AssemblyInfo.cs
    │   │   ├── RegexCache.cs
    │   │   ├── RegionCode.cs
    │   │   ├── res
    │   │   │   ├── localedata
    │   │   │   ├── prod_1_en
    │   │   │   ├── prod_20_en
    │   │   │   ├── prod_212_en
    │   │   │   ├── prod_212_fr
    │   │   │   ├── prod_213_en
    │   │   │   ├── prod_216_en
    │   │   │   ├── prod_220_en
    │   │   │   ├── prod_221_en
    │   │   │   ├── prod_222_en
    │   │   │   ├── prod_222_fr
    │   │   │   ├── prod_224_en
    │   │   │   ├── prod_225_en
    │   │   │   ├── prod_225_fr
    │   │   │   ├── prod_226_en
    │   │   │   ├── prod_228_en
    │   │   │   ├── prod_228_es
    │   │   │   ├── prod_228_fr
    │   │   │   ├── prod_229_en
    │   │   │   ├── prod_229_fr
    │   │   │   ├── prod_230_en
    │   │   │   ├── prod_230_es
    │   │   │   ├── prod_230_fr
    │   │   │   ├── prod_232_en
    │   │   │   ├── prod_233_en
    │   │   │   ├── prod_234_en
    │   │   │   ├── prod_238_en
    │   │   │   ├── prod_238_pt
    │   │   │   ├── prod_239_en
    │   │   │   ├── prod_239_pt
    │   │   │   ├── prod_242_en
    │   │   │   ├── prod_242_fr
    │   │   │   ├── prod_243_en
    │   │   │   ├── prod_243_fr
    │   │   │   ├── prod_244_en
    │   │   │   ├── prod_244_pt
    │   │   │   ├── prod_245_en
    │   │   │   ├── prod_245_pt
    │   │   │   ├── prod_247_en
    │   │   │   ├── prod_249_en
    │   │   │   ├── prod_251_en
    │   │   │   ├── prod_252_en
    │   │   │   ├── prod_254_en
    │   │   │   ├── prod_256_en
    │   │   │   ├── prod_258_en
    │   │   │   ├── prod_258_pt
    │   │   │   ├── prod_260_en
    │   │   │   ├── prod_261_en
    │   │   │   ├── prod_263_en
    │   │   │   ├── prod_264_en
    │   │   │   ├── prod_266_en
    │   │   │   ├── prod_267_en
    │   │   │   ├── prod_268_en
    │   │   │   ├── prod_269_en
    │   │   │   ├── prod_269_fr
    │   │   │   ├── prod_27_en
    │   │   │   ├── prod_290_en
    │   │   │   ├── prod_290_fr
    │   │   │   ├── prod_299_en
    │   │   │   ├── prod_30_el
    │   │   │   ├── prod_30_en
    │   │   │   ├── prod_31_en
    │   │   │   ├── prod_31_nl
    │   │   │   ├── prod_33_en
    │   │   │   ├── prod_33_fr
    │   │   │   ├── prod_34_en
    │   │   │   ├── prod_34_es
    │   │   │   ├── prod_351_en
    │   │   │   ├── prod_351_pt
    │   │   │   ├── prod_352_de
    │   │   │   ├── prod_352_en
    │   │   │   ├── prod_352_fr
    │   │   │   ├── prod_353_en
    │   │   │   ├── prod_354_en
    │   │   │   ├── prod_355_en
    │   │   │   ├── prod_358_en
    │   │   │   ├── prod_358_fi
    │   │   │   ├── prod_358_se
    │   │   │   ├── prod_36_en
    │   │   │   ├── prod_36_hu
    │   │   │   ├── prod_370_en
    │   │   │   ├── prod_371_en
    │   │   │   ├── prod_372_en
    │   │   │   ├── prod_373_en
    │   │   │   ├── prod_373_ro
    │   │   │   ├── prod_373_ru
    │   │   │   ├── prod_374_en
    │   │   │   ├── prod_381_en
    │   │   │   ├── prod_381_sr
    │   │   │   ├── prod_39_en
    │   │   │   ├── prod_39_it
    │   │   │   ├── prod_40_en
    │   │   │   ├── prod_40_ro
    │   │   │   ├── prod_41_de
    │   │   │   ├── prod_41_en
    │   │   │   ├── prod_41_fr
    │   │   │   ├── prod_41_it
    │   │   │   ├── prod_420_en
    │   │   │   ├── prod_421_en
    │   │   │   ├── prod_43_de
    │   │   │   ├── prod_43_en
    │   │   │   ├── prod_44_en
    │   │   │   ├── prod_46_en
    │   │   │   ├── prod_46_sv
    │   │   │   ├── prod_48_en
    │   │   │   ├── prod_48_pl
    │   │   │   ├── prod_49_de
    │   │   │   ├── prod_49_en
    │   │   │   ├── prod_51_en
    │   │   │   ├── prod_53_en
    │   │   │   ├── prod_54_en
    │   │   │   ├── prod_54_es
    │   │   │   ├── prod_55_en
    │   │   │   ├── prod_55_pt
    │   │   │   ├── prod_56_en
    │   │   │   ├── prod_56_es
    │   │   │   ├── prod_57_en
    │   │   │   ├── prod_57_es
    │   │   │   ├── prod_58_en
    │   │   │   ├── prod_58_es
    │   │   │   ├── prod_62_en
    │   │   │   ├── prod_62_id
    │   │   │   ├── prod_66_en
    │   │   │   ├── prod_66_th
    │   │   │   ├── prod_7_en
    │   │   │   ├── prod_7_ru
    │   │   │   ├── prod_81_en
    │   │   │   ├── prod_81_ja
    │   │   │   ├── prod_82_en
    │   │   │   ├── prod_82_fr
    │   │   │   ├── prod_82_ko
    │   │   │   ├── prod_82_zh
    │   │   │   ├── prod_82_zh_Hant
    │   │   │   ├── prod_84_en
    │   │   │   ├── prod_84_vi
    │   │   │   ├── prod_86_en
    │   │   │   ├── prod_86_zh
    │   │   │   ├── prod_886_en
    │   │   │   ├── prod_886_zh
    │   │   │   ├── prod_886_zh_Hant
    │   │   │   ├── prod_90_en
    │   │   │   ├── prod_90_tr
    │   │   │   ├── prod_91_en
    │   │   │   ├── prod_94_en
    │   │   │   ├── prod_98_en
    │   │   │   ├── prod_98_fa
    │   │   │   ├── test_1_de
    │   │   │   ├── test_1_en
    │   │   │   ├── test_82_en
    │   │   │   └── test_82_ko
    │   │   ├── ShortNumberUtil.cs
    │   │   ├── Util.cs
    │   │   └── XDocumentLegacy.cs
    │   ├── PhoneNumbers.sln
    │   ├── PhoneNumbers.Test
    │   │   ├── CountryCodeToRegionCodeMapForTesting.cs
    │   │   ├── PhoneNumbers.Test.csproj
    │   │   ├── Properties
    │   │   │   └── AssemblyInfo.cs
    │   │   ├── TestAreaCodeMap.cs
    │   │   ├── TestAsYouTypeFormatter.cs
    │   │   ├── TestBuildMetadataFromXml.cs
    │   │   ├── TestExampleNumbers.cs
    │   │   ├── TestMappingFileProvider.cs
    │   │   ├── TestMedataManager.cs
    │   │   ├── TestMetadataTestCase.cs
    │   │   ├── TestPhonenumber.cs
    │   │   ├── TestPhoneNumberMatch.cs
    │   │   ├── TestPhoneNumberMatcher.cs
    │   │   ├── TestPhoneNumberOfflineGeocoder.cs
    │   │   ├── TestPhoneNumberUtil.cs
    │   │   ├── TestRegexCache.cs
    │   │   └── TestShortNumberUtil.cs
    │   ├── PhoneNumbers-uwp
    │   │   ├── nuget
    │   │   │   └── WinSmartPhoneIcon.png
    │   │   ├── PhoneNumbers-uwp.csproj
    │   │   ├── PhoneNumbers-uwp.nuspec
    │   │   ├── project.json
    │   │   ├── Properties
    │   │   │   ├── AssemblyInfo.cs
    │   │   │   └── PhoneNumbers_uwp.rd.xml
    │   │   └── README.md
    │   └── README.txt
    ├── LICENSE
    ├── README.md
    └── resources
        ├── geocoding
        │   ├── de
        │   │   ├── 352.txt
        │   │   ├── 41.txt
        │   │   ├── 43.txt
        │   │   └── 49.txt
        │   ├── el
        │   │   └── 30.txt
        │   ├── en
        │   │   ├── 1.txt
        │   │   ├── 20.txt
        │   │   ├── 212.txt
        │   │   ├── 213.txt
        │   │   ├── 216.txt
        │   │   ├── 220.txt
        │   │   ├── 221.txt
        │   │   ├── 222.txt
        │   │   ├── 224.txt
        │   │   ├── 225.txt
        │   │   ├── 226.txt
        │   │   ├── 228.txt
        │   │   ├── 229.txt
        │   │   ├── 230.txt
        │   │   ├── 232.txt
        │   │   ├── 233.txt
        │   │   ├── 234.txt
        │   │   ├── 238.txt
        │   │   ├── 239.txt
        │   │   ├── 242.txt
        │   │   ├── 243.txt
        │   │   ├── 244.txt
        │   │   ├── 245.txt
        │   │   ├── 247.txt
        │   │   ├── 249.txt
        │   │   ├── 251.txt
        │   │   ├── 252.txt
        │   │   ├── 254.txt
        │   │   ├── 256.txt
        │   │   ├── 258.txt
        │   │   ├── 260.txt
        │   │   ├── 261.txt
        │   │   ├── 263.txt
        │   │   ├── 264.txt
        │   │   ├── 266.txt
        │   │   ├── 267.txt
        │   │   ├── 268.txt
        │   │   ├── 269.txt
        │   │   ├── 27.txt
        │   │   ├── 290.txt
        │   │   ├── 299.txt
        │   │   ├── 30.txt
        │   │   ├── 31.txt
        │   │   ├── 33.txt
        │   │   ├── 34.txt
        │   │   ├── 351.txt
        │   │   ├── 352.txt
        │   │   ├── 353.txt
        │   │   ├── 354.txt
        │   │   ├── 355.txt
        │   │   ├── 358.txt
        │   │   ├── 36.txt
        │   │   ├── 370.txt
        │   │   ├── 371.txt
        │   │   ├── 372.txt
        │   │   ├── 373.txt
        │   │   ├── 374.txt
        │   │   ├── 381.txt
        │   │   ├── 39.txt
        │   │   ├── 40.txt
        │   │   ├── 41.txt
        │   │   ├── 420.txt
        │   │   ├── 421.txt
        │   │   ├── 43.txt
        │   │   ├── 44.txt
        │   │   ├── 46.txt
        │   │   ├── 48.txt
        │   │   ├── 49.txt
        │   │   ├── 51.txt
        │   │   ├── 53.txt
        │   │   ├── 54.txt
        │   │   ├── 55.txt
        │   │   ├── 56.txt
        │   │   ├── 57.txt
        │   │   ├── 58.txt
        │   │   ├── 62.txt
        │   │   ├── 66.txt
        │   │   ├── 7.txt
        │   │   ├── 81.txt
        │   │   ├── 82.txt
        │   │   ├── 84.txt
        │   │   ├── 86.txt
        │   │   ├── 886.txt
        │   │   ├── 90.txt
        │   │   ├── 91.txt
        │   │   ├── 94.txt
        │   │   └── 98.txt
        │   ├── es
        │   │   ├── 228.txt
        │   │   ├── 230.txt
        │   │   ├── 34.txt
        │   │   ├── 54.txt
        │   │   ├── 56.txt
        │   │   ├── 57.txt
        │   │   └── 58.txt
        │   ├── fa
        │   │   └── 98.txt
        │   ├── fi
        │   │   └── 358.txt
        │   ├── fr
        │   │   ├── 212.txt
        │   │   ├── 222.txt
        │   │   ├── 225.txt
        │   │   ├── 228.txt
        │   │   ├── 229.txt
        │   │   ├── 230.txt
        │   │   ├── 242.txt
        │   │   ├── 243.txt
        │   │   ├── 269.txt
        │   │   ├── 290.txt
        │   │   ├── 33.txt
        │   │   ├── 352.txt
        │   │   ├── 41.txt
        │   │   └── 82.txt
        │   ├── hu
        │   │   └── 36.txt
        │   ├── id
        │   │   └── 62.txt
        │   ├── it
        │   │   ├── 39.txt
        │   │   └── 41.txt
        │   ├── ja
        │   │   └── 81.txt
        │   ├── ko
        │   │   └── 82.txt
        │   ├── nl
        │   │   └── 31.txt
        │   ├── pl
        │   │   └── 48.txt
        │   ├── pt
        │   │   ├── 238.txt
        │   │   ├── 239.txt
        │   │   ├── 244.txt
        │   │   ├── 245.txt
        │   │   ├── 258.txt
        │   │   ├── 351.txt
        │   │   └── 55.txt
        │   ├── ro
        │   │   ├── 373.txt
        │   │   └── 40.txt
        │   ├── ru
        │   │   ├── 373.txt
        │   │   └── 7.txt
        │   ├── se
        │   │   └── 358.txt
        │   ├── sr
        │   │   └── 381.txt
        │   ├── sv
        │   │   └── 46.txt
        │   ├── th
        │   │   └── 66.txt
        │   ├── tr
        │   │   └── 90.txt
        │   ├── vi
        │   │   └── 84.txt
        │   ├── zh
        │   │   ├── 82.txt
        │   │   ├── 86.txt
        │   │   └── 886.txt
        │   └── zh_Hant
        │       ├── 82.txt
        │       └── 886.txt
        ├── phonemetadata.proto
        ├── PhoneNumberAlternateFormats.xml
        ├── PhoneNumberMetaDataForTesting.xml
        ├── PhoneNumberMetaData.xml
        ├── phonenumber.proto
        └── test
            └── geocoding
                ├── de
                │   └── 1.txt
                ├── en
                │   ├── 1.txt
                │   └── 82.txt
                └── ko
                    └── 82.txt

43 directories, 378 files

标签: Csharp lib ber ib cs

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警