getKR function
Phone Number JSON data for KR
Implementation
Map<String, Object?> getKR() {
return {
"generalDesc": {
"nationalNumberPattern":
"00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",
"possibleLength": [5, 6, 8, 9, 10, 11, 12, 13, 14],
"possibleLengthLocalOnly": [3, 4, 7]
},
"fixedLine": {
"nationalNumberPattern":
"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",
"exampleNumber": "22123456",
"possibleLength": [5, 6, 8, 9, 10],
"possibleLengthLocalOnly": [3, 4, 7]
},
"mobile": {
"nationalNumberPattern":
"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",
"exampleNumber": "1020000000",
"possibleLength": [9, 10],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"nationalNumberPattern":
"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}",
"exampleNumber": "801234567",
"possibleLength": [9, 11, 12, 13, 14],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"nationalNumberPattern": "60[2-9]\\d{6}",
"exampleNumber": "602345678",
"possibleLength": [9],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"nationalNumberPattern": "50\\d{8,9}",
"exampleNumber": "5012345678",
"possibleLength": [10, 11],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"nationalNumberPattern": "70\\d{8}",
"exampleNumber": "7012345678",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"id": "KR",
"countryCode": 82,
"internationalPrefix":
"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))",
"nationalPrefix": "0",
"nationalPrefixForParsing": "0(8(?:[1-46-8]|5\\d\\d))?",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{5})",
"format": "\$1",
"leadingDigitsPattern": ["1[016-9]1", "1[016-9]11", "1[016-9]114"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3,4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["(?:3[1-3]|[46][1-4]|5[1-5])1"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3,4})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[36]0|8"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3,4})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[1346]|5[1-5]"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{4})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[57]"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{5})(\\d{3})(\\d{3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["003", "0030"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{5})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["5"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{5})(\\d{3,4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["0"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{5})(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3 \$4",
"leadingDigitsPattern": ["0"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d{2})(\\d{3,4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["(?:3[1-3]|[46][1-4]|5[1-5])1"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{4})",
"format": "\$1-\$2",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{3,4})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[36]0|8"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3,4})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[1346]|5[1-5]"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{4})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["[57]"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{5})(\\d{4})",
"format": "\$1-\$2-\$3",
"leadingDigitsPattern": ["5"],
"nationalPrefixFormattingRule": "0\$1",
"domesticCarrierCodeFormattingRule": "0\$CC-\$1",
"nationalPrefixOptionalWhenFormatting": false
}
],
"pager": {
"nationalNumberPattern": "15\\d{7,8}",
"exampleNumber": "1523456789",
"possibleLength": [9, 10],
"possibleLengthLocalOnly": [-1]
},
"mainCountryForCode": false,
"noInternationalDialling": {
"nationalNumberPattern": "00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",
"possibleLength": [11, 12, 13, 14],
"possibleLengthLocalOnly": [-1]
},
"uan": {
"nationalNumberPattern":
"1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))\\d{4}",
"exampleNumber": "15441234",
"possibleLength": [8],
"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]
}
};
}