Best JavaScript code snippet using wpt
phone.js
Source:phone.js
1/*!2* phone-codes/phone.js3* https://github.com/RobinHerbots/Inputmask4* Copyright (c) 2010 - 2017 Robin Herbots5* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)6* Version: 3.3.117*/8!function(factory) {9 "function" == typeof define && define.amd ? define([ "../inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("../inputmask")) : factory(window.Inputmask);10}(function(Inputmask) {11 return Inputmask.extendAliases({12 phone: {13 alias: "abstractphone",14 phoneCodes: [ {15 mask: "+247-####",16 cc: "AC",17 cd: "Ascension",18 desc_en: "",19 name_ru: "ÐÑÑÑов ÐознеÑениÑ",20 desc_ru: ""21 }, {22 mask: "+376-###-###",23 cc: "AD",24 cd: "Andorra",25 desc_en: "",26 name_ru: "ÐндоÑÑа",27 desc_ru: ""28 }, {29 mask: "+971-5#-###-####",30 cc: "AE",31 cd: "United Arab Emirates",32 desc_en: "mobile",33 name_ru: "ÐбÑединеннÑе ÐÑабÑкие ÐмиÑаÑÑ",34 desc_ru: "мобилÑнÑе"35 }, {36 mask: "+971-#-###-####",37 cc: "AE",38 cd: "United Arab Emirates",39 desc_en: "",40 name_ru: "ÐбÑединеннÑе ÐÑабÑкие ÐмиÑаÑÑ",41 desc_ru: ""42 }, {43 mask: "+93-##-###-####",44 cc: "AF",45 cd: "Afghanistan",46 desc_en: "",47 name_ru: "ÐÑганиÑÑан",48 desc_ru: ""49 }, {50 mask: "+1(268)###-####",51 cc: "AG",52 cd: "Antigua & Barbuda",53 desc_en: "",54 name_ru: "ÐнÑигÑа и ÐаÑбÑда",55 desc_ru: ""56 }, {57 mask: "+1(264)###-####",58 cc: "AI",59 cd: "Anguilla",60 desc_en: "",61 name_ru: "ÐнгилÑÑ",62 desc_ru: ""63 }, {64 mask: "+355(###)###-###",65 cc: "AL",66 cd: "Albania",67 desc_en: "",68 name_ru: "ÐлбаниÑ",69 desc_ru: ""70 }, {71 mask: "+374-##-###-###",72 cc: "AM",73 cd: "Armenia",74 desc_en: "",75 name_ru: "ÐÑмениÑ",76 desc_ru: ""77 }, {78 mask: "+599-###-####",79 cc: "AN",80 cd: "Caribbean Netherlands",81 desc_en: "",82 name_ru: "ÐаÑибÑкие ÐидеÑландÑ",83 desc_ru: ""84 }, {85 mask: "+599-###-####",86 cc: "AN",87 cd: "Netherlands Antilles",88 desc_en: "",89 name_ru: "ÐидеÑландÑкие ÐнÑилÑÑкие оÑÑÑова",90 desc_ru: ""91 }, {92 mask: "+599-9###-####",93 cc: "AN",94 cd: "Netherlands Antilles",95 desc_en: "Curacao",96 name_ru: "ÐидеÑландÑкие ÐнÑилÑÑкие оÑÑÑова",97 desc_ru: "ÐÑÑаÑао"98 }, {99 mask: "+244(###)###-###",100 cc: "AO",101 cd: "Angola",102 desc_en: "",103 name_ru: "Ðнгола",104 desc_ru: ""105 }, {106 mask: "+672-1##-###",107 cc: "AQ",108 cd: "Australian bases in Antarctica",109 desc_en: "",110 name_ru: "ÐвÑÑÑалийÑÐºÐ°Ñ Ð°Ð½ÑаÑкÑиÑеÑÐºÐ°Ñ Ð±Ð°Ð·Ð°",111 desc_ru: ""112 }, {113 mask: "+54(###)###-####",114 cc: "AR",115 cd: "Argentina",116 desc_en: "",117 name_ru: "ÐÑгенÑина",118 desc_ru: ""119 }, {120 mask: "+1(684)###-####",121 cc: "AS",122 cd: "American Samoa",123 desc_en: "",124 name_ru: "ÐмеÑиканÑкое Самоа",125 desc_ru: ""126 }, {127 mask: "+43(###)###-####",128 cc: "AT",129 cd: "Austria",130 desc_en: "",131 name_ru: "ÐвÑÑÑиÑ",132 desc_ru: ""133 }, {134 mask: "+61-#-####-####",135 cc: "AU",136 cd: "Australia",137 desc_en: "",138 name_ru: "ÐвÑÑÑалиÑ",139 desc_ru: ""140 }, {141 mask: "+297-###-####",142 cc: "AW",143 cd: "Aruba",144 desc_en: "",145 name_ru: "ÐÑÑба",146 desc_ru: ""147 }, {148 mask: "+994-##-###-##-##",149 cc: "AZ",150 cd: "Azerbaijan",151 desc_en: "",152 name_ru: "ÐзеÑбайджан",153 desc_ru: ""154 }, {155 mask: "+387-##-#####",156 cc: "BA",157 cd: "Bosnia and Herzegovina",158 desc_en: "",159 name_ru: "ÐоÑÐ½Ð¸Ñ Ð¸ ÐеÑÑеговина",160 desc_ru: ""161 }, {162 mask: "+387-##-####",163 cc: "BA",164 cd: "Bosnia and Herzegovina",165 desc_en: "",166 name_ru: "ÐоÑÐ½Ð¸Ñ Ð¸ ÐеÑÑеговина",167 desc_ru: ""168 }, {169 mask: "+1(246)###-####",170 cc: "BB",171 cd: "Barbados",172 desc_en: "",173 name_ru: "ÐаÑбадоÑ",174 desc_ru: ""175 }, {176 mask: "+880-##-###-###",177 cc: "BD",178 cd: "Bangladesh",179 desc_en: "",180 name_ru: "ÐангладеÑ",181 desc_ru: ""182 }, {183 mask: "+32(###)###-###",184 cc: "BE",185 cd: "Belgium",186 desc_en: "",187 name_ru: "ÐелÑгиÑ",188 desc_ru: ""189 }, {190 mask: "+226-##-##-####",191 cc: "BF",192 cd: "Burkina Faso",193 desc_en: "",194 name_ru: "ÐÑÑкина ФаÑо",195 desc_ru: ""196 }, {197 mask: "+359(###)###-###",198 cc: "BG",199 cd: "Bulgaria",200 desc_en: "",201 name_ru: "ÐолгаÑиÑ",202 desc_ru: ""203 }, {204 mask: "+973-####-####",205 cc: "BH",206 cd: "Bahrain",207 desc_en: "",208 name_ru: "ÐаÑ
Ñейн",209 desc_ru: ""210 }, {211 mask: "+257-##-##-####",212 cc: "BI",213 cd: "Burundi",214 desc_en: "",215 name_ru: "ÐÑÑÑнди",216 desc_ru: ""217 }, {218 mask: "+229-##-##-####",219 cc: "BJ",220 cd: "Benin",221 desc_en: "",222 name_ru: "Ðенин",223 desc_ru: ""224 }, {225 mask: "+1(441)###-####",226 cc: "BM",227 cd: "Bermuda",228 desc_en: "",229 name_ru: "ÐеÑмÑдÑкие оÑÑÑова",230 desc_ru: ""231 }, {232 mask: "+673-###-####",233 cc: "BN",234 cd: "Brunei Darussalam",235 desc_en: "",236 name_ru: "ÐÑÑней-ÐаÑÑÑÑалам",237 desc_ru: ""238 }, {239 mask: "+591-#-###-####",240 cc: "BO",241 cd: "Bolivia",242 desc_en: "",243 name_ru: "ÐоливиÑ",244 desc_ru: ""245 }, {246 mask: "+55-##-####-####",247 cc: "BR",248 cd: "Brazil",249 desc_en: "",250 name_ru: "ÐÑазилиÑ",251 desc_ru: ""252 }, {253 mask: "+55-##-#####-####",254 cc: "BR",255 cd: "Brazil",256 desc_en: "",257 name_ru: "ÐÑазилиÑ",258 desc_ru: ""259 }, {260 mask: "+1(242)###-####",261 cc: "BS",262 cd: "Bahamas",263 desc_en: "",264 name_ru: "ÐагамÑкие ÐÑÑÑова",265 desc_ru: ""266 }, {267 mask: "+975-17-###-###",268 cc: "BT",269 cd: "Bhutan",270 desc_en: "",271 name_ru: "ÐÑÑан",272 desc_ru: ""273 }, {274 mask: "+975-#-###-###",275 cc: "BT",276 cd: "Bhutan",277 desc_en: "",278 name_ru: "ÐÑÑан",279 desc_ru: ""280 }, {281 mask: "+267-##-###-###",282 cc: "BW",283 cd: "Botswana",284 desc_en: "",285 name_ru: "ÐоÑÑвана",286 desc_ru: ""287 }, {288 mask: "+375(##)###-##-##",289 cc: "BY",290 cd: "Belarus",291 desc_en: "",292 name_ru: "ÐелаÑÑÑÑ (ÐелоÑÑÑÑиÑ)",293 desc_ru: ""294 }, {295 mask: "+501-###-####",296 cc: "BZ",297 cd: "Belize",298 desc_en: "",299 name_ru: "Ðелиз",300 desc_ru: ""301 }, {302 mask: "+243(###)###-###",303 cc: "CD",304 cd: "Dem. Rep. Congo",305 desc_en: "",306 name_ru: "Ðем. РеÑп. Ðонго (ÐинÑаÑа)",307 desc_ru: ""308 }, {309 mask: "+236-##-##-####",310 cc: "CF",311 cd: "Central African Republic",312 desc_en: "",313 name_ru: "ЦенÑÑалÑноаÑÑиканÑÐºÐ°Ñ Ð ÐµÑпÑблика",314 desc_ru: ""315 }, {316 mask: "+242-##-###-####",317 cc: "CG",318 cd: "Congo (Brazzaville)",319 desc_en: "",320 name_ru: "Ðонго (ÐÑаззавилÑ)",321 desc_ru: ""322 }, {323 mask: "+41-##-###-####",324 cc: "CH",325 cd: "Switzerland",326 desc_en: "",327 name_ru: "ШвейÑаÑиÑ",328 desc_ru: ""329 }, {330 mask: "+225-##-###-###",331 cc: "CI",332 cd: "Cote dâIvoire (Ivory Coast)",333 desc_en: "",334 name_ru: "ÐоÑ-дâÐвÑаÑ",335 desc_ru: ""336 }, {337 mask: "+682-##-###",338 cc: "CK",339 cd: "Cook Islands",340 desc_en: "",341 name_ru: "ÐÑÑÑова ÐÑка",342 desc_ru: ""343 }, {344 mask: "+56-#-####-####",345 cc: "CL",346 cd: "Chile",347 desc_en: "",348 name_ru: "Чили",349 desc_ru: ""350 }, {351 mask: "+237-####-####",352 cc: "CM",353 cd: "Cameroon",354 desc_en: "",355 name_ru: "ÐамеÑÑн",356 desc_ru: ""357 }, {358 mask: "+86(###)####-####",359 cc: "CN",360 cd: "China (PRC)",361 desc_en: "",362 name_ru: "ÐиÑайÑÐºÐ°Ñ Ð.Ð .",363 desc_ru: ""364 }, {365 mask: "+86(###)####-###",366 cc: "CN",367 cd: "China (PRC)",368 desc_en: "",369 name_ru: "ÐиÑайÑÐºÐ°Ñ Ð.Ð .",370 desc_ru: ""371 }, {372 mask: "+86-##-#####-#####",373 cc: "CN",374 cd: "China (PRC)",375 desc_en: "",376 name_ru: "ÐиÑайÑÐºÐ°Ñ Ð.Ð .",377 desc_ru: ""378 }, {379 mask: "+57(###)###-####",380 cc: "CO",381 cd: "Colombia",382 desc_en: "",383 name_ru: "ÐолÑмбиÑ",384 desc_ru: ""385 }, {386 mask: "+506-####-####",387 cc: "CR",388 cd: "Costa Rica",389 desc_en: "",390 name_ru: "ÐоÑÑа-Рика",391 desc_ru: ""392 }, {393 mask: "+53-#-###-####",394 cc: "CU",395 cd: "Cuba",396 desc_en: "",397 name_ru: "ÐÑба",398 desc_ru: ""399 }, {400 mask: "+238(###)##-##",401 cc: "CV",402 cd: "Cape Verde",403 desc_en: "",404 name_ru: "Ðабо-ÐеÑде",405 desc_ru: ""406 }, {407 mask: "+599-###-####",408 cc: "CW",409 cd: "Curacao",410 desc_en: "",411 name_ru: "ÐÑÑаÑао",412 desc_ru: ""413 }, {414 mask: "+357-##-###-###",415 cc: "CY",416 cd: "Cyprus",417 desc_en: "",418 name_ru: "ÐипÑ",419 desc_ru: ""420 }, {421 mask: "+420(###)###-###",422 cc: "CZ",423 cd: "Czech Republic",424 desc_en: "",425 name_ru: "ЧеÑ
иÑ",426 desc_ru: ""427 }, {428 mask: "+49(####)###-####",429 cc: "DE",430 cd: "Germany",431 desc_en: "",432 name_ru: "ÐеÑманиÑ",433 desc_ru: ""434 }, {435 mask: "+49(###)###-####",436 cc: "DE",437 cd: "Germany",438 desc_en: "",439 name_ru: "ÐеÑманиÑ",440 desc_ru: ""441 }, {442 mask: "+49(###)##-####",443 cc: "DE",444 cd: "Germany",445 desc_en: "",446 name_ru: "ÐеÑманиÑ",447 desc_ru: ""448 }, {449 mask: "+49(###)##-###",450 cc: "DE",451 cd: "Germany",452 desc_en: "",453 name_ru: "ÐеÑманиÑ",454 desc_ru: ""455 }, {456 mask: "+49(###)##-##",457 cc: "DE",458 cd: "Germany",459 desc_en: "",460 name_ru: "ÐеÑманиÑ",461 desc_ru: ""462 }, {463 mask: "+49-###-###",464 cc: "DE",465 cd: "Germany",466 desc_en: "",467 name_ru: "ÐеÑманиÑ",468 desc_ru: ""469 }, {470 mask: "+253-##-##-##-##",471 cc: "DJ",472 cd: "Djibouti",473 desc_en: "",474 name_ru: "ÐжибÑÑи",475 desc_ru: ""476 }, {477 mask: "+45-##-##-##-##",478 cc: "DK",479 cd: "Denmark",480 desc_en: "",481 name_ru: "ÐаниÑ",482 desc_ru: ""483 }, {484 mask: "+1(767)###-####",485 cc: "DM",486 cd: "Dominica",487 desc_en: "",488 name_ru: "Ðоминика",489 desc_ru: ""490 }, {491 mask: "+1(809)###-####",492 cc: "DO",493 cd: "Dominican Republic",494 desc_en: "",495 name_ru: "ÐоминиканÑÐºÐ°Ñ Ð ÐµÑпÑблика",496 desc_ru: ""497 }, {498 mask: "+1(829)###-####",499 cc: "DO",500 cd: "Dominican Republic",501 desc_en: "",502 name_ru: "ÐоминиканÑÐºÐ°Ñ Ð ÐµÑпÑблика",503 desc_ru: ""504 }, {505 mask: "+1(849)###-####",506 cc: "DO",507 cd: "Dominican Republic",508 desc_en: "",509 name_ru: "ÐоминиканÑÐºÐ°Ñ Ð ÐµÑпÑблика",510 desc_ru: ""511 }, {512 mask: "+213-##-###-####",513 cc: "DZ",514 cd: "Algeria",515 desc_en: "",516 name_ru: "ÐлжиÑ",517 desc_ru: ""518 }, {519 mask: "+593-##-###-####",520 cc: "EC",521 cd: "Ecuador ",522 desc_en: "mobile",523 name_ru: "ÐÐºÐ²Ð°Ð´Ð¾Ñ ",524 desc_ru: "мобилÑнÑе"525 }, {526 mask: "+593-#-###-####",527 cc: "EC",528 cd: "Ecuador",529 desc_en: "",530 name_ru: "ÐквадоÑ",531 desc_ru: ""532 }, {533 mask: "+372-####-####",534 cc: "EE",535 cd: "Estonia ",536 desc_en: "mobile",537 name_ru: "ÐÑÑÐ¾Ð½Ð¸Ñ ",538 desc_ru: "мобилÑнÑе"539 }, {540 mask: "+372-###-####",541 cc: "EE",542 cd: "Estonia",543 desc_en: "",544 name_ru: "ÐÑÑониÑ",545 desc_ru: ""546 }, {547 mask: "+20(###)###-####",548 cc: "EG",549 cd: "Egypt",550 desc_en: "",551 name_ru: "ÐгипеÑ",552 desc_ru: ""553 }, {554 mask: "+291-#-###-###",555 cc: "ER",556 cd: "Eritrea",557 desc_en: "",558 name_ru: "ÐÑиÑÑеÑ",559 desc_ru: ""560 }, {561 mask: "+34(###)###-###",562 cc: "ES",563 cd: "Spain",564 desc_en: "",565 name_ru: "ÐÑпаниÑ",566 desc_ru: ""567 }, {568 mask: "+251-##-###-####",569 cc: "ET",570 cd: "Ethiopia",571 desc_en: "",572 name_ru: "ÐÑиопиÑ",573 desc_ru: ""574 }, {575 mask: "+358(###)###-##-##",576 cc: "FI",577 cd: "Finland",578 desc_en: "",579 name_ru: "ФинлÑндиÑ",580 desc_ru: ""581 }, {582 mask: "+679-##-#####",583 cc: "FJ",584 cd: "Fiji",585 desc_en: "",586 name_ru: "Фиджи",587 desc_ru: ""588 }, {589 mask: "+500-#####",590 cc: "FK",591 cd: "Falkland Islands",592 desc_en: "",593 name_ru: "ФолклендÑкие оÑÑÑова",594 desc_ru: ""595 }, {596 mask: "+691-###-####",597 cc: "FM",598 cd: "F.S. Micronesia",599 desc_en: "",600 name_ru: "Ф.Ш. ÐикÑонезии",601 desc_ru: ""602 }, {603 mask: "+298-###-###",604 cc: "FO",605 cd: "Faroe Islands",606 desc_en: "",607 name_ru: "ФаÑеÑÑкие оÑÑÑова",608 desc_ru: ""609 }, {610 mask: "+262-#####-####",611 cc: "FR",612 cd: "Mayotte",613 desc_en: "",614 name_ru: "ÐайоÑÑа",615 desc_ru: ""616 }, {617 mask: "+33(###)###-###",618 cc: "FR",619 cd: "France",620 desc_en: "",621 name_ru: "ФÑанÑиÑ",622 desc_ru: ""623 }, {624 mask: "+508-##-####",625 cc: "FR",626 cd: "St Pierre & Miquelon",627 desc_en: "",628 name_ru: "Сен-ÐÑÐµÑ Ð¸ Ðикелон",629 desc_ru: ""630 }, {631 mask: "+590(###)###-###",632 cc: "FR",633 cd: "Guadeloupe",634 desc_en: "",635 name_ru: "ÐваделÑпа",636 desc_ru: ""637 }, {638 mask: "+241-#-##-##-##",639 cc: "GA",640 cd: "Gabon",641 desc_en: "",642 name_ru: "Ðабон",643 desc_ru: ""644 }, {645 mask: "+1(473)###-####",646 cc: "GD",647 cd: "Grenada",648 desc_en: "",649 name_ru: "ÐÑенада",650 desc_ru: ""651 }, {652 mask: "+995(###)###-###",653 cc: "GE",654 cd: "Rep. of Georgia",655 desc_en: "",656 name_ru: "ÐÑÑзиÑ",657 desc_ru: ""658 }, {659 mask: "+594-#####-####",660 cc: "GF",661 cd: "Guiana (French)",662 desc_en: "",663 name_ru: "ФÑ. Ðвиана",664 desc_ru: ""665 }, {666 mask: "+233(###)###-###",667 cc: "GH",668 cd: "Ghana",669 desc_en: "",670 name_ru: "Ðана",671 desc_ru: ""672 }, {673 mask: "+350-###-#####",674 cc: "GI",675 cd: "Gibraltar",676 desc_en: "",677 name_ru: "ÐибÑалÑаÑ",678 desc_ru: ""679 }, {680 mask: "+299-##-##-##",681 cc: "GL",682 cd: "Greenland",683 desc_en: "",684 name_ru: "ÐÑенландиÑ",685 desc_ru: ""686 }, {687 mask: "+220(###)##-##",688 cc: "GM",689 cd: "Gambia",690 desc_en: "",691 name_ru: "ÐамбиÑ",692 desc_ru: ""693 }, {694 mask: "+224-##-###-###",695 cc: "GN",696 cd: "Guinea",697 desc_en: "",698 name_ru: "ÐвинеÑ",699 desc_ru: ""700 }, {701 mask: "+240-##-###-####",702 cc: "GQ",703 cd: "Equatorial Guinea",704 desc_en: "",705 name_ru: "ÐкваÑоÑиалÑÐ½Ð°Ñ ÐвинеÑ",706 desc_ru: ""707 }, {708 mask: "+30(###)###-####",709 cc: "GR",710 cd: "Greece",711 desc_en: "",712 name_ru: "ÐÑеÑиÑ",713 desc_ru: ""714 }, {715 mask: "+502-#-###-####",716 cc: "GT",717 cd: "Guatemala",718 desc_en: "",719 name_ru: "ÐваÑемала",720 desc_ru: ""721 }, {722 mask: "+1(671)###-####",723 cc: "GU",724 cd: "Guam",725 desc_en: "",726 name_ru: "ÐÑам",727 desc_ru: ""728 }, {729 mask: "+245-#-######",730 cc: "GW",731 cd: "Guinea-Bissau",732 desc_en: "",733 name_ru: "ÐвинеÑ-ÐиÑаÑ",734 desc_ru: ""735 }, {736 mask: "+592-###-####",737 cc: "GY",738 cd: "Guyana",739 desc_en: "",740 name_ru: "Ðайана",741 desc_ru: ""742 }, {743 mask: "+852-####-####",744 cc: "HK",745 cd: "Hong Kong",746 desc_en: "",747 name_ru: "Ðонконг",748 desc_ru: ""749 }, {750 mask: "+504-####-####",751 cc: "HN",752 cd: "Honduras",753 desc_en: "",754 name_ru: "ÐондÑÑаÑ",755 desc_ru: ""756 }, {757 mask: "+385-(##)-###-###",758 cc: "HR",759 cd: "Croatia",760 desc_en: "",761 name_ru: "ХоÑваÑиÑ",762 desc_ru: ""763 }, {764 mask: "+385-(##)-###-####",765 cc: "HR",766 cd: "Croatia",767 desc_en: "",768 name_ru: "ХоÑваÑиÑ",769 desc_ru: ""770 }, {771 mask: "+385-1-####-###",772 cc: "HR",773 cd: "Croatia",774 desc_en: "",775 name_ru: "ХоÑваÑиÑ",776 desc_ru: ""777 }, {778 mask: "+509-##-##-####",779 cc: "HT",780 cd: "Haiti",781 desc_en: "",782 name_ru: "ÐаиÑи",783 desc_ru: ""784 }, {785 mask: "+36(###)###-###",786 cc: "HU",787 cd: "Hungary",788 desc_en: "",789 name_ru: "ÐенгÑиÑ",790 desc_ru: ""791 }, {792 mask: "+62(8##)###-####",793 cc: "ID",794 cd: "Indonesia ",795 desc_en: "mobile",796 name_ru: "ÐÐ½Ð´Ð¾Ð½ÐµÐ·Ð¸Ñ ",797 desc_ru: "мобилÑнÑе"798 }, {799 mask: "+62-##-###-##",800 cc: "ID",801 cd: "Indonesia",802 desc_en: "",803 name_ru: "ÐндонезиÑ",804 desc_ru: ""805 }, {806 mask: "+62-##-###-###",807 cc: "ID",808 cd: "Indonesia",809 desc_en: "",810 name_ru: "ÐндонезиÑ",811 desc_ru: ""812 }, {813 mask: "+62-##-###-####",814 cc: "ID",815 cd: "Indonesia",816 desc_en: "",817 name_ru: "ÐндонезиÑ",818 desc_ru: ""819 }, {820 mask: "+62(8##)###-###",821 cc: "ID",822 cd: "Indonesia ",823 desc_en: "mobile",824 name_ru: "ÐÐ½Ð´Ð¾Ð½ÐµÐ·Ð¸Ñ ",825 desc_ru: "мобилÑнÑе"826 }, {827 mask: "+62(8##)###-##-###",828 cc: "ID",829 cd: "Indonesia ",830 desc_en: "mobile",831 name_ru: "ÐÐ½Ð´Ð¾Ð½ÐµÐ·Ð¸Ñ ",832 desc_ru: "мобилÑнÑе"833 }, {834 mask: "+353(###)###-###",835 cc: "IE",836 cd: "Ireland",837 desc_en: "",838 name_ru: "ÐÑландиÑ",839 desc_ru: ""840 }, {841 mask: "+972-5#-###-####",842 cc: "IL",843 cd: "Israel ",844 desc_en: "mobile",845 name_ru: "ÐзÑÐ°Ð¸Ð»Ñ ",846 desc_ru: "мобилÑнÑе"847 }, {848 mask: "+972-#-###-####",849 cc: "IL",850 cd: "Israel",851 desc_en: "",852 name_ru: "ÐзÑаилÑ",853 desc_ru: ""854 }, {855 mask: "+91(####)###-###",856 cc: "IN",857 cd: "India",858 desc_en: "",859 name_ru: "ÐндиÑ",860 desc_ru: ""861 }, {862 mask: "+246-###-####",863 cc: "IO",864 cd: "Diego Garcia",865 desc_en: "",866 name_ru: "Ðиего-ÐаÑÑиÑ",867 desc_ru: ""868 }, {869 mask: "+964(###)###-####",870 cc: "IQ",871 cd: "Iraq",872 desc_en: "",873 name_ru: "ÐÑак",874 desc_ru: ""875 }, {876 mask: "+98(###)###-####",877 cc: "IR",878 cd: "Iran",879 desc_en: "",880 name_ru: "ÐÑан",881 desc_ru: ""882 }, {883 mask: "+354-###-####",884 cc: "IS",885 cd: "Iceland",886 desc_en: "",887 name_ru: "ÐÑландиÑ",888 desc_ru: ""889 }, {890 mask: "+39(###)####-###",891 cc: "IT",892 cd: "Italy",893 desc_en: "",894 name_ru: "ÐÑалиÑ",895 desc_ru: ""896 }, {897 mask: "+1(876)###-####",898 cc: "JM",899 cd: "Jamaica",900 desc_en: "",901 name_ru: "Ямайка",902 desc_ru: ""903 }, {904 mask: "+962-#-####-####",905 cc: "JO",906 cd: "Jordan",907 desc_en: "",908 name_ru: "ÐоÑданиÑ",909 desc_ru: ""910 }, {911 mask: "+81-##-####-####",912 cc: "JP",913 cd: "Japan ",914 desc_en: "mobile",915 name_ru: "Ð¯Ð¿Ð¾Ð½Ð¸Ñ ",916 desc_ru: "мобилÑнÑе"917 }, {918 mask: "+81(###)###-###",919 cc: "JP",920 cd: "Japan",921 desc_en: "",922 name_ru: "ЯпониÑ",923 desc_ru: ""924 }, {925 mask: "+254-###-######",926 cc: "KE",927 cd: "Kenya",928 desc_en: "",929 name_ru: "ÐениÑ",930 desc_ru: ""931 }, {932 mask: "+996(###)###-###",933 cc: "KG",934 cd: "Kyrgyzstan",935 desc_en: "",936 name_ru: "ÐиÑгизиÑ",937 desc_ru: ""938 }, {939 mask: "+855-##-###-###",940 cc: "KH",941 cd: "Cambodia",942 desc_en: "",943 name_ru: "Ðамбоджа",944 desc_ru: ""945 }, {946 mask: "+686-##-###",947 cc: "KI",948 cd: "Kiribati",949 desc_en: "",950 name_ru: "ÐиÑибаÑи",951 desc_ru: ""952 }, {953 mask: "+269-##-#####",954 cc: "KM",955 cd: "Comoros",956 desc_en: "",957 name_ru: "ÐомоÑÑ",958 desc_ru: ""959 }, {960 mask: "+1(869)###-####",961 cc: "KN",962 cd: "Saint Kitts & Nevis",963 desc_en: "",964 name_ru: "СенÑ-ÐиÑÑ Ð¸ ÐевиÑ",965 desc_ru: ""966 }, {967 mask: "+850-191-###-####",968 cc: "KP",969 cd: "DPR Korea (North) ",970 desc_en: "mobile",971 name_ru: "ÐоÑейÑÐºÐ°Ñ ÐÐÐ ",972 desc_ru: "мобилÑнÑе"973 }, {974 mask: "+850-##-###-###",975 cc: "KP",976 cd: "DPR Korea (North)",977 desc_en: "",978 name_ru: "ÐоÑейÑÐºÐ°Ñ ÐÐÐ ",979 desc_ru: ""980 }, {981 mask: "+850-###-####-###",982 cc: "KP",983 cd: "DPR Korea (North)",984 desc_en: "",985 name_ru: "ÐоÑейÑÐºÐ°Ñ ÐÐÐ ",986 desc_ru: ""987 }, {988 mask: "+850-###-###",989 cc: "KP",990 cd: "DPR Korea (North)",991 desc_en: "",992 name_ru: "ÐоÑейÑÐºÐ°Ñ ÐÐÐ ",993 desc_ru: ""994 }, {995 mask: "+850-####-####",996 cc: "KP",997 cd: "DPR Korea (North)",998 desc_en: "",999 name_ru: "ÐоÑейÑÐºÐ°Ñ ÐÐÐ ",1000 desc_ru: ""1001 }, {1002 mask: "+850-####-#############",1003 cc: "KP",1004 cd: "DPR Korea (North)",1005 desc_en: "",1006 name_ru: "ÐоÑейÑÐºÐ°Ñ ÐÐÐ ",1007 desc_ru: ""1008 }, {1009 mask: "+82-##-###-####",1010 cc: "KR",1011 cd: "Korea (South)",1012 desc_en: "",1013 name_ru: "РеÑп. ÐоÑеÑ",1014 desc_ru: ""1015 }, {1016 mask: "+965-####-####",1017 cc: "KW",1018 cd: "Kuwait",1019 desc_en: "",1020 name_ru: "ÐÑвейÑ",1021 desc_ru: ""1022 }, {1023 mask: "+1(345)###-####",1024 cc: "KY",1025 cd: "Cayman Islands",1026 desc_en: "",1027 name_ru: "ÐÐ°Ð¹Ð¼Ð°Ð½Ð¾Ð²Ñ Ð¾ÑÑÑова",1028 desc_ru: ""1029 }, {1030 mask: "+7(6##)###-##-##",1031 cc: "KZ",1032 cd: "Kazakhstan",1033 desc_en: "",1034 name_ru: "ÐазаÑ
ÑÑан",1035 desc_ru: ""1036 }, {1037 mask: "+7(7##)###-##-##",1038 cc: "KZ",1039 cd: "Kazakhstan",1040 desc_en: "",1041 name_ru: "ÐазаÑ
ÑÑан",1042 desc_ru: ""1043 }, {1044 mask: "+856(20##)###-###",1045 cc: "LA",1046 cd: "Laos ",1047 desc_en: "mobile",1048 name_ru: "ÐÐ°Ð¾Ñ ",1049 desc_ru: "мобилÑнÑе"1050 }, {1051 mask: "+856-##-###-###",1052 cc: "LA",1053 cd: "Laos",1054 desc_en: "",1055 name_ru: "ÐаоÑ",1056 desc_ru: ""1057 }, {1058 mask: "+961-##-###-###",1059 cc: "LB",1060 cd: "Lebanon ",1061 desc_en: "mobile",1062 name_ru: "Ðиван ",1063 desc_ru: "мобилÑнÑе"1064 }, {1065 mask: "+961-#-###-###",1066 cc: "LB",1067 cd: "Lebanon",1068 desc_en: "",1069 name_ru: "Ðиван",1070 desc_ru: ""1071 }, {1072 mask: "+1(758)###-####",1073 cc: "LC",1074 cd: "Saint Lucia",1075 desc_en: "",1076 name_ru: "СенÑ-ÐÑÑиÑ",1077 desc_ru: ""1078 }, {1079 mask: "+423(###)###-####",1080 cc: "LI",1081 cd: "Liechtenstein",1082 desc_en: "",1083 name_ru: "ÐиÑ
ÑенÑÑейн",1084 desc_ru: ""1085 }, {1086 mask: "+94-##-###-####",1087 cc: "LK",1088 cd: "Sri Lanka",1089 desc_en: "",1090 name_ru: "ШÑи-Ðанка",1091 desc_ru: ""1092 }, {1093 mask: "+231-##-###-###",1094 cc: "LR",1095 cd: "Liberia",1096 desc_en: "",1097 name_ru: "ÐибеÑиÑ",1098 desc_ru: ""1099 }, {1100 mask: "+266-#-###-####",1101 cc: "LS",1102 cd: "Lesotho",1103 desc_en: "",1104 name_ru: "ÐеÑоÑо",1105 desc_ru: ""1106 }, {1107 mask: "+370(###)##-###",1108 cc: "LT",1109 cd: "Lithuania",1110 desc_en: "",1111 name_ru: "ÐиÑва",1112 desc_ru: ""1113 }, {1114 mask: "+352-###-###",1115 cc: "LU",1116 cd: "Luxembourg",1117 desc_en: "",1118 name_ru: "ÐÑкÑембÑÑг",1119 desc_ru: ""1120 }, {1121 mask: "+352-####-###",1122 cc: "LU",1123 cd: "Luxembourg",1124 desc_en: "",1125 name_ru: "ÐÑкÑембÑÑг",1126 desc_ru: ""1127 }, {1128 mask: "+352-#####-###",1129 cc: "LU",1130 cd: "Luxembourg",1131 desc_en: "",1132 name_ru: "ÐÑкÑембÑÑг",1133 desc_ru: ""1134 }, {1135 mask: "+352-######-###",1136 cc: "LU",1137 cd: "Luxembourg",1138 desc_en: "",1139 name_ru: "ÐÑкÑембÑÑг",1140 desc_ru: ""1141 }, {1142 mask: "+371-##-###-###",1143 cc: "LV",1144 cd: "Latvia",1145 desc_en: "",1146 name_ru: "ÐаÑвиÑ",1147 desc_ru: ""1148 }, {1149 mask: "+218-##-###-###",1150 cc: "LY",1151 cd: "Libya",1152 desc_en: "",1153 name_ru: "ÐивиÑ",1154 desc_ru: ""1155 }, {1156 mask: "+218-21-###-####",1157 cc: "LY",1158 cd: "Libya",1159 desc_en: "Tripoli",1160 name_ru: "ÐивиÑ",1161 desc_ru: "ТÑиполи"1162 }, {1163 mask: "+212-##-####-###",1164 cc: "MA",1165 cd: "Morocco",1166 desc_en: "",1167 name_ru: "ÐаÑокко",1168 desc_ru: ""1169 }, {1170 mask: "+377(###)###-###",1171 cc: "MC",1172 cd: "Monaco",1173 desc_en: "",1174 name_ru: "Ðонако",1175 desc_ru: ""1176 }, {1177 mask: "+377-##-###-###",1178 cc: "MC",1179 cd: "Monaco",1180 desc_en: "",1181 name_ru: "Ðонако",1182 desc_ru: ""1183 }, {1184 mask: "+373-####-####",1185 cc: "MD",1186 cd: "Moldova",1187 desc_en: "",1188 name_ru: "Ðолдова",1189 desc_ru: ""1190 }, {1191 mask: "+382-##-###-###",1192 cc: "ME",1193 cd: "Montenegro",1194 desc_en: "",1195 name_ru: "ЧеÑногоÑиÑ",1196 desc_ru: ""1197 }, {1198 mask: "+261-##-##-#####",1199 cc: "MG",1200 cd: "Madagascar",1201 desc_en: "",1202 name_ru: "ÐадагаÑкаÑ",1203 desc_ru: ""1204 }, {1205 mask: "+692-###-####",1206 cc: "MH",1207 cd: "Marshall Islands",1208 desc_en: "",1209 name_ru: "ÐаÑÑÐ°Ð»Ð»Ð¾Ð²Ñ ÐÑÑÑова",1210 desc_ru: ""1211 }, {1212 mask: "+389-##-###-###",1213 cc: "MK",1214 cd: "Republic of Macedonia",1215 desc_en: "",1216 name_ru: "РеÑп. ÐакедониÑ",1217 desc_ru: ""1218 }, {1219 mask: "+223-##-##-####",1220 cc: "ML",1221 cd: "Mali",1222 desc_en: "",1223 name_ru: "Ðали",1224 desc_ru: ""1225 }, {1226 mask: "+95-##-###-###",1227 cc: "MM",1228 cd: "Burma (Myanmar)",1229 desc_en: "",1230 name_ru: "ÐиÑма (ÐÑÑнма)",1231 desc_ru: ""1232 }, {1233 mask: "+95-#-###-###",1234 cc: "MM",1235 cd: "Burma (Myanmar)",1236 desc_en: "",1237 name_ru: "ÐиÑма (ÐÑÑнма)",1238 desc_ru: ""1239 }, {1240 mask: "+95-###-###",1241 cc: "MM",1242 cd: "Burma (Myanmar)",1243 desc_en: "",1244 name_ru: "ÐиÑма (ÐÑÑнма)",1245 desc_ru: ""1246 }, {1247 mask: "+976-##-##-####",1248 cc: "MN",1249 cd: "Mongolia",1250 desc_en: "",1251 name_ru: "ÐонголиÑ",1252 desc_ru: ""1253 }, {1254 mask: "+853-####-####",1255 cc: "MO",1256 cd: "Macau",1257 desc_en: "",1258 name_ru: "Ðакао",1259 desc_ru: ""1260 }, {1261 mask: "+1(670)###-####",1262 cc: "MP",1263 cd: "Northern Mariana Islands",1264 desc_en: "",1265 name_ru: "СевеÑнÑе ÐаÑианÑкие оÑÑÑова Сайпан",1266 desc_ru: ""1267 }, {1268 mask: "+596(###)##-##-##",1269 cc: "MQ",1270 cd: "Martinique",1271 desc_en: "",1272 name_ru: "ÐаÑÑиника",1273 desc_ru: ""1274 }, {1275 mask: "+222-##-##-####",1276 cc: "MR",1277 cd: "Mauritania",1278 desc_en: "",1279 name_ru: "ÐавÑиÑаниÑ",1280 desc_ru: ""1281 }, {1282 mask: "+1(664)###-####",1283 cc: "MS",1284 cd: "Montserrat",1285 desc_en: "",1286 name_ru: "ÐонÑÑеÑÑаÑ",1287 desc_ru: ""1288 }, {1289 mask: "+356-####-####",1290 cc: "MT",1291 cd: "Malta",1292 desc_en: "",1293 name_ru: "ÐалÑÑа",1294 desc_ru: ""1295 }, {1296 mask: "+230-###-####",1297 cc: "MU",1298 cd: "Mauritius",1299 desc_en: "",1300 name_ru: "ÐавÑикий",1301 desc_ru: ""1302 }, {1303 mask: "+960-###-####",1304 cc: "MV",1305 cd: "Maldives",1306 desc_en: "",1307 name_ru: "ÐалÑдивÑкие оÑÑÑова",1308 desc_ru: ""1309 }, {1310 mask: "+265-1-###-###",1311 cc: "MW",1312 cd: "Malawi",1313 desc_en: "Telecom Ltd",1314 name_ru: "Ðалави",1315 desc_ru: "Telecom Ltd"1316 }, {1317 mask: "+265-#-####-####",1318 cc: "MW",1319 cd: "Malawi",1320 desc_en: "",1321 name_ru: "Ðалави",1322 desc_ru: ""1323 }, {1324 mask: "+52(###)###-####",1325 cc: "MX",1326 cd: "Mexico",1327 desc_en: "",1328 name_ru: "ÐекÑика",1329 desc_ru: ""1330 }, {1331 mask: "+52-##-##-####",1332 cc: "MX",1333 cd: "Mexico",1334 desc_en: "",1335 name_ru: "ÐекÑика",1336 desc_ru: ""1337 }, {1338 mask: "+60-##-###-####",1339 cc: "MY",1340 cd: "Malaysia ",1341 desc_en: "mobile",1342 name_ru: "ÐÐ°Ð»Ð°Ð¹Ð·Ð¸Ñ ",1343 desc_ru: "мобилÑнÑе"1344 }, {1345 mask: "+60-11-####-####",1346 cc: "MY",1347 cd: "Malaysia ",1348 desc_en: "mobile",1349 name_ru: "ÐÐ°Ð»Ð°Ð¹Ð·Ð¸Ñ ",1350 desc_ru: "мобилÑнÑе"1351 }, {1352 mask: "+60(###)###-###",1353 cc: "MY",1354 cd: "Malaysia",1355 desc_en: "",1356 name_ru: "ÐалайзиÑ",1357 desc_ru: ""1358 }, {1359 mask: "+60-##-###-###",1360 cc: "MY",1361 cd: "Malaysia",1362 desc_en: "",1363 name_ru: "ÐалайзиÑ",1364 desc_ru: ""1365 }, {1366 mask: "+60-#-###-###",1367 cc: "MY",1368 cd: "Malaysia",1369 desc_en: "",1370 name_ru: "ÐалайзиÑ",1371 desc_ru: ""1372 }, {1373 mask: "+258-##-###-###",1374 cc: "MZ",1375 cd: "Mozambique",1376 desc_en: "",1377 name_ru: "Ðозамбик",1378 desc_ru: ""1379 }, {1380 mask: "+264-##-###-####",1381 cc: "NA",1382 cd: "Namibia",1383 desc_en: "",1384 name_ru: "ÐамибиÑ",1385 desc_ru: ""1386 }, {1387 mask: "+687-##-####",1388 cc: "NC",1389 cd: "New Caledonia",1390 desc_en: "",1391 name_ru: "ÐÐ¾Ð²Ð°Ñ ÐаледониÑ",1392 desc_ru: ""1393 }, {1394 mask: "+227-##-##-####",1395 cc: "NE",1396 cd: "Niger",1397 desc_en: "",1398 name_ru: "ÐигеÑ",1399 desc_ru: ""1400 }, {1401 mask: "+672-3##-###",1402 cc: "NF",1403 cd: "Norfolk Island",1404 desc_en: "",1405 name_ru: "ÐоÑÑолк (оÑÑÑов)",1406 desc_ru: ""1407 }, {1408 mask: "+234(###)###-####",1409 cc: "NG",1410 cd: "Nigeria",1411 desc_en: "",1412 name_ru: "ÐигеÑиÑ",1413 desc_ru: ""1414 }, {1415 mask: "+234-##-###-###",1416 cc: "NG",1417 cd: "Nigeria",1418 desc_en: "",1419 name_ru: "ÐигеÑиÑ",1420 desc_ru: ""1421 }, {1422 mask: "+234-##-###-##",1423 cc: "NG",1424 cd: "Nigeria",1425 desc_en: "",1426 name_ru: "ÐигеÑиÑ",1427 desc_ru: ""1428 }, {1429 mask: "+234(###)###-####",1430 cc: "NG",1431 cd: "Nigeria ",1432 desc_en: "mobile",1433 name_ru: "ÐигеÑÐ¸Ñ ",1434 desc_ru: "мобилÑнÑе"1435 }, {1436 mask: "+505-####-####",1437 cc: "NI",1438 cd: "Nicaragua",1439 desc_en: "",1440 name_ru: "ÐикаÑагÑа",1441 desc_ru: ""1442 }, {1443 mask: "+31-##-###-####",1444 cc: "NL",1445 cd: "Netherlands",1446 desc_en: "",1447 name_ru: "ÐидеÑландÑ",1448 desc_ru: ""1449 }, {1450 mask: "+47(###)##-###",1451 cc: "NO",1452 cd: "Norway",1453 desc_en: "",1454 name_ru: "ÐоÑвегиÑ",1455 desc_ru: ""1456 }, {1457 mask: "+977-##-###-###",1458 cc: "NP",1459 cd: "Nepal",1460 desc_en: "",1461 name_ru: "Ðепал",1462 desc_ru: ""1463 }, {1464 mask: "+674-###-####",1465 cc: "NR",1466 cd: "Nauru",1467 desc_en: "",1468 name_ru: "ÐаÑÑÑ",1469 desc_ru: ""1470 }, {1471 mask: "+683-####",1472 cc: "NU",1473 cd: "Niue",1474 desc_en: "",1475 name_ru: "ÐиÑÑ",1476 desc_ru: ""1477 }, {1478 mask: "+64(###)###-###",1479 cc: "NZ",1480 cd: "New Zealand",1481 desc_en: "",1482 name_ru: "ÐÐ¾Ð²Ð°Ñ ÐеландиÑ",1483 desc_ru: ""1484 }, {1485 mask: "+64-##-###-###",1486 cc: "NZ",1487 cd: "New Zealand",1488 desc_en: "",1489 name_ru: "ÐÐ¾Ð²Ð°Ñ ÐеландиÑ",1490 desc_ru: ""1491 }, {1492 mask: "+64(###)###-####",1493 cc: "NZ",1494 cd: "New Zealand",1495 desc_en: "",1496 name_ru: "ÐÐ¾Ð²Ð°Ñ ÐеландиÑ",1497 desc_ru: ""1498 }, {1499 mask: "+968-##-###-###",1500 cc: "OM",1501 cd: "Oman",1502 desc_en: "",1503 name_ru: "Ðман",1504 desc_ru: ""1505 }, {1506 mask: "+507-###-####",1507 cc: "PA",1508 cd: "Panama",1509 desc_en: "",1510 name_ru: "Ðанама",1511 desc_ru: ""1512 }, {1513 mask: "+51(###)###-###",1514 cc: "PE",1515 cd: "Peru",1516 desc_en: "",1517 name_ru: "ÐеÑÑ",1518 desc_ru: ""1519 }, {1520 mask: "+689-##-##-##",1521 cc: "PF",1522 cd: "French Polynesia",1523 desc_en: "",1524 name_ru: "ФÑанÑÑзÑÐºÐ°Ñ ÐÐ¾Ð»Ð¸Ð½ÐµÐ·Ð¸Ñ (ТаиÑи)",1525 desc_ru: ""1526 }, {1527 mask: "+675(###)##-###",1528 cc: "PG",1529 cd: "Papua New Guinea",1530 desc_en: "",1531 name_ru: "ÐапÑа-ÐÐ¾Ð²Ð°Ñ ÐвинеÑ",1532 desc_ru: ""1533 }, {1534 mask: "+63(###)###-####",1535 cc: "PH",1536 cd: "Philippines",1537 desc_en: "",1538 name_ru: "ФилиппинÑ",1539 desc_ru: ""1540 }, {1541 mask: "+92(###)###-####",1542 cc: "PK",1543 cd: "Pakistan",1544 desc_en: "",1545 name_ru: "ÐакиÑÑан",1546 desc_ru: ""1547 }, {1548 mask: "+48(###)###-###",1549 cc: "PL",1550 cd: "Poland",1551 desc_en: "",1552 name_ru: "ÐолÑÑа",1553 desc_ru: ""1554 }, {1555 mask: "+970-##-###-####",1556 cc: "PS",1557 cd: "Palestine",1558 desc_en: "",1559 name_ru: "ÐалеÑÑина",1560 desc_ru: ""1561 }, {1562 mask: "+351-##-###-####",1563 cc: "PT",1564 cd: "Portugal",1565 desc_en: "",1566 name_ru: "ÐоÑÑÑгалиÑ",1567 desc_ru: ""1568 }, {1569 mask: "+680-###-####",1570 cc: "PW",1571 cd: "Palau",1572 desc_en: "",1573 name_ru: "ÐалаÑ",1574 desc_ru: ""1575 }, {1576 mask: "+595(###)###-###",1577 cc: "PY",1578 cd: "Paraguay",1579 desc_en: "",1580 name_ru: "ÐаÑагвай",1581 desc_ru: ""1582 }, {1583 mask: "+974-####-####",1584 cc: "QA",1585 cd: "Qatar",1586 desc_en: "",1587 name_ru: "ÐаÑаÑ",1588 desc_ru: ""1589 }, {1590 mask: "+262-#####-####",1591 cc: "RE",1592 cd: "Reunion",1593 desc_en: "",1594 name_ru: "РеÑнÑон",1595 desc_ru: ""1596 }, {1597 mask: "+40-##-###-####",1598 cc: "RO",1599 cd: "Romania",1600 desc_en: "",1601 name_ru: "Ð ÑмÑниÑ",1602 desc_ru: ""1603 }, {1604 mask: "+381-##-###-####",1605 cc: "RS",1606 cd: "Serbia",1607 desc_en: "",1608 name_ru: "СеÑбиÑ",1609 desc_ru: ""1610 }, {1611 mask: "+7(###)###-##-##",1612 cc: "RU",1613 cd: "Russia",1614 desc_en: "",1615 name_ru: "РоÑÑиÑ",1616 desc_ru: ""1617 }, {1618 mask: "+250(###)###-###",1619 cc: "RW",1620 cd: "Rwanda",1621 desc_en: "",1622 name_ru: "Ð Ñанда",1623 desc_ru: ""1624 }, {1625 mask: "+966-5-####-####",1626 cc: "SA",1627 cd: "Saudi Arabia ",1628 desc_en: "mobile",1629 name_ru: "СаÑдовÑÐºÐ°Ñ ÐÑÐ°Ð²Ð¸Ñ ",1630 desc_ru: "мобилÑнÑе"1631 }, {1632 mask: "+966-#-###-####",1633 cc: "SA",1634 cd: "Saudi Arabia",1635 desc_en: "",1636 name_ru: "СаÑдовÑÐºÐ°Ñ ÐÑавиÑ",1637 desc_ru: ""1638 }, {1639 mask: "+677-###-####",1640 cc: "SB",1641 cd: "Solomon Islands ",1642 desc_en: "mobile",1643 name_ru: "Ð¡Ð¾Ð»Ð¾Ð¼Ð¾Ð½Ð¾Ð²Ñ ÐÑÑÑова ",1644 desc_ru: "мобилÑнÑе"1645 }, {1646 mask: "+677-#####",1647 cc: "SB",1648 cd: "Solomon Islands",1649 desc_en: "",1650 name_ru: "Ð¡Ð¾Ð»Ð¾Ð¼Ð¾Ð½Ð¾Ð²Ñ ÐÑÑÑова",1651 desc_ru: ""1652 }, {1653 mask: "+248-#-###-###",1654 cc: "SC",1655 cd: "Seychelles",1656 desc_en: "",1657 name_ru: "СейÑелÑ",1658 desc_ru: ""1659 }, {1660 mask: "+249-##-###-####",1661 cc: "SD",1662 cd: "Sudan",1663 desc_en: "",1664 name_ru: "СÑдан",1665 desc_ru: ""1666 }, {1667 mask: "+46-##-###-####",1668 cc: "SE",1669 cd: "Sweden",1670 desc_en: "",1671 name_ru: "ШвеÑиÑ",1672 desc_ru: ""1673 }, {1674 mask: "+65-####-####",1675 cc: "SG",1676 cd: "Singapore",1677 desc_en: "",1678 name_ru: "СингапÑÑ",1679 desc_ru: ""1680 }, {1681 mask: "+290-####",1682 cc: "SH",1683 cd: "Saint Helena",1684 desc_en: "",1685 name_ru: "ÐÑÑÑов СвÑÑой ÐленÑ",1686 desc_ru: ""1687 }, {1688 mask: "+290-####",1689 cc: "SH",1690 cd: "Tristan da Cunha",1691 desc_en: "",1692 name_ru: "ТÑиÑÑан-да-ÐÑнÑÑ",1693 desc_ru: ""1694 }, {1695 mask: "+386-##-###-###",1696 cc: "SI",1697 cd: "Slovenia",1698 desc_en: "",1699 name_ru: "СловениÑ",1700 desc_ru: ""1701 }, {1702 mask: "+421(###)###-###",1703 cc: "SK",1704 cd: "Slovakia",1705 desc_en: "",1706 name_ru: "СловакиÑ",1707 desc_ru: ""1708 }, {1709 mask: "+232-##-######",1710 cc: "SL",1711 cd: "Sierra Leone",1712 desc_en: "",1713 name_ru: "СÑеÑÑа-Ðеоне",1714 desc_ru: ""1715 }, {1716 mask: "+378-####-######",1717 cc: "SM",1718 cd: "San Marino",1719 desc_en: "",1720 name_ru: "Сан-ÐаÑино",1721 desc_ru: ""1722 }, {1723 mask: "+221-##-###-####",1724 cc: "SN",1725 cd: "Senegal",1726 desc_en: "",1727 name_ru: "Сенегал",1728 desc_ru: ""1729 }, {1730 mask: "+252-##-###-###",1731 cc: "SO",1732 cd: "Somalia",1733 desc_en: "",1734 name_ru: "Сомали",1735 desc_ru: ""1736 }, {1737 mask: "+252-#-###-###",1738 cc: "SO",1739 cd: "Somalia",1740 desc_en: "",1741 name_ru: "Сомали",1742 desc_ru: ""1743 }, {1744 mask: "+252-#-###-###",1745 cc: "SO",1746 cd: "Somalia ",1747 desc_en: "mobile",1748 name_ru: "Сомали ",1749 desc_ru: "мобилÑнÑе"1750 }, {1751 mask: "+597-###-####",1752 cc: "SR",1753 cd: "Suriname ",1754 desc_en: "mobile",1755 name_ru: "СÑÑинам ",1756 desc_ru: "мобилÑнÑе"1757 }, {1758 mask: "+597-###-###",1759 cc: "SR",1760 cd: "Suriname",1761 desc_en: "",1762 name_ru: "СÑÑинам",1763 desc_ru: ""1764 }, {1765 mask: "+211-##-###-####",1766 cc: "SS",1767 cd: "South Sudan",1768 desc_en: "",1769 name_ru: "ЮжнÑй СÑдан",1770 desc_ru: ""1771 }, {1772 mask: "+239-##-#####",1773 cc: "ST",1774 cd: "Sao Tome and Principe",1775 desc_en: "",1776 name_ru: "Сан-Томе и ÐÑинÑипи",1777 desc_ru: ""1778 }, {1779 mask: "+503-##-##-####",1780 cc: "SV",1781 cd: "El Salvador",1782 desc_en: "",1783 name_ru: "СалÑвадоÑ",1784 desc_ru: ""1785 }, {1786 mask: "+1(721)###-####",1787 cc: "SX",1788 cd: "Sint Maarten",1789 desc_en: "",1790 name_ru: "СинÑ-ÐааÑÑен",1791 desc_ru: ""1792 }, {1793 mask: "+963-##-####-###",1794 cc: "SY",1795 cd: "Syrian Arab Republic",1796 desc_en: "",1797 name_ru: "СиÑийÑÐºÐ°Ñ Ð°ÑабÑÐºÐ°Ñ ÑеÑпÑблика",1798 desc_ru: ""1799 }, {1800 mask: "+268-##-##-####",1801 cc: "SZ",1802 cd: "Swaziland",1803 desc_en: "",1804 name_ru: "Свазиленд",1805 desc_ru: ""1806 }, {1807 mask: "+1(649)###-####",1808 cc: "TC",1809 cd: "Turks & Caicos",1810 desc_en: "",1811 name_ru: "ТÑÑÐºÑ Ð¸ ÐайкоÑ",1812 desc_ru: ""1813 }, {1814 mask: "+235-##-##-##-##",1815 cc: "TD",1816 cd: "Chad",1817 desc_en: "",1818 name_ru: "Чад",1819 desc_ru: ""1820 }, {1821 mask: "+228-##-###-###",1822 cc: "TG",1823 cd: "Togo",1824 desc_en: "",1825 name_ru: "Того",1826 desc_ru: ""1827 }, {1828 mask: "+66-##-###-####",1829 cc: "TH",1830 cd: "Thailand ",1831 desc_en: "mobile",1832 name_ru: "Таиланд ",1833 desc_ru: "мобилÑнÑе"1834 }, {1835 mask: "+66-##-###-###",1836 cc: "TH",1837 cd: "Thailand",1838 desc_en: "",1839 name_ru: "Таиланд",1840 desc_ru: ""1841 }, {1842 mask: "+992-##-###-####",1843 cc: "TJ",1844 cd: "Tajikistan",1845 desc_en: "",1846 name_ru: "ТаджикиÑÑан",1847 desc_ru: ""1848 }, {1849 mask: "+690-####",1850 cc: "TK",1851 cd: "Tokelau",1852 desc_en: "",1853 name_ru: "ТокелаÑ",1854 desc_ru: ""1855 }, {1856 mask: "+670-###-####",1857 cc: "TL",1858 cd: "East Timor",1859 desc_en: "",1860 name_ru: "ÐоÑÑоÑнÑй ТимоÑ",1861 desc_ru: ""1862 }, {1863 mask: "+670-77#-#####",1864 cc: "TL",1865 cd: "East Timor",1866 desc_en: "Timor Telecom",1867 name_ru: "ÐоÑÑоÑнÑй ТимоÑ",1868 desc_ru: "Timor Telecom"1869 }, {1870 mask: "+670-78#-#####",1871 cc: "TL",1872 cd: "East Timor",1873 desc_en: "Timor Telecom",1874 name_ru: "ÐоÑÑоÑнÑй ТимоÑ",1875 desc_ru: "Timor Telecom"1876 }, {1877 mask: "+993-#-###-####",1878 cc: "TM",1879 cd: "Turkmenistan",1880 desc_en: "",1881 name_ru: "ТÑÑкмениÑÑан",1882 desc_ru: ""1883 }, {1884 mask: "+216-##-###-###",1885 cc: "TN",1886 cd: "Tunisia",1887 desc_en: "",1888 name_ru: "ТÑниÑ",1889 desc_ru: ""1890 }, {1891 mask: "+676-#####",1892 cc: "TO",1893 cd: "Tonga",1894 desc_en: "",1895 name_ru: "Тонга",1896 desc_ru: ""1897 }, {1898 mask: "+90(###)###-####",1899 cc: "TR",1900 cd: "Turkey",1901 desc_en: "",1902 name_ru: "ТÑÑÑиÑ",1903 desc_ru: ""1904 }, {1905 mask: "+1(868)###-####",1906 cc: "TT",1907 cd: "Trinidad & Tobago",1908 desc_en: "",1909 name_ru: "ТÑинидад и Тобаго",1910 desc_ru: ""1911 }, {1912 mask: "+688-90####",1913 cc: "TV",1914 cd: "Tuvalu ",1915 desc_en: "mobile",1916 name_ru: "ТÑÐ²Ð°Ð»Ñ ",1917 desc_ru: "мобилÑнÑе"1918 }, {1919 mask: "+688-2####",1920 cc: "TV",1921 cd: "Tuvalu",1922 desc_en: "",1923 name_ru: "ТÑвалÑ",1924 desc_ru: ""1925 }, {1926 mask: "+886-#-####-####",1927 cc: "TW",1928 cd: "Taiwan",1929 desc_en: "",1930 name_ru: "ТайванÑ",1931 desc_ru: ""1932 }, {1933 mask: "+886-####-####",1934 cc: "TW",1935 cd: "Taiwan",1936 desc_en: "",1937 name_ru: "ТайванÑ",1938 desc_ru: ""1939 }, {1940 mask: "+255-##-###-####",1941 cc: "TZ",1942 cd: "Tanzania",1943 desc_en: "",1944 name_ru: "ТанзаниÑ",1945 desc_ru: ""1946 }, {1947 mask: "+380(##)###-##-##",1948 cc: "UA",1949 cd: "Ukraine",1950 desc_en: "",1951 name_ru: "УкÑаина",1952 desc_ru: ""1953 }, {1954 mask: "+256(###)###-###",1955 cc: "UG",1956 cd: "Uganda",1957 desc_en: "",1958 name_ru: "Уганда",1959 desc_ru: ""1960 }, {1961 mask: "+44-##-####-####",1962 cc: "UK",1963 cd: "United Kingdom",1964 desc_en: "",1965 name_ru: "ÐеликобÑиÑаниÑ",1966 desc_ru: ""1967 }, {1968 mask: "+598-#-###-##-##",1969 cc: "UY",1970 cd: "Uruguay",1971 desc_en: "",1972 name_ru: "УÑÑгвай",1973 desc_ru: ""1974 }, {1975 mask: "+998-##-###-####",1976 cc: "UZ",1977 cd: "Uzbekistan",1978 desc_en: "",1979 name_ru: "УзбекиÑÑан",1980 desc_ru: ""1981 }, {1982 mask: "+39-6-698-#####",1983 cc: "VA",1984 cd: "Vatican City",1985 desc_en: "",1986 name_ru: "ÐаÑикан",1987 desc_ru: ""1988 }, {1989 mask: "+1(784)###-####",1990 cc: "VC",1991 cd: "Saint Vincent & the Grenadines",1992 desc_en: "",1993 name_ru: "СенÑ-ÐинÑÐµÐ½Ñ Ð¸ ÐÑенадинÑ",1994 desc_ru: ""1995 }, {1996 mask: "+58(###)###-####",1997 cc: "VE",1998 cd: "Venezuela",1999 desc_en: "",2000 name_ru: "ÐенеÑÑÑла",2001 desc_ru: ""2002 }, {2003 mask: "+1(284)###-####",2004 cc: "VG",2005 cd: "British Virgin Islands",2006 desc_en: "",2007 name_ru: "ÐÑиÑанÑкие ÐиÑгинÑкие оÑÑÑова",2008 desc_ru: ""2009 }, {2010 mask: "+1(340)###-####",2011 cc: "VI",2012 cd: "US Virgin Islands",2013 desc_en: "",2014 name_ru: "ÐмеÑиканÑкие ÐиÑгинÑкие оÑÑÑова",2015 desc_ru: ""2016 }, {2017 mask: "+84-##-####-###",2018 cc: "VN",2019 cd: "Vietnam",2020 desc_en: "",2021 name_ru: "ÐÑеÑнам",2022 desc_ru: ""2023 }, {2024 mask: "+84(###)####-###",2025 cc: "VN",2026 cd: "Vietnam",2027 desc_en: "",2028 name_ru: "ÐÑеÑнам",2029 desc_ru: ""2030 }, {2031 mask: "+678-##-#####",2032 cc: "VU",2033 cd: "Vanuatu ",2034 desc_en: "mobile",2035 name_ru: "ÐанÑаÑÑ ",2036 desc_ru: "мобилÑнÑе"2037 }, {2038 mask: "+678-#####",2039 cc: "VU",2040 cd: "Vanuatu",2041 desc_en: "",2042 name_ru: "ÐанÑаÑÑ",2043 desc_ru: ""2044 }, {2045 mask: "+681-##-####",2046 cc: "WF",2047 cd: "Wallis and Futuna",2048 desc_en: "",2049 name_ru: "Ð£Ð¾Ð»Ð»Ð¸Ñ Ð¸ ФÑÑÑна",2050 desc_ru: ""2051 }, {2052 mask: "+685-##-####",2053 cc: "WS",2054 cd: "Samoa",2055 desc_en: "",2056 name_ru: "Самоа",2057 desc_ru: ""2058 }, {2059 mask: "+967-###-###-###",2060 cc: "YE",2061 cd: "Yemen ",2062 desc_en: "mobile",2063 name_ru: "Ðемен ",2064 desc_ru: "мобилÑнÑе"2065 }, {2066 mask: "+967-#-###-###",2067 cc: "YE",2068 cd: "Yemen",2069 desc_en: "",2070 name_ru: "Ðемен",2071 desc_ru: ""2072 }, {2073 mask: "+967-##-###-###",2074 cc: "YE",2075 cd: "Yemen",2076 desc_en: "",2077 name_ru: "Ðемен",2078 desc_ru: ""2079 }, {2080 mask: "+27-##-###-####",2081 cc: "ZA",2082 cd: "South Africa",2083 desc_en: "",2084 name_ru: "Южно-ÐÑÑиканÑÐºÐ°Ñ Ð ÐµÑп.",2085 desc_ru: ""2086 }, {2087 mask: "+260-##-###-####",2088 cc: "ZM",2089 cd: "Zambia",2090 desc_en: "",2091 name_ru: "ÐамбиÑ",2092 desc_ru: ""2093 }, {2094 mask: "+263-#-######",2095 cc: "ZW",2096 cd: "Zimbabwe",2097 desc_en: "",2098 name_ru: "Ðимбабве",2099 desc_ru: ""2100 }, {2101 mask: "+1(###)###-####",2102 cc: [ "US", "CA" ],2103 cd: "USA and Canada",2104 desc_en: "",2105 name_ru: "СШРи Ðанада",2106 desc_ru: ""2107 } ]2108 }2109 }), Inputmask;...
X86ACPISysDescTable_vector.py
Source:X86ACPISysDescTable_vector.py
1# This file was automatically generated by SWIG (http://www.swig.org).2# Version 3.0.123#4# Do not make changes to this file unless you know what you are doing--modify5# the SWIG interface file instead.6from sys import version_info as _swig_python_version_info7if _swig_python_version_info >= (2, 7, 0):8 def swig_import_helper():9 import importlib10 pkg = __name__.rpartition('.')[0]11 mname = '.'.join((pkg, '_X86ACPISysDescTable_vector')).lstrip('.')12 try:13 return importlib.import_module(mname)14 except ImportError:15 return importlib.import_module('_X86ACPISysDescTable_vector')16 _X86ACPISysDescTable_vector = swig_import_helper()17 del swig_import_helper18elif _swig_python_version_info >= (2, 6, 0):19 def swig_import_helper():20 from os.path import dirname21 import imp22 fp = None23 try:24 fp, pathname, description = imp.find_module('_X86ACPISysDescTable_vector', [dirname(__file__)])25 except ImportError:26 import _X86ACPISysDescTable_vector27 return _X86ACPISysDescTable_vector28 try:29 _mod = imp.load_module('_X86ACPISysDescTable_vector', fp, pathname, description)30 finally:31 if fp is not None:32 fp.close()33 return _mod34 _X86ACPISysDescTable_vector = swig_import_helper()35 del swig_import_helper36else:37 import _X86ACPISysDescTable_vector38del _swig_python_version_info39try:40 _swig_property = property41except NameError:42 pass # Python < 2.2 doesn't have 'property'.43try:44 import builtins as __builtin__45except ImportError:46 import __builtin__47def _swig_setattr_nondynamic(self, class_type, name, value, static=1):48 if (name == "thisown"):49 return self.this.own(value)50 if (name == "this"):51 if type(value).__name__ == 'SwigPyObject':52 self.__dict__[name] = value53 return54 method = class_type.__swig_setmethods__.get(name, None)55 if method:56 return method(self, value)57 if (not static):58 object.__setattr__(self, name, value)59 else:60 raise AttributeError("You cannot add attributes to %s" % self)61def _swig_setattr(self, class_type, name, value):62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)63def _swig_getattr(self, class_type, name):64 if (name == "thisown"):65 return self.this.own()66 method = class_type.__swig_getmethods__.get(name, None)67 if method:68 return method(self)69 raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))70def _swig_repr(self):71 try:72 strthis = "proxy of " + self.this.__repr__()73 except __builtin__.Exception:74 strthis = ""75 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)76def _swig_setattr_nondynamic_method(set):77 def set_attr(self, name, value):78 if (name == "thisown"):79 return self.this.own(value)80 if hasattr(self, name) or (name == "this"):81 set(self, name, value)82 else:83 raise AttributeError("You cannot add attributes to %s" % self)84 return set_attr85class SwigPyIterator(object):86 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')87 def __init__(self, *args, **kwargs):88 raise AttributeError("No constructor defined - class is abstract")89 __repr__ = _swig_repr90 __swig_destroy__ = _X86ACPISysDescTable_vector.delete_SwigPyIterator91 __del__ = lambda self: None92 def value(self):93 return _X86ACPISysDescTable_vector.SwigPyIterator_value(self)94 def incr(self, n=1):95 return _X86ACPISysDescTable_vector.SwigPyIterator_incr(self, n)96 def decr(self, n=1):97 return _X86ACPISysDescTable_vector.SwigPyIterator_decr(self, n)98 def distance(self, x):99 return _X86ACPISysDescTable_vector.SwigPyIterator_distance(self, x)100 def equal(self, x):101 return _X86ACPISysDescTable_vector.SwigPyIterator_equal(self, x)102 def copy(self):103 return _X86ACPISysDescTable_vector.SwigPyIterator_copy(self)104 def next(self):105 return _X86ACPISysDescTable_vector.SwigPyIterator_next(self)106 def __next__(self):107 return _X86ACPISysDescTable_vector.SwigPyIterator___next__(self)108 def previous(self):109 return _X86ACPISysDescTable_vector.SwigPyIterator_previous(self)110 def advance(self, n):111 return _X86ACPISysDescTable_vector.SwigPyIterator_advance(self, n)112 def __eq__(self, x):113 return _X86ACPISysDescTable_vector.SwigPyIterator___eq__(self, x)114 def __ne__(self, x):115 return _X86ACPISysDescTable_vector.SwigPyIterator___ne__(self, x)116 def __iadd__(self, n):117 return _X86ACPISysDescTable_vector.SwigPyIterator___iadd__(self, n)118 def __isub__(self, n):119 return _X86ACPISysDescTable_vector.SwigPyIterator___isub__(self, n)120 def __add__(self, n):121 return _X86ACPISysDescTable_vector.SwigPyIterator___add__(self, n)122 def __sub__(self, *args):123 return _X86ACPISysDescTable_vector.SwigPyIterator___sub__(self, *args)124 def __iter__(self):125 return self126SwigPyIterator_swigregister = _X86ACPISysDescTable_vector.SwigPyIterator_swigregister127SwigPyIterator_swigregister(SwigPyIterator)128import m5.internal.param_X86ACPISysDescTable129import m5.internal.param_SimObject130import m5.internal.drain131import m5.internal.serialize132class vector_X86ACPISysDescTable(object):133 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')134 __repr__ = _swig_repr135 def iterator(self):136 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_iterator(self)137 def __iter__(self):138 return self.iterator()139 def __nonzero__(self):140 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___nonzero__(self)141 def __bool__(self):142 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___bool__(self)143 def __len__(self):144 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___len__(self)145 def __getslice__(self, i, j):146 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___getslice__(self, i, j)147 def __setslice__(self, *args):148 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___setslice__(self, *args)149 def __delslice__(self, i, j):150 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___delslice__(self, i, j)151 def __delitem__(self, *args):152 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___delitem__(self, *args)153 def __getitem__(self, *args):154 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___getitem__(self, *args)155 def __setitem__(self, *args):156 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable___setitem__(self, *args)157 def pop(self):158 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_pop(self)159 def append(self, x):160 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_append(self, x)161 def empty(self):162 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_empty(self)163 def size(self):164 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_size(self)165 def swap(self, v):166 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_swap(self, v)167 def begin(self):168 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_begin(self)169 def end(self):170 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_end(self)171 def rbegin(self):172 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_rbegin(self)173 def rend(self):174 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_rend(self)175 def clear(self):176 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_clear(self)177 def get_allocator(self):178 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_get_allocator(self)179 def pop_back(self):180 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_pop_back(self)181 def erase(self, *args):182 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_erase(self, *args)183 def __init__(self, *args):184 this = _X86ACPISysDescTable_vector.new_vector_X86ACPISysDescTable(*args)185 try:186 self.this.append(this)187 except __builtin__.Exception:188 self.this = this189 def push_back(self, x):190 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_push_back(self, x)191 def front(self):192 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_front(self)193 def back(self):194 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_back(self)195 def assign(self, n, x):196 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_assign(self, n, x)197 def resize(self, *args):198 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_resize(self, *args)199 def insert(self, *args):200 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_insert(self, *args)201 def reserve(self, n):202 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_reserve(self, n)203 def capacity(self):204 return _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_capacity(self)205 __swig_destroy__ = _X86ACPISysDescTable_vector.delete_vector_X86ACPISysDescTable206 __del__ = lambda self: None207vector_X86ACPISysDescTable_swigregister = _X86ACPISysDescTable_vector.vector_X86ACPISysDescTable_swigregister...
OpDesc_vector.py
Source:OpDesc_vector.py
1# This file was automatically generated by SWIG (http://www.swig.org).2# Version 3.0.123#4# Do not make changes to this file unless you know what you are doing--modify5# the SWIG interface file instead.6from sys import version_info as _swig_python_version_info7if _swig_python_version_info >= (2, 7, 0):8 def swig_import_helper():9 import importlib10 pkg = __name__.rpartition('.')[0]11 mname = '.'.join((pkg, '_OpDesc_vector')).lstrip('.')12 try:13 return importlib.import_module(mname)14 except ImportError:15 return importlib.import_module('_OpDesc_vector')16 _OpDesc_vector = swig_import_helper()17 del swig_import_helper18elif _swig_python_version_info >= (2, 6, 0):19 def swig_import_helper():20 from os.path import dirname21 import imp22 fp = None23 try:24 fp, pathname, description = imp.find_module('_OpDesc_vector', [dirname(__file__)])25 except ImportError:26 import _OpDesc_vector27 return _OpDesc_vector28 try:29 _mod = imp.load_module('_OpDesc_vector', fp, pathname, description)30 finally:31 if fp is not None:32 fp.close()33 return _mod34 _OpDesc_vector = swig_import_helper()35 del swig_import_helper36else:37 import _OpDesc_vector38del _swig_python_version_info39try:40 _swig_property = property41except NameError:42 pass # Python < 2.2 doesn't have 'property'.43try:44 import builtins as __builtin__45except ImportError:46 import __builtin__47def _swig_setattr_nondynamic(self, class_type, name, value, static=1):48 if (name == "thisown"):49 return self.this.own(value)50 if (name == "this"):51 if type(value).__name__ == 'SwigPyObject':52 self.__dict__[name] = value53 return54 method = class_type.__swig_setmethods__.get(name, None)55 if method:56 return method(self, value)57 if (not static):58 object.__setattr__(self, name, value)59 else:60 raise AttributeError("You cannot add attributes to %s" % self)61def _swig_setattr(self, class_type, name, value):62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)63def _swig_getattr(self, class_type, name):64 if (name == "thisown"):65 return self.this.own()66 method = class_type.__swig_getmethods__.get(name, None)67 if method:68 return method(self)69 raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))70def _swig_repr(self):71 try:72 strthis = "proxy of " + self.this.__repr__()73 except __builtin__.Exception:74 strthis = ""75 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)76def _swig_setattr_nondynamic_method(set):77 def set_attr(self, name, value):78 if (name == "thisown"):79 return self.this.own(value)80 if hasattr(self, name) or (name == "this"):81 set(self, name, value)82 else:83 raise AttributeError("You cannot add attributes to %s" % self)84 return set_attr85class SwigPyIterator(object):86 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')87 def __init__(self, *args, **kwargs):88 raise AttributeError("No constructor defined - class is abstract")89 __repr__ = _swig_repr90 __swig_destroy__ = _OpDesc_vector.delete_SwigPyIterator91 __del__ = lambda self: None92 def value(self):93 return _OpDesc_vector.SwigPyIterator_value(self)94 def incr(self, n=1):95 return _OpDesc_vector.SwigPyIterator_incr(self, n)96 def decr(self, n=1):97 return _OpDesc_vector.SwigPyIterator_decr(self, n)98 def distance(self, x):99 return _OpDesc_vector.SwigPyIterator_distance(self, x)100 def equal(self, x):101 return _OpDesc_vector.SwigPyIterator_equal(self, x)102 def copy(self):103 return _OpDesc_vector.SwigPyIterator_copy(self)104 def next(self):105 return _OpDesc_vector.SwigPyIterator_next(self)106 def __next__(self):107 return _OpDesc_vector.SwigPyIterator___next__(self)108 def previous(self):109 return _OpDesc_vector.SwigPyIterator_previous(self)110 def advance(self, n):111 return _OpDesc_vector.SwigPyIterator_advance(self, n)112 def __eq__(self, x):113 return _OpDesc_vector.SwigPyIterator___eq__(self, x)114 def __ne__(self, x):115 return _OpDesc_vector.SwigPyIterator___ne__(self, x)116 def __iadd__(self, n):117 return _OpDesc_vector.SwigPyIterator___iadd__(self, n)118 def __isub__(self, n):119 return _OpDesc_vector.SwigPyIterator___isub__(self, n)120 def __add__(self, n):121 return _OpDesc_vector.SwigPyIterator___add__(self, n)122 def __sub__(self, *args):123 return _OpDesc_vector.SwigPyIterator___sub__(self, *args)124 def __iter__(self):125 return self126SwigPyIterator_swigregister = _OpDesc_vector.SwigPyIterator_swigregister127SwigPyIterator_swigregister(SwigPyIterator)128import m5.internal.param_OpDesc129import m5.internal.enum_OpClass130import m5.internal.param_SimObject131import m5.internal.drain132import m5.internal.serialize133class vector_OpDesc(object):134 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')135 __repr__ = _swig_repr136 def iterator(self):137 return _OpDesc_vector.vector_OpDesc_iterator(self)138 def __iter__(self):139 return self.iterator()140 def __nonzero__(self):141 return _OpDesc_vector.vector_OpDesc___nonzero__(self)142 def __bool__(self):143 return _OpDesc_vector.vector_OpDesc___bool__(self)144 def __len__(self):145 return _OpDesc_vector.vector_OpDesc___len__(self)146 def __getslice__(self, i, j):147 return _OpDesc_vector.vector_OpDesc___getslice__(self, i, j)148 def __setslice__(self, *args):149 return _OpDesc_vector.vector_OpDesc___setslice__(self, *args)150 def __delslice__(self, i, j):151 return _OpDesc_vector.vector_OpDesc___delslice__(self, i, j)152 def __delitem__(self, *args):153 return _OpDesc_vector.vector_OpDesc___delitem__(self, *args)154 def __getitem__(self, *args):155 return _OpDesc_vector.vector_OpDesc___getitem__(self, *args)156 def __setitem__(self, *args):157 return _OpDesc_vector.vector_OpDesc___setitem__(self, *args)158 def pop(self):159 return _OpDesc_vector.vector_OpDesc_pop(self)160 def append(self, x):161 return _OpDesc_vector.vector_OpDesc_append(self, x)162 def empty(self):163 return _OpDesc_vector.vector_OpDesc_empty(self)164 def size(self):165 return _OpDesc_vector.vector_OpDesc_size(self)166 def swap(self, v):167 return _OpDesc_vector.vector_OpDesc_swap(self, v)168 def begin(self):169 return _OpDesc_vector.vector_OpDesc_begin(self)170 def end(self):171 return _OpDesc_vector.vector_OpDesc_end(self)172 def rbegin(self):173 return _OpDesc_vector.vector_OpDesc_rbegin(self)174 def rend(self):175 return _OpDesc_vector.vector_OpDesc_rend(self)176 def clear(self):177 return _OpDesc_vector.vector_OpDesc_clear(self)178 def get_allocator(self):179 return _OpDesc_vector.vector_OpDesc_get_allocator(self)180 def pop_back(self):181 return _OpDesc_vector.vector_OpDesc_pop_back(self)182 def erase(self, *args):183 return _OpDesc_vector.vector_OpDesc_erase(self, *args)184 def __init__(self, *args):185 this = _OpDesc_vector.new_vector_OpDesc(*args)186 try:187 self.this.append(this)188 except __builtin__.Exception:189 self.this = this190 def push_back(self, x):191 return _OpDesc_vector.vector_OpDesc_push_back(self, x)192 def front(self):193 return _OpDesc_vector.vector_OpDesc_front(self)194 def back(self):195 return _OpDesc_vector.vector_OpDesc_back(self)196 def assign(self, n, x):197 return _OpDesc_vector.vector_OpDesc_assign(self, n, x)198 def resize(self, *args):199 return _OpDesc_vector.vector_OpDesc_resize(self, *args)200 def insert(self, *args):201 return _OpDesc_vector.vector_OpDesc_insert(self, *args)202 def reserve(self, n):203 return _OpDesc_vector.vector_OpDesc_reserve(self, n)204 def capacity(self):205 return _OpDesc_vector.vector_OpDesc_capacity(self)206 __swig_destroy__ = _OpDesc_vector.delete_vector_OpDesc207 __del__ = lambda self: None208vector_OpDesc_swigregister = _OpDesc_vector.vector_OpDesc_swigregister...
answer_search.py
Source:answer_search.py
1# coding: utf-82from py2neo import Graph3global debug_mode4debug_mode = 05class AnswerSearcher:6 def __init__(self):7 self.g = Graph(8 host="127.0.0.1",9 http_port=7474,10 user="neo4j",11 password="123456")12 self.num_limit = 2013 '''æ§è¡cypheræ¥è¯¢ï¼å¹¶è¿åç¸åºç»æ'''14 def search_main(self, sqls):15 final_answers = []16 for sql_ in sqls:17 question_type = sql_['question_type']18 queries = sql_['sql']19 answers = []20 for query in queries:21 ress = self.g.run(query).data()22 answers += ress23 final_answer = self.answer_prettify(question_type, answers)24 if final_answer:25 final_answers.append(final_answer)26 return final_answers27 '''æ ¹æ®å¯¹åºçqustion_typeï¼è°ç¨ç¸åºçåå¤æ¨¡æ¿'''28 def answer_prettify(self, question_type, answers):29 final_answer = []30 if not answers:31 return ''32 for i in answers:33 for k in list(i.keys()):34 if not i[k]:35 i[k]=''36 if debug_mode==1:37 print(answers)38 if question_type == 'disease_symptom':39 desc = [i['n.name'] for i in answers]40 subject = answers[0]['m.name']41 final_answer = '{0}ççç¶å
æ¬ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))42 elif question_type == 'symptom_disease':43 desc = [i['m.name'] for i in answers]44 subject = answers[0]['n.name']45 final_answer = 'çç¶{0}å¯è½æä¸çç¾ç
æï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))46 elif question_type == 'disease_cause':47 desc = [i['m.cause'] for i in answers]48 subject = answers[0]['m.name']49 final_answer = '{0}å¯è½çæå æï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))50 elif question_type == 'disease_prevent':51 desc = [i['m.prevent'] for i in answers]52 subject = answers[0]['m.name']53 final_answer = '{0}çé¢é²æªæ½å
æ¬ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))54 elif question_type == 'disease_lasttime':55 desc = [i['m.cure_lasttime'] for i in answers ]56 subject = answers[0]['m.name']57 final_answer = '{0}æ²»çå¯è½æç»çå¨æ为ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))58 elif question_type == 'disease_cureway':59 desc = [';'.join(i['m.cure_way']) for i in answers ]60 #desc = [i['m.cure_way'] for i in answers]61 subject = answers[0]['m.name']62 final_answer = '{0}å¯ä»¥å°è¯å¦ä¸æ²»çï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))63 elif question_type == 'disease_cureprob':64 desc = [i['m.cured_prob'] for i in answers]65 subject = answers[0]['m.name']66 final_answer = '{0}æ²»æçæ¦ç为ï¼ä»
ä¾åèï¼ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))67 elif question_type == 'disease_easyget':68 desc = [i['m.easy_get'] for i in answers]69 subject = answers[0]['m.name']70 final_answer = '{0}çææ人群å
æ¬ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))71 elif question_type == 'disease_desc':72 desc = [i['m.desc'] for i in answers]73 subject = answers[0]['m.name']74 final_answer = '{0},çæä¸ä¸ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))75 elif question_type == 'disease_acompany':76 desc1 = [i['n.name'] for i in answers]77 desc2 = [i['m.name'] for i in answers]78 subject = answers[0]['m.name']79 desc = [i for i in desc1 + desc2 if i != subject]80 final_answer = '{0}ççç¶å
æ¬ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))81 elif question_type == 'disease_not_food':82 desc = [i['n.name'] for i in answers]83 subject = answers[0]['m.name']84 final_answer = '{0}å¿é£çé£ç©å
æ¬æï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))85 elif question_type == 'disease_do_food':86 do_desc = [i['n.name'] for i in answers if i['r.name'] == 'å®å']87 recommand_desc = [i['n.name'] for i in answers if i['r.name'] == 'æ¨èé£è°±']88 subject = answers[0]['m.name']89 final_answer = '{0}å®é£çé£ç©å
æ¬æï¼{1}\næ¨èé£è°±å
æ¬æï¼{2}'.format(subject, ';'.join(list(set(do_desc))[:self.num_limit]), ';'.join(list(set(recommand_desc))[:self.num_limit]))90 elif question_type == 'food_not_disease':91 desc = [i['m.name'] for i in answers]92 subject = answers[0]['n.name']93 final_answer = 'æ£æ{0}ç人æ好ä¸è¦å{1}'.format('ï¼'.join(list(set(desc))[:self.num_limit]), subject)94 elif question_type == 'food_do_disease':95 desc = [i['m.name'] for i in answers]96 subject = answers[0]['n.name']97 final_answer = 'æ£æ{0}ç人建议å¤è¯è¯{1}'.format('ï¼'.join(list(set(desc))[:self.num_limit]), subject)98 elif question_type == 'disease_drug':99 desc = [i['n.name'] for i in answers]100 subject = answers[0]['m.name']101 final_answer = '{0}é常ç使ç¨çè¯åå
æ¬ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))102 elif question_type == 'drug_disease':103 desc = [i['m.name'] for i in answers]104 subject = answers[0]['n.name']105 final_answer = '{0}主治çç¾ç
æ{1},å¯ä»¥è¯è¯'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))106 elif question_type == 'disease_check':107 desc = [i['n.name'] for i in answers]108 subject = answers[0]['m.name']109 final_answer = '{0}é常å¯ä»¥éè¿ä»¥ä¸æ¹å¼æ£æ¥åºæ¥ï¼{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))110 elif question_type == 'check_disease':111 desc = [i['m.name'] for i in answers]112 subject = answers[0]['n.name']113 final_answer = 'é常å¯ä»¥éè¿{0}æ£æ¥åºæ¥çç¾ç
æ{1}'.format(subject, 'ï¼'.join(list(set(desc))[:self.num_limit]))114 return final_answer115if __name__ == '__main__':...
Using AI Code Generation
1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3 if (err) return console.error(err);4 console.log(data);5 wpt.getTestResults(data.data.testId, function(err, data) {6 if (err) return console.error(err);7 console.log(data);8 });9});
Using AI Code Generation
1var wpt = require('webpagetest');2var api = new wpt('www.webpagetest.org');3api.runTest('www.google.com', {4}, function(err, data) {5 if (err) return console.error(err);6 console.log('Test submitted. Polling for results.');7 api.waitForTestCompletion(data.data.testId, function(err, data) {8 if (err) return console.error(err);9 console.log('Got test results: %j', data);10 });11});12var wpt = require('webpagetest');13var api = new wpt('www.webpagetest.org');14api.runTest('www.google.com', {15}, function(err, data) {16 if (err) return console.error(err);17 console.log('Test submitted. Polling for results.');18 api.waitForTestCompletion(data.data.testId, function(err, data) {19 if (err) return console.error(err);20 console.log('Got test results: %j', data);21 });22});23var wpt = require('webpagetest');24var api = new wpt('www.webpagetest.org');25api.runTest('www.google.com', {26}, function(err, data) {27 if (err) return console.error(err);28 console.log('Test submitted. Polling for results.');29 api.waitForTestCompletion(data.data.testId, function(err, data) {30 if (err) return console.error(err);31 console.log('Got test results: %j', data);32 });33});34var wpt = require('webpagetest');35var api = new wpt('www.webpagetest.org');36api.runTest('www.google.com', {
Using AI Code Generation
1var wpt = require('webpagetest');2var api = new wpt('www.webpagetest.org');3 if (err) return console.error(err);4 api.getTestResults(data.data.testId, function(err, data) {5 if (err) return console.error(err);6 console.log(data.data.summary);7 });8});
Using AI Code Generation
1var wpt = require('webpagetest');2var options = {3};4var webpagetest = new wpt(options);5webpagetest.runTest(url, {6}, function(err, data) {7 if (err) {8 console.log(err);9 } else {10 console.log(data);11 var testId = data.data.testId;12 webpagetest.getTestResults(testId, function(err, data) {13 if (err) {14 console.log(err);15 } else {16 console.log(data);17 }18 });19 }20});
Using AI Code Generation
1var wpt = require('webpagetest');2var options = {3};4var test = new wpt('www.webpagetest.org', options.key);5 if (err) return console.error(err);6 console.log('Test status: %s', data.statusText);7 console.log('Test ID: %s', data.data.testId);8 test.getTestStatus(data.data.testId, function(err, data) {9 if (err) return console.error(err);10 console.log('Test status: %s', data.statusText);11 console.log('Test ID: %s', data.data.testId);12 test.getTestResults(data.data.testId, function(err, data) {13 if (err) return console.error(err);14 console.log('Test status: %s', data.statusText);15 console.log('Test ID: %s', data.data.testId);16 console.log('Test summary: %s', data.data.summary);17 console.log('Test url: %s', data.data.url);18 console.log('Test location: %s', data.data.location);19 console.log('Test from: %s', data.data.from);20 console.log('Test connectivity: %s', data.data.connectivity);21 console.log('Test bwDown: %s', data.data.bwDown);22 console.log('Test bwUp: %s', data.data.bwUp);23 console.log('Test latency: %s', data.data.latency);24 console.log('Test plr: %s', data.data.plr);25 console.log('Test completed in: %s', data.data.completed);26 console.log('Test firstView loadTime: %s', data.data.median.firstView.loadTime);27 console.log('Test firstView TTFB: %s', data.data.median.firstView.TTFB);28 console.log('Test firstView bytesIn: %s', data.data.median.firstView.bytesIn);29 console.log('Test firstView bytesOut: %s', data.data.median.firstView.bytesOut);30 console.log('Test firstView requests: %s',
Using AI Code Generation
1var wpt = require('webpagetest');2var wptServer = new wpt('www.webpagetest.org', 'A.0f9d0b2b2f8c1f1e1b0b9e9f8c0f0b0d');3 if (err) return console.error(err);4 console.log(data);5 wptServer.getTestStatus(data.data.testId, function(err, data) {6 if (err) return console.error(err);7 console.log(data);8 });9});10 if (err) return console.error(err);11 console.log(data);12 wptServer.getTestStatus(data.data.testId, function(err, data) {13 if (err) return console.error(err);14 console.log(data);15 });16});17 if (err) return console.error(err);18 console.log(data);19 wptServer.getTestStatus(data.data.testId, function(err, data) {20 if (err) return console.error(err);21 console.log(data);22 });23});24 if (err) return console.error(err);25 console.log(data);26 wptServer.getTestStatus(data.data.testId, function(err, data) {27 if (err) return console.error(err);28 console.log(data);29 });30});31 if (err) return console.error(err);32 console.log(data);33 wptServer.getTestStatus(data.data.testId, function(err, data) {34 if (err) return console.error(err);35 console.log(data);36 });37});38 if (err) return console.error(err);39 console.log(data);40 wptServer.getTestStatus(data.data.testId, function(err, data) {41 if (err) return console.error(err);42 console.log(data);43 });44});45 if (err)
Using AI Code Generation
1var assert = require('chai').assert;2var wpt = require('webpagetest');3var test = new wpt('A.9a7a3c3dcb0e6e1c8a4f4c0e4d4b0c4f');4describe('Google', function() {5 it('should have the right title', function() {6 assert.equal(null, err);7 assert.equal('Google', data.data.summary);8 });9 });10});11OP 2016-04-24: I figured it out. I had to use the done() function like so:12it('should have the right title', function(done) {13 assert.equal(null, err);14 assert.equal('Google', data.data.summary);15 done();16 });17});
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!