getTW function
Phone Number JSON data for TW
Implementation
Map<String, Object?> getTW() {
return {
"generalDesc": {
"nationalNumberPattern": "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",
"possibleLength": [7, 8, 9, 10, 11]
},
"fixedLine": {
"nationalNumberPattern":
"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",
"exampleNumber": "221234567",
"possibleLength": [8, 9],
"possibleLengthLocalOnly": [-1]
},
"mobile": {
"nationalNumberPattern": "(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",
"exampleNumber": "912345678",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"nationalNumberPattern": "80[0-79]\\d{6}|800\\d{5}",
"exampleNumber": "800123456",
"possibleLength": [8, 9],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"nationalNumberPattern": "20(?:[013-9]\\d\\d|2)\\d{4}",
"exampleNumber": "203123456",
"possibleLength": [7, 9],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"nationalNumberPattern": "99\\d{7}",
"exampleNumber": "990123456",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"nationalNumberPattern":
"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",
"exampleNumber": "7012345678",
"possibleLength": [10, 11],
"possibleLengthLocalOnly": [-1]
},
"id": "TW",
"countryCode": 886,
"internationalPrefix": "0(?:0[25-79]|19)",
"nationalPrefix": "0",
"preferredExtnPrefix": "#",
"nationalPrefixForParsing": "0",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{2})(\\d)(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["202"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[258]0"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3,4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": [
"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]",
"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"
],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[49]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{4})(\\d{4,5})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["7"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d{2})(\\d)(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["202"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[258]0"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3,4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": [
"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]",
"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"
],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[49]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{4})(\\d{4,5})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["7"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
}
],
"pager": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"mainCountryForCode": false,
"noInternationalDialling": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"uan": {
"nationalNumberPattern": "50[0-46-9]\\d{6}",
"exampleNumber": "500123456",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
},
"emergency": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voicemail": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"shortCode": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"standardRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"carrierSpecific": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"mobileNumberPortableRegion": true,
"smsServices": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
}
};
}