Best Quick code snippet using name.
languages.php
Source:languages.php
1<?php2/**3 * This file is part of the Carbon package.4 *5 * (c) Brian Nesbitt <brian@nesbot.com>6 *7 * For the full copyright and license information, please view the LICENSE8 * file that was distributed with this source code.9 */10return [11 /*12 * ISO 639-213 */14 'ab' => [15 'isoName' => 'Abkhazian',16 'nativeName' => 'аҧÑÑа бÑзÑÓа, аҧÑÑÓа',17 ],18 'aa' => [19 'isoName' => 'Afar',20 'nativeName' => 'Afaraf',21 ],22 'af' => [23 'isoName' => 'Afrikaans',24 'nativeName' => 'Afrikaans',25 ],26 'ak' => [27 'isoName' => 'Akan',28 'nativeName' => 'Akan',29 ],30 'sq' => [31 'isoName' => 'Albanian',32 'nativeName' => 'Shqip',33 ],34 'am' => [35 'isoName' => 'Amharic',36 'nativeName' => 'á ááá',37 ],38 'ar' => [39 'isoName' => 'Arabic',40 'nativeName' => 'اÙعربÙØ©',41 ],42 'an' => [43 'isoName' => 'Aragonese',44 'nativeName' => 'aragonés',45 ],46 'hy' => [47 'isoName' => 'Armenian',48 'nativeName' => 'ÕÕ¡ÕµÕ¥ÖÕ¥Õ¶',49 ],50 'as' => [51 'isoName' => 'Assamese',52 'nativeName' => 'à¦
সমà§à¦¯à¦¼à¦¾',53 ],54 'av' => [55 'isoName' => 'Avaric',56 'nativeName' => 'Ð°Ð²Ð°Ñ Ð¼Ð°ÑÓ, магÓаÑÑл маÑÓ',57 ],58 'ae' => [59 'isoName' => 'Avestan',60 'nativeName' => 'avesta',61 ],62 'ay' => [63 'isoName' => 'Aymara',64 'nativeName' => 'aymar aru',65 ],66 'az' => [67 'isoName' => 'Azerbaijani',68 'nativeName' => 'azÉrbaycan dili',69 ],70 'bm' => [71 'isoName' => 'Bambara',72 'nativeName' => 'bamanankan',73 ],74 'ba' => [75 'isoName' => 'Bashkir',76 'nativeName' => 'баÑҡоÑÑ Ñеле',77 ],78 'eu' => [79 'isoName' => 'Basque',80 'nativeName' => 'euskara, euskera',81 ],82 'be' => [83 'isoName' => 'Belarusian',84 'nativeName' => 'белаÑÑÑÐºÐ°Ñ Ð¼Ð¾Ð²Ð°',85 ],86 'bn' => [87 'isoName' => 'Bengali',88 'nativeName' => 'বাà¦à¦²à¦¾',89 ],90 'bh' => [91 'isoName' => 'Bihari languages',92 'nativeName' => 'à¤à¥à¤à¤ªà¥à¤°à¥',93 ],94 'bi' => [95 'isoName' => 'Bislama',96 'nativeName' => 'Bislama',97 ],98 'bs' => [99 'isoName' => 'Bosnian',100 'nativeName' => 'bosanski jezik',101 ],102 'br' => [103 'isoName' => 'Breton',104 'nativeName' => 'brezhoneg',105 ],106 'bg' => [107 'isoName' => 'Bulgarian',108 'nativeName' => 'бÑлгаÑÑки език',109 ],110 'my' => [111 'isoName' => 'Burmese',112 'nativeName' => 'ááá¬á
á¬',113 ],114 'ca' => [115 'isoName' => 'Catalan, Valencian',116 'nativeName' => 'català , valencià ',117 ],118 'ch' => [119 'isoName' => 'Chamorro',120 'nativeName' => 'Chamoru',121 ],122 'ce' => [123 'isoName' => 'Chechen',124 'nativeName' => 'ноÑ
Ñийн моÑÑ',125 ],126 'ny' => [127 'isoName' => 'Chichewa, Chewa, Nyanja',128 'nativeName' => 'chiCheŵa, chinyanja',129 ],130 'zh' => [131 'isoName' => 'Chinese',132 'nativeName' => 'ä¸æ (ZhÅngwén), æ±è¯, 漢èª',133 ],134 'cv' => [135 'isoName' => 'Chuvash',136 'nativeName' => 'ÑÓÐ²Ð°Ñ ÑÓлÑ
и',137 ],138 'kw' => [139 'isoName' => 'Cornish',140 'nativeName' => 'Kernewek',141 ],142 'co' => [143 'isoName' => 'Corsican',144 'nativeName' => 'corsu, lingua corsa',145 ],146 'cr' => [147 'isoName' => 'Cree',148 'nativeName' => 'áá¦ááááá£',149 ],150 'hr' => [151 'isoName' => 'Croatian',152 'nativeName' => 'hrvatski jezik',153 ],154 'cs' => [155 'isoName' => 'Czech',156 'nativeName' => 'ÄeÅ¡tina, Äeský jazyk',157 ],158 'da' => [159 'isoName' => 'Danish',160 'nativeName' => 'dansk',161 ],162 'dv' => [163 'isoName' => 'Divehi, Dhivehi, Maldivian',164 'nativeName' => 'ÞÞ¨ÞÞ¬ÞÞ¨',165 ],166 'nl' => [167 'isoName' => 'Dutch, Flemish',168 'nativeName' => 'Nederlands, Vlaams',169 ],170 'dz' => [171 'isoName' => 'Dzongkha',172 'nativeName' => 'རྫོà½à¼à½',173 ],174 'en' => [175 'isoName' => 'English',176 'nativeName' => 'English',177 ],178 'eo' => [179 'isoName' => 'Esperanto',180 'nativeName' => 'Esperanto',181 ],182 'et' => [183 'isoName' => 'Estonian',184 'nativeName' => 'eesti, eesti keel',185 ],186 'ee' => [187 'isoName' => 'Ewe',188 'nativeName' => 'EÊegbe',189 ],190 'fo' => [191 'isoName' => 'Faroese',192 'nativeName' => 'føroyskt',193 ],194 'fj' => [195 'isoName' => 'Fijian',196 'nativeName' => 'vosa Vakaviti',197 ],198 'fi' => [199 'isoName' => 'Finnish',200 'nativeName' => 'suomi, suomen kieli',201 ],202 'fr' => [203 'isoName' => 'French',204 'nativeName' => 'français',205 ],206 'ff' => [207 'isoName' => 'Fulah',208 'nativeName' => 'Fulfulde, Pulaar, Pular',209 ],210 'gl' => [211 'isoName' => 'Galician',212 'nativeName' => 'Galego',213 ],214 'ka' => [215 'isoName' => 'Georgian',216 'nativeName' => 'á¥áá áá£áá',217 ],218 'de' => [219 'isoName' => 'German',220 'nativeName' => 'Deutsch',221 ],222 'el' => [223 'isoName' => 'Greek (modern)',224 'nativeName' => 'ελληνικά',225 ],226 'gn' => [227 'isoName' => 'GuaranÃ',228 'nativeName' => 'Avañe\'ẽ',229 ],230 'gu' => [231 'isoName' => 'Gujarati',232 'nativeName' => 'àªà«àªàª°àª¾àª¤à«',233 ],234 'ht' => [235 'isoName' => 'Haitian, Haitian Creole',236 'nativeName' => 'Kreyòl ayisyen',237 ],238 'ha' => [239 'isoName' => 'Hausa',240 'nativeName' => '(Hausa) ÙÙÙÙسÙ',241 ],242 'he' => [243 'isoName' => 'Hebrew (modern)',244 'nativeName' => '×¢×ר×ת',245 ],246 'hz' => [247 'isoName' => 'Herero',248 'nativeName' => 'Otjiherero',249 ],250 'hi' => [251 'isoName' => 'Hindi',252 'nativeName' => 'हिनà¥à¤¦à¥, हिà¤à¤¦à¥',253 ],254 'ho' => [255 'isoName' => 'Hiri Motu',256 'nativeName' => 'Hiri Motu',257 ],258 'hu' => [259 'isoName' => 'Hungarian',260 'nativeName' => 'magyar',261 ],262 'ia' => [263 'isoName' => 'Interlingua',264 'nativeName' => 'Interlingua',265 ],266 'id' => [267 'isoName' => 'Indonesian',268 'nativeName' => 'Bahasa Indonesia',269 ],270 'ie' => [271 'isoName' => 'Interlingue',272 'nativeName' => 'Originally called Occidental; then Interlingue after WWII',273 ],274 'ga' => [275 'isoName' => 'Irish',276 'nativeName' => 'Gaeilge',277 ],278 'ig' => [279 'isoName' => 'Igbo',280 'nativeName' => 'Asụsụ Igbo',281 ],282 'ik' => [283 'isoName' => 'Inupiaq',284 'nativeName' => 'Iñupiaq, Iñupiatun',285 ],286 'io' => [287 'isoName' => 'Ido',288 'nativeName' => 'Ido',289 ],290 'is' => [291 'isoName' => 'Icelandic',292 'nativeName' => 'Ãslenska',293 ],294 'it' => [295 'isoName' => 'Italian',296 'nativeName' => 'Italiano',297 ],298 'iu' => [299 'isoName' => 'Inuktitut',300 'nativeName' => 'áááááá¦',301 ],302 'ja' => [303 'isoName' => 'Japanese',304 'nativeName' => 'æ¥æ¬èªÂ (ã«ã»ãã)',305 ],306 'jv' => [307 'isoName' => 'Javanese',308 'nativeName' => 'ꦧꦱê¦ê¦®, Basa Jawa',309 ],310 'kl' => [311 'isoName' => 'Kalaallisut, Greenlandic',312 'nativeName' => 'kalaallisut, kalaallit oqaasii',313 ],314 'kn' => [315 'isoName' => 'Kannada',316 'nativeName' => 'à²à²¨à³à²¨à²¡',317 ],318 'kr' => [319 'isoName' => 'Kanuri',320 'nativeName' => 'Kanuri',321 ],322 'ks' => [323 'isoName' => 'Kashmiri',324 'nativeName' => 'à¤à¤¶à¥à¤®à¥à¤°à¥, ÙØ´Ù
ÙرÙâ',325 ],326 'kk' => [327 'isoName' => 'Kazakh',328 'nativeName' => 'ÒÐ°Ð·Ð°Ò ÑÑлÑ',329 ],330 'km' => [331 'isoName' => 'Central Khmer',332 'nativeName' => 'ááááá, áááááá¶áá¶, áá¶áá¶ááááá',333 ],334 'ki' => [335 'isoName' => 'Kikuyu, Gikuyu',336 'nativeName' => 'GÄ©kÅ©yÅ©',337 ],338 'rw' => [339 'isoName' => 'Kinyarwanda',340 'nativeName' => 'Ikinyarwanda',341 ],342 'ky' => [343 'isoName' => 'Kirghiz, Kyrgyz',344 'nativeName' => 'ÐÑÑгÑзÑа, ÐÑÑгÑз Ñили',345 ],346 'kv' => [347 'isoName' => 'Komi',348 'nativeName' => 'коми кÑв',349 ],350 'kg' => [351 'isoName' => 'Kongo',352 'nativeName' => 'Kikongo',353 ],354 'ko' => [355 'isoName' => 'Korean',356 'nativeName' => 'íêµì´',357 ],358 'ku' => [359 'isoName' => 'Kurdish',360 'nativeName' => 'Kurdî, کÙردÛâ',361 ],362 'kj' => [363 'isoName' => 'Kuanyama, Kwanyama',364 'nativeName' => 'Kuanyama',365 ],366 'la' => [367 'isoName' => 'Latin',368 'nativeName' => 'latine, lingua latina',369 ],370 'lb' => [371 'isoName' => 'Luxembourgish, Letzeburgesch',372 'nativeName' => 'Lëtzebuergesch',373 ],374 'lg' => [375 'isoName' => 'Ganda',376 'nativeName' => 'Luganda',377 ],378 'li' => [379 'isoName' => 'Limburgan, Limburger, Limburgish',380 'nativeName' => 'Limburgs',381 ],382 'ln' => [383 'isoName' => 'Lingala',384 'nativeName' => 'Lingála',385 ],386 'lo' => [387 'isoName' => 'Lao',388 'nativeName' => 'àºàº²àºªàº²àº¥àº²àº§',389 ],390 'lt' => [391 'isoName' => 'Lithuanian',392 'nativeName' => 'lietuvių kalba',393 ],394 'lu' => [395 'isoName' => 'Luba-Katanga',396 'nativeName' => 'Kiluba',397 ],398 'lv' => [399 'isoName' => 'Latvian',400 'nativeName' => 'latvieÅ¡u valoda',401 ],402 'gv' => [403 'isoName' => 'Manx',404 'nativeName' => 'Gaelg, Gailck',405 ],406 'mk' => [407 'isoName' => 'Macedonian',408 'nativeName' => 'македонÑки Ñазик',409 ],410 'mg' => [411 'isoName' => 'Malagasy',412 'nativeName' => 'fiteny malagasy',413 ],414 'ms' => [415 'isoName' => 'Malay',416 'nativeName' => 'Bahasa Melayu, بÙاس Ù
ÙاÙÙâ',417 ],418 'ml' => [419 'isoName' => 'Malayalam',420 'nativeName' => 'മലയാളà´',421 ],422 'mt' => [423 'isoName' => 'Maltese',424 'nativeName' => 'Malti',425 ],426 'mi' => [427 'isoName' => 'Maori',428 'nativeName' => 'te reo MÄori',429 ],430 'mr' => [431 'isoName' => 'Marathi',432 'nativeName' => 'मराठà¥',433 ],434 'mh' => [435 'isoName' => 'Marshallese',436 'nativeName' => 'Kajin M̧ajeļ',437 ],438 'mn' => [439 'isoName' => 'Mongolian',440 'nativeName' => 'Ðонгол Ñ
Ñл',441 ],442 'na' => [443 'isoName' => 'Nauru',444 'nativeName' => 'Dorerin Naoero',445 ],446 'nv' => [447 'isoName' => 'Navajo, Navaho',448 'nativeName' => 'Diné bizaad',449 ],450 'nd' => [451 'isoName' => 'North Ndebele',452 'nativeName' => 'isiNdebele',453 ],454 'ne' => [455 'isoName' => 'Nepali',456 'nativeName' => 'नà¥à¤ªà¤¾à¤²à¥',457 ],458 'ng' => [459 'isoName' => 'Ndonga',460 'nativeName' => 'Owambo',461 ],462 'nb' => [463 'isoName' => 'Norwegian BokmÃ¥l',464 'nativeName' => 'Norsk BokmÃ¥l',465 ],466 'nn' => [467 'isoName' => 'Norwegian Nynorsk',468 'nativeName' => 'Norsk Nynorsk',469 ],470 'no' => [471 'isoName' => 'Norwegian',472 'nativeName' => 'Norsk',473 ],474 'ii' => [475 'isoName' => 'Sichuan Yi, Nuosu',476 'nativeName' => 'êê ê¿ Nuosuhxop',477 ],478 'nr' => [479 'isoName' => 'South Ndebele',480 'nativeName' => 'isiNdebele',481 ],482 'oc' => [483 'isoName' => 'Occitan',484 'nativeName' => 'occitan, lenga d\'òc',485 ],486 'oj' => [487 'isoName' => 'Ojibwa',488 'nativeName' => 'ááááá¯á§áá',489 ],490 'cu' => [491 'isoName' => 'Church Slavic, Church Slavonic, Old Church Slavonic, Old Slavonic, Old Bulgarian',492 'nativeName' => 'ѩзÑÐºÑ ÑловѣнÑÑкÑ',493 ],494 'om' => [495 'isoName' => 'Oromo',496 'nativeName' => 'Afaan Oromoo',497 ],498 'or' => [499 'isoName' => 'Oriya',500 'nativeName' => 'à¬à¬¡à¬¼à¬¿à¬',501 ],502 'os' => [503 'isoName' => 'Ossetian, Ossetic',504 'nativeName' => 'иÑон æвзаг',505 ],506 'pa' => [507 'isoName' => 'Panjabi, Punjabi',508 'nativeName' => 'ਪੰà¨à¨¾à¨¬à©',509 ],510 'pi' => [511 'isoName' => 'Pali',512 'nativeName' => 'पाऴि',513 ],514 'fa' => [515 'isoName' => 'Persian',516 'nativeName' => 'ÙارسÛ',517 ],518 'pl' => [519 'isoName' => 'Polish',520 'nativeName' => 'jÄzyk polski, polszczyzna',521 ],522 'ps' => [523 'isoName' => 'Pashto, Pushto',524 'nativeName' => 'Ù¾ÚتÙ',525 ],526 'pt' => [527 'isoName' => 'Portuguese',528 'nativeName' => 'Português',529 ],530 'qu' => [531 'isoName' => 'Quechua',532 'nativeName' => 'Runa Simi, Kichwa',533 ],534 'rm' => [535 'isoName' => 'Romansh',536 'nativeName' => 'Rumantsch Grischun',537 ],538 'rn' => [539 'isoName' => 'Rundi',540 'nativeName' => 'Ikirundi',541 ],542 'ro' => [543 'isoName' => 'Romanian, Moldavian, Moldovan',544 'nativeName' => 'RomânÄ',545 ],546 'ru' => [547 'isoName' => 'Russian',548 'nativeName' => 'ÑÑÑÑкий',549 ],550 'sa' => [551 'isoName' => 'Sanskrit',552 'nativeName' => 'सà¤à¤¸à¥à¤à¥à¤¤à¤®à¥',553 ],554 'sc' => [555 'isoName' => 'Sardinian',556 'nativeName' => 'sardu',557 ],558 'sd' => [559 'isoName' => 'Sindhi',560 'nativeName' => 'सिनà¥à¤§à¥, سÙÚÙØ Ø³ÙدھÛâ',561 ],562 'se' => [563 'isoName' => 'Northern Sami',564 'nativeName' => 'Davvisámegiella',565 ],566 'sm' => [567 'isoName' => 'Samoan',568 'nativeName' => 'gagana fa\'a Samoa',569 ],570 'sg' => [571 'isoName' => 'Sango',572 'nativeName' => 'yângâ tî sängö',573 ],574 'sr' => [575 'isoName' => 'Serbian',576 'nativeName' => 'ÑÑпÑки Ñезик',577 ],578 'gd' => [579 'isoName' => 'Gaelic, Scottish Gaelic',580 'nativeName' => 'Gà idhlig',581 ],582 'sn' => [583 'isoName' => 'Shona',584 'nativeName' => 'chiShona',585 ],586 'si' => [587 'isoName' => 'Sinhala, Sinhalese',588 'nativeName' => 'à·à·à¶à·à¶½',589 ],590 'sk' => [591 'isoName' => 'Slovak',592 'nativeName' => 'SlovenÄina, Slovenský Jazyk',593 ],594 'sl' => [595 'isoName' => 'Slovene',596 'nativeName' => 'Slovenski Jezik, SlovenÅ¡Äina',597 ],598 'so' => [599 'isoName' => 'Somali',600 'nativeName' => 'Soomaaliga, af Soomaali',601 ],602 'st' => [603 'isoName' => 'Southern Sotho',604 'nativeName' => 'Sesotho',605 ],606 'es' => [607 'isoName' => 'Spanish, Castilian',608 'nativeName' => 'Español',609 ],610 'su' => [611 'isoName' => 'Sundanese',612 'nativeName' => 'Basa Sunda',613 ],614 'sw' => [615 'isoName' => 'Swahili',616 'nativeName' => 'Kiswahili',617 ],618 'ss' => [619 'isoName' => 'Swati',620 'nativeName' => 'SiSwati',621 ],622 'sv' => [623 'isoName' => 'Swedish',624 'nativeName' => 'Svenska',625 ],626 'ta' => [627 'isoName' => 'Tamil',628 'nativeName' => 'தமிழà¯',629 ],630 'te' => [631 'isoName' => 'Telugu',632 'nativeName' => 'à°¤à±à°²à±à°à±',633 ],634 'tg' => [635 'isoName' => 'Tajik',636 'nativeName' => 'Ñоҷикӣ, toçikÄ«, تاجÛÚ©Ûâ',637 ],638 'th' => [639 'isoName' => 'Thai',640 'nativeName' => 'à¹à¸à¸¢',641 ],642 'ti' => [643 'isoName' => 'Tigrinya',644 'nativeName' => 'áµááá',645 ],646 'bo' => [647 'isoName' => 'Tibetan',648 'nativeName' => 'à½à½¼à½à¼à½¡à½²à½',649 ],650 'tk' => [651 'isoName' => 'Turkmen',652 'nativeName' => 'Türkmen, ТүÑкмен',653 ],654 'tl' => [655 'isoName' => 'Tagalog',656 'nativeName' => 'Wikang Tagalog',657 ],658 'tn' => [659 'isoName' => 'Tswana',660 'nativeName' => 'Setswana',661 ],662 'to' => [663 'isoName' => 'Tongan (Tonga Islands)',664 'nativeName' => 'Faka Tonga',665 ],666 'tr' => [667 'isoName' => 'Turkish',668 'nativeName' => 'Türkçe',669 ],670 'ts' => [671 'isoName' => 'Tsonga',672 'nativeName' => 'Xitsonga',673 ],674 'tt' => [675 'isoName' => 'Tatar',676 'nativeName' => 'ÑаÑÐ°Ñ Ñеле, tatar tele',677 ],678 'tw' => [679 'isoName' => 'Twi',680 'nativeName' => 'Twi',681 ],682 'ty' => [683 'isoName' => 'Tahitian',684 'nativeName' => 'Reo Tahiti',685 ],686 'ug' => [687 'isoName' => 'Uighur, Uyghur',688 'nativeName' => 'UyÆ£urqÉ, â«Ø¦ÛÙغÛرÚ',689 ],690 'uk' => [691 'isoName' => 'Ukrainian',692 'nativeName' => 'УкÑаÑнÑÑка',693 ],694 'ur' => [695 'isoName' => 'Urdu',696 'nativeName' => 'اردÙ',697 ],698 'uz' => [699 'isoName' => 'Uzbek',700 'nativeName' => 'OÊ»zbek, Ðзбек, أÛزبÛÙâ',701 ],702 've' => [703 'isoName' => 'Venda',704 'nativeName' => 'Tshivená¸a',705 ],706 'vi' => [707 'isoName' => 'Vietnamese',708 'nativeName' => 'Tiếng Viá»t',709 ],710 'vo' => [711 'isoName' => 'Volapük',712 'nativeName' => 'Volapük',713 ],714 'wa' => [715 'isoName' => 'Walloon',716 'nativeName' => 'Walon',717 ],718 'cy' => [719 'isoName' => 'Welsh',720 'nativeName' => 'Cymraeg',721 ],722 'wo' => [723 'isoName' => 'Wolof',724 'nativeName' => 'Wollof',725 ],726 'fy' => [727 'isoName' => 'Western Frisian',728 'nativeName' => 'Frysk',729 ],730 'xh' => [731 'isoName' => 'Xhosa',732 'nativeName' => 'isiXhosa',733 ],734 'yi' => [735 'isoName' => 'Yiddish',736 'nativeName' => '××Ö´××ש',737 ],738 'yo' => [739 'isoName' => 'Yoruba',740 'nativeName' => 'Yorùbá',741 ],742 'za' => [743 'isoName' => 'Zhuang, Chuang',744 'nativeName' => 'Saɯ cueÅÆ
, Saw cuengh',745 ],746 'zu' => [747 'isoName' => 'Zulu',748 'nativeName' => 'isiZulu',749 ],750 /*751 * Add ISO 639-3 languages available in Carbon752 */753 'agq' => [754 'isoName' => 'Aghem',755 'nativeName' => 'Aghem',756 ],757 'agr' => [758 'isoName' => 'Aguaruna',759 'nativeName' => 'Aguaruna',760 ],761 'anp' => [762 'isoName' => 'Angika',763 'nativeName' => 'Angika',764 ],765 'asa' => [766 'isoName' => 'Asu',767 'nativeName' => 'Asu',768 ],769 'ast' => [770 'isoName' => 'Asturian',771 'nativeName' => 'Asturian',772 ],773 'ayc' => [774 'isoName' => 'Southern Aymara',775 'nativeName' => 'Southern Aymara',776 ],777 'bas' => [778 'isoName' => 'Basaa',779 'nativeName' => 'Basaa',780 ],781 'bem' => [782 'isoName' => 'Bemba',783 'nativeName' => 'Bemba',784 ],785 'bez' => [786 'isoName' => 'Bena',787 'nativeName' => 'Bena',788 ],789 'bhb' => [790 'isoName' => 'Bhili',791 'nativeName' => 'Bhili',792 ],793 'bho' => [794 'isoName' => 'Bhojpuri',795 'nativeName' => 'Bhojpuri',796 ],797 'brx' => [798 'isoName' => 'Bodo',799 'nativeName' => 'Bodo',800 ],801 'byn' => [802 'isoName' => 'Bilin',803 'nativeName' => 'Bilin',804 ],805 'ccp' => [806 'isoName' => 'Chakma',807 'nativeName' => 'Chakma',808 ],809 'cgg' => [810 'isoName' => 'Chiga',811 'nativeName' => 'Chiga',812 ],813 'chr' => [814 'isoName' => 'Cherokee',815 'nativeName' => 'Cherokee',816 ],817 'cmn' => [818 'isoName' => 'Chinese',819 'nativeName' => 'Chinese',820 ],821 'crh' => [822 'isoName' => 'Crimean Turkish',823 'nativeName' => 'Crimean Turkish',824 ],825 'csb' => [826 'isoName' => 'Kashubian',827 'nativeName' => 'Kashubian',828 ],829 'dav' => [830 'isoName' => 'Taita',831 'nativeName' => 'Taita',832 ],833 'dje' => [834 'isoName' => 'Zarma',835 'nativeName' => 'Zarma',836 ],837 'doi' => [838 'isoName' => 'Dogri (macrolanguage)',839 'nativeName' => 'Dogri (macrolanguage)',840 ],841 'dsb' => [842 'isoName' => 'Lower Sorbian',843 'nativeName' => 'Lower Sorbian',844 ],845 'dua' => [846 'isoName' => 'Duala',847 'nativeName' => 'Duala',848 ],849 'dyo' => [850 'isoName' => 'Jola-Fonyi',851 'nativeName' => 'Jola-Fonyi',852 ],853 'ebu' => [854 'isoName' => 'Embu',855 'nativeName' => 'Embu',856 ],857 'ewo' => [858 'isoName' => 'Ewondo',859 'nativeName' => 'Ewondo',860 ],861 'fil' => [862 'isoName' => 'Filipino',863 'nativeName' => 'Filipino',864 ],865 'fur' => [866 'isoName' => 'Friulian',867 'nativeName' => 'Friulian',868 ],869 'gez' => [870 'isoName' => 'Geez',871 'nativeName' => 'Geez',872 ],873 'gom' => [874 'isoName' => 'Konkani, Goan',875 'nativeName' => 'à²à³à²à²à²£à²¿',876 ],877 'gsw' => [878 'isoName' => 'Swiss German',879 'nativeName' => 'Swiss German',880 ],881 'guz' => [882 'isoName' => 'Gusii',883 'nativeName' => 'Gusii',884 ],885 'hak' => [886 'isoName' => 'Hakka Chinese',887 'nativeName' => 'Hakka Chinese',888 ],889 'haw' => [890 'isoName' => 'Hawaiian',891 'nativeName' => 'Hawaiian',892 ],893 'hif' => [894 'isoName' => 'Fiji Hindi',895 'nativeName' => 'Fiji Hindi',896 ],897 'hne' => [898 'isoName' => 'Chhattisgarhi',899 'nativeName' => 'Chhattisgarhi',900 ],901 'hsb' => [902 'isoName' => 'Upper Sorbian',903 'nativeName' => 'Upper Sorbian',904 ],905 'jgo' => [906 'isoName' => 'Ngomba',907 'nativeName' => 'Ngomba',908 ],909 'jmc' => [910 'isoName' => 'Machame',911 'nativeName' => 'Machame',912 ],913 'kab' => [914 'isoName' => 'Kabyle',915 'nativeName' => 'Kabyle',916 ],917 'kam' => [918 'isoName' => 'Kamba',919 'nativeName' => 'Kamba',920 ],921 'kde' => [922 'isoName' => 'Makonde',923 'nativeName' => 'Makonde',924 ],925 'kea' => [926 'isoName' => 'Kabuverdianu',927 'nativeName' => 'Kabuverdianu',928 ],929 'khq' => [930 'isoName' => 'Koyra Chiini',931 'nativeName' => 'Koyra Chiini',932 ],933 'kkj' => [934 'isoName' => 'Kako',935 'nativeName' => 'Kako',936 ],937 'kln' => [938 'isoName' => 'Kalenjin',939 'nativeName' => 'Kalenjin',940 ],941 'kok' => [942 'isoName' => 'Konkani',943 'nativeName' => 'Konkani',944 ],945 'ksb' => [946 'isoName' => 'Shambala',947 'nativeName' => 'Shambala',948 ],949 'ksf' => [950 'isoName' => 'Bafia',951 'nativeName' => 'Bafia',952 ],953 'ksh' => [954 'isoName' => 'Colognian',955 'nativeName' => 'Colognian',956 ],957 'lag' => [958 'isoName' => 'Langi',959 'nativeName' => 'Langi',960 ],961 'lij' => [962 'isoName' => 'Ligurian',963 'nativeName' => 'Ligurian',964 ],965 'lkt' => [966 'isoName' => 'Lakota',967 'nativeName' => 'Lakota',968 ],969 'lrc' => [970 'isoName' => 'Northern Luri',971 'nativeName' => 'Northern Luri',972 ],973 'luo' => [974 'isoName' => 'Luo',975 'nativeName' => 'Luo',976 ],977 'luy' => [978 'isoName' => 'Luyia',979 'nativeName' => 'Luyia',980 ],981 'lzh' => [982 'isoName' => 'Literary Chinese',983 'nativeName' => 'Literary Chinese',984 ],985 'mag' => [986 'isoName' => 'Magahi',987 'nativeName' => 'Magahi',988 ],989 'mai' => [990 'isoName' => 'Maithili',991 'nativeName' => 'Maithili',992 ],993 'mas' => [994 'isoName' => 'Masai',995 'nativeName' => 'Masai',996 ],997 'mer' => [998 'isoName' => 'Meru',999 'nativeName' => 'Meru',1000 ],1001 'mfe' => [1002 'isoName' => 'Morisyen',1003 'nativeName' => 'Morisyen',1004 ],1005 'mgh' => [1006 'isoName' => 'Makhuwa-Meetto',1007 'nativeName' => 'Makhuwa-Meetto',1008 ],1009 'mgo' => [1010 'isoName' => 'Metaʼ',1011 'nativeName' => 'Metaʼ',1012 ],1013 'mhr' => [1014 'isoName' => 'Eastern Mari',1015 'nativeName' => 'Eastern Mari',1016 ],1017 'miq' => [1018 'isoName' => 'MÃskito',1019 'nativeName' => 'MÃskito',1020 ],1021 'mjw' => [1022 'isoName' => 'Karbi',1023 'nativeName' => 'Karbi',1024 ],1025 'mni' => [1026 'isoName' => 'Manipuri',1027 'nativeName' => 'Manipuri',1028 ],1029 'mua' => [1030 'isoName' => 'Mundang',1031 'nativeName' => 'Mundang',1032 ],1033 'mzn' => [1034 'isoName' => 'Mazanderani',1035 'nativeName' => 'Mazanderani',1036 ],1037 'nan' => [1038 'isoName' => 'Min Nan Chinese',1039 'nativeName' => 'Min Nan Chinese',1040 ],1041 'naq' => [1042 'isoName' => 'Nama',1043 'nativeName' => 'Nama',1044 ],1045 'nds' => [1046 'isoName' => 'Low German',1047 'nativeName' => 'Low German',1048 ],1049 'nhn' => [1050 'isoName' => 'Central Nahuatl',1051 'nativeName' => 'Central Nahuatl',1052 ],1053 'niu' => [1054 'isoName' => 'Niuean',1055 'nativeName' => 'Niuean',1056 ],1057 'nmg' => [1058 'isoName' => 'Kwasio',1059 'nativeName' => 'Kwasio',1060 ],1061 'nnh' => [1062 'isoName' => 'Ngiemboon',1063 'nativeName' => 'Ngiemboon',1064 ],1065 'nso' => [1066 'isoName' => 'Northern Sotho',1067 'nativeName' => 'Northern Sotho',1068 ],1069 'nus' => [1070 'isoName' => 'Nuer',1071 'nativeName' => 'Nuer',1072 ],1073 'nyn' => [1074 'isoName' => 'Nyankole',1075 'nativeName' => 'Nyankole',1076 ],1077 'pap' => [1078 'isoName' => 'Papiamento',1079 'nativeName' => 'Papiamento',1080 ],1081 'prg' => [1082 'isoName' => 'Prussian',1083 'nativeName' => 'Prussian',1084 ],1085 'quz' => [1086 'isoName' => 'Cusco Quechua',1087 'nativeName' => 'Cusco Quechua',1088 ],1089 'raj' => [1090 'isoName' => 'Rajasthani',1091 'nativeName' => 'Rajasthani',1092 ],1093 'rof' => [1094 'isoName' => 'Rombo',1095 'nativeName' => 'Rombo',1096 ],1097 'rwk' => [1098 'isoName' => 'Rwa',1099 'nativeName' => 'Rwa',1100 ],1101 'sah' => [1102 'isoName' => 'Sakha',1103 'nativeName' => 'Sakha',1104 ],1105 'saq' => [1106 'isoName' => 'Samburu',1107 'nativeName' => 'Samburu',1108 ],1109 'sat' => [1110 'isoName' => 'Santali',1111 'nativeName' => 'Santali',1112 ],1113 'sbp' => [1114 'isoName' => 'Sangu',1115 'nativeName' => 'Sangu',1116 ],1117 'scr' => [1118 'isoName' => 'Serbo Croatian',1119 'nativeName' => 'Serbo Croatian',1120 ],1121 'seh' => [1122 'isoName' => 'Sena',1123 'nativeName' => 'Sena',1124 ],1125 'ses' => [1126 'isoName' => 'Koyraboro Senni',1127 'nativeName' => 'Koyraboro Senni',1128 ],1129 'sgs' => [1130 'isoName' => 'Samogitian',1131 'nativeName' => 'Samogitian',1132 ],1133 'shi' => [1134 'isoName' => 'Tachelhit',1135 'nativeName' => 'Tachelhit',1136 ],1137 'shn' => [1138 'isoName' => 'Shan',1139 'nativeName' => 'Shan',1140 ],1141 'shs' => [1142 'isoName' => 'Shuswap',1143 'nativeName' => 'Shuswap',1144 ],1145 'sid' => [1146 'isoName' => 'Sidamo',1147 'nativeName' => 'Sidamo',1148 ],1149 'smn' => [1150 'isoName' => 'Inari Sami',1151 'nativeName' => 'Inari Sami',1152 ],1153 'szl' => [1154 'isoName' => 'Silesian',1155 'nativeName' => 'Silesian',1156 ],1157 'tcy' => [1158 'isoName' => 'Tulu',1159 'nativeName' => 'Tulu',1160 ],1161 'teo' => [1162 'isoName' => 'Teso',1163 'nativeName' => 'Teso',1164 ],1165 'tet' => [1166 'isoName' => 'Tetum',1167 'nativeName' => 'Tetum',1168 ],1169 'the' => [1170 'isoName' => 'Chitwania Tharu',1171 'nativeName' => 'Chitwania Tharu',1172 ],1173 'tig' => [1174 'isoName' => 'Tigre',1175 'nativeName' => 'Tigre',1176 ],1177 'tlh' => [1178 'isoName' => 'Klingon',1179 'nativeName' => 'tlhIngan Hol',1180 ],1181 'tpi' => [1182 'isoName' => 'Tok Pisin',1183 'nativeName' => 'Tok Pisin',1184 ],1185 'twq' => [1186 'isoName' => 'Tasawaq',1187 'nativeName' => 'Tasawaq',1188 ],1189 'tzl' => [1190 'isoName' => 'Talossan',1191 'nativeName' => 'Talossan',1192 ],1193 'tzm' => [1194 'isoName' => 'Tamazight, Central Atlas',1195 'nativeName' => 'âµâµâ´°âµ£âµâµâµ',1196 ],1197 'unm' => [1198 'isoName' => 'Unami',1199 'nativeName' => 'Unami',1200 ],1201 'vai' => [1202 'isoName' => 'Vai',1203 'nativeName' => 'Vai',1204 ],1205 'vun' => [1206 'isoName' => 'Vunjo',1207 'nativeName' => 'Vunjo',1208 ],1209 'wae' => [1210 'isoName' => 'Walser',1211 'nativeName' => 'Walser',1212 ],1213 'wal' => [1214 'isoName' => 'Wolaytta',1215 'nativeName' => 'Wolaytta',1216 ],1217 'xog' => [1218 'isoName' => 'Soga',1219 'nativeName' => 'Soga',1220 ],1221 'yav' => [1222 'isoName' => 'Yangben',1223 'nativeName' => 'Yangben',1224 ],1225 'yue' => [1226 'isoName' => 'Cantonese',1227 'nativeName' => 'Cantonese',1228 ],1229 'yuw' => [1230 'isoName' => 'Yau (Morobe Province)',1231 'nativeName' => 'Yau (Morobe Province)',1232 ],1233 'zgh' => [1234 'isoName' => 'Standard Moroccan Tamazight',1235 'nativeName' => 'Standard Moroccan Tamazight',1236 ],1237];...
LanguageCodes.php
Source:LanguageCodes.php
1<?php2namespace Grav\Common\Language;3/**4 * Language and translation functionality for Grav5 */6class LanguageCodes7{8 protected static $codes = [9 "ab" => [10 "name" => "Abkhaz",11 "nativeName" => "аҧÑÑа"12 ],13 "aa" => [14 "name" => "Afar",15 "nativeName" => "Afaraf"16 ],17 "af" => [18 "name" => "Afrikaans",19 "nativeName" => "Afrikaans"20 ],21 "ak" => [22 "name" => "Akan",23 "nativeName" => "Akan"24 ],25 "sq" => [26 "name" => "Albanian",27 "nativeName" => "Shqip"28 ],29 "am" => [30 "name" => "Amharic",31 "nativeName" => "á ááá"32 ],33 "ar" => [34 "name" => "Arabic",35 "nativeName" => "اÙعربÙØ©"36 ],37 "an" => [38 "name" => "Aragonese",39 "nativeName" => "Aragonés"40 ],41 "hy" => [42 "name" => "Armenian",43 "nativeName" => "ÕÕ¡ÕµÕ¥ÖÕ¥Õ¶"44 ],45 "as" => [46 "name" => "Assamese",47 "nativeName" => "à¦
সমà§à¦¯à¦¼à¦¾"48 ],49 "av" => [50 "name" => "Avaric",51 "nativeName" => "Ð°Ð²Ð°Ñ Ð¼Ð°ÑÓ"52 ],53 "ae" => [54 "name" => "Avestan",55 "nativeName" => "avesta"56 ],57 "ay" => [58 "name" => "Aymara",59 "nativeName" => "aymar aru"60 ],61 "az" => [62 "name" => "Azerbaijani",63 "nativeName" => "azÉrbaycan dili"64 ],65 "bm" => [66 "name" => "Bambara",67 "nativeName" => "bamanankan"68 ],69 "ba" => [70 "name" => "Bashkir",71 "nativeName" => "баÑҡоÑÑ Ñеле"72 ],73 "eu" => [74 "name" => "Basque",75 "nativeName" => "euskara"76 ],77 "be" => [78 "name" => "Belarusian",79 "nativeName" => "ÐелаÑÑÑкаÑ"80 ],81 "bn" => [82 "name" => "Bengali",83 "nativeName" => "বাà¦à¦²à¦¾"84 ],85 "bh" => [86 "name" => "Bihari",87 "nativeName" => "à¤à¥à¤à¤ªà¥à¤°à¥"88 ],89 "bi" => [90 "name" => "Bislama",91 "nativeName" => "Bislama"92 ],93 "bs" => [94 "name" => "Bosnian",95 "nativeName" => "bosanski jezik"96 ],97 "br" => [98 "name" => "Breton",99 "nativeName" => "brezhoneg"100 ],101 "bg" => [102 "name" => "Bulgarian",103 "nativeName" => "бÑлгаÑÑки език"104 ],105 "my" => [106 "name" => "Burmese",107 "nativeName" => "ááá¬á
á¬"108 ],109 "ca" => [110 "name" => "Catalan",111 "nativeName" => "Català "112 ],113 "ch" => [114 "name" => "Chamorro",115 "nativeName" => "Chamoru"116 ],117 "ce" => [118 "name" => "Chechen",119 "nativeName" => "ноÑ
Ñийн моÑÑ"120 ],121 "ny" => [122 "name" => "Chichewa",123 "nativeName" => "chiCheŵa"124 ],125 "zh" => [126 "name" => "Chinese",127 "nativeName" => "ä¸æ"128 ],129 "cv" => [130 "name" => "Chuvash",131 "nativeName" => "ÑÓÐ²Ð°Ñ ÑÓлÑ
и"132 ],133 "kw" => [134 "name" => "Cornish",135 "nativeName" => "Kernewek"136 ],137 "co" => [138 "name" => "Corsican",139 "nativeName" => "corsu"140 ],141 "cr" => [142 "name" => "Cree",143 "nativeName" => "áá¦ááááá£"144 ],145 "hr" => [146 "name" => "Croatian",147 "nativeName" => "hrvatski"148 ],149 "cs" => [150 "name" => "Czech",151 "nativeName" => "Äesky"152 ],153 "da" => [154 "name" => "Danish",155 "nativeName" => "dansk"156 ],157 "dv" => [158 "name" => "Divehi",159 "nativeName" => "ÞÞ¨ÞÞ¬ÞÞ¨"160 ],161 "nl" => [162 "name" => "Dutch",163 "nativeName" => "Nederlands"164 ],165 "en" => [166 "name" => "English",167 "nativeName" => "English"168 ],169 "eo" => [170 "name" => "Esperanto",171 "nativeName" => "Esperanto"172 ],173 "et" => [174 "name" => "Estonian",175 "nativeName" => "eesti"176 ],177 "ee" => [178 "name" => "Ewe",179 "nativeName" => "EÊegbe"180 ],181 "fo" => [182 "name" => "Faroese",183 "nativeName" => "føroyskt"184 ],185 "fj" => [186 "name" => "Fijian",187 "nativeName" => "vosa Vakaviti"188 ],189 "fi" => [190 "name" => "Finnish",191 "nativeName" => "suomi"192 ],193 "fr" => [194 "name" => "French",195 "nativeName" => "Français"196 ],197 "ff" => [198 "name" => "Fula",199 "nativeName" => "Fulfulde"200 ],201 "gl" => [202 "name" => "Galician",203 "nativeName" => "Galego"204 ],205 "ka" => [206 "name" => "Georgian",207 "nativeName" => "á¥áá áá£áá"208 ],209 "de" => [210 "name" => "German",211 "nativeName" => "Deutsch"212 ],213 "el" => [214 "name" => "Greek",215 "nativeName" => "Îλληνικά"216 ],217 "gn" => [218 "name" => "GuaranÃ",219 "nativeName" => "Avañeẽ"220 ],221 "gu" => [222 "name" => "Gujarati",223 "nativeName" => "àªà«àªàª°àª¾àª¤à«"224 ],225 "ht" => [226 "name" => "Haitian",227 "nativeName" => "Kreyòl ayisyen"228 ],229 "ha" => [230 "name" => "Hausa",231 "nativeName" => "ÙÙÙÙسÙ"232 ],233 "he" => [234 "name" => "Hebrew",235 "nativeName" => "×¢×ר×ת"236 ],237 "hz" => [238 "name" => "Herero",239 "nativeName" => "Otjiherero"240 ],241 "hi" => [242 "name" => "Hindi",243 "nativeName" => "हिनà¥à¤¦à¥"244 ],245 "ho" => [246 "name" => "Hiri Motu",247 "nativeName" => "Hiri Motu"248 ],249 "hu" => [250 "name" => "Hungarian",251 "nativeName" => "Magyar"252 ],253 "ia" => [254 "name" => "Interlingua",255 "nativeName" => "Interlingua"256 ],257 "id" => [258 "name" => "Indonesian",259 "nativeName" => "Bahasa Indonesia"260 ],261 "ie" => [262 "name" => "Interlingue",263 "nativeName" => "Interlingue"264 ],265 "ga" => [266 "name" => "Irish",267 "nativeName" => "Gaeilge"268 ],269 "ig" => [270 "name" => "Igbo",271 "nativeName" => "Asụsụ Igbo"272 ],273 "ik" => [274 "name" => "Inupiaq",275 "nativeName" => "Iñupiaq"276 ],277 "io" => [278 "name" => "Ido",279 "nativeName" => "Ido"280 ],281 "is" => [282 "name" => "Icelandic",283 "nativeName" => "Ãslenska"284 ],285 "it" => [286 "name" => "Italian",287 "nativeName" => "Italiano"288 ],289 "iu" => [290 "name" => "Inuktitut",291 "nativeName" => "áááááá¦"292 ],293 "ja" => [294 "name" => "Japanese",295 "nativeName" => "æ¥æ¬èª"296 ],297 "jv" => [298 "name" => "Javanese",299 "nativeName" => "basa Jawa"300 ],301 "kl" => [302 "name" => "Kalaallisut",303 "nativeName" => "kalaallisut"304 ],305 "kn" => [306 "name" => "Kannada",307 "nativeName" => "à²à²¨à³à²¨à²¡"308 ],309 "kr" => [310 "name" => "Kanuri",311 "nativeName" => "Kanuri"312 ],313 "ks" => [314 "name" => "Kashmiri",315 "nativeName" => "à¤à¤¶à¥à¤®à¥à¤°à¥"316 ],317 "kk" => [318 "name" => "Kazakh",319 "nativeName" => "ÒÐ°Ð·Ð°Ò ÑÑлÑ"320 ],321 "km" => [322 "name" => "Khmer",323 "nativeName" => "áá¶áá¶ááááá"324 ],325 "ki" => [326 "name" => "Kikuyu",327 "nativeName" => "GÄ©kÅ©yÅ©"328 ],329 "rw" => [330 "name" => "Kinyarwanda",331 "nativeName" => "Ikinyarwanda"332 ],333 "ky" => [334 "name" => "Kirghiz",335 "nativeName" => "кÑÑгÑз Ñили"336 ],337 "kv" => [338 "name" => "Komi",339 "nativeName" => "коми кÑв"340 ],341 "kg" => [342 "name" => "Kongo",343 "nativeName" => "KiKongo"344 ],345 "ko" => [346 "name" => "Korean",347 "nativeName" => "íêµì´"348 ],349 "ku" => [350 "name" => "Kurdish",351 "nativeName" => "ÙÙردÛâ"352 ],353 "kj" => [354 "name" => "Kwanyama",355 "nativeName" => "Kuanyama"356 ],357 "la" => [358 "name" => "Latin",359 "nativeName" => "latine"360 ],361 "lb" => [362 "name" => "Luxembourgish",363 "nativeName" => "Lëtzebuergesch"364 ],365 "lg" => [366 "name" => "Luganda",367 "nativeName" => "Luganda"368 ],369 "li" => [370 "name" => "Limburgish",371 "nativeName" => "Limburgs"372 ],373 "ln" => [374 "name" => "Lingala",375 "nativeName" => "Lingála"376 ],377 "lo" => [378 "name" => "Lao",379 "nativeName" => "àºàº²àºªàº²àº¥àº²àº§"380 ],381 "lt" => [382 "name" => "Lithuanian",383 "nativeName" => "lietuvių kalba"384 ],385 "lu" => [386 "name" => "Luba-Katanga",387 "nativeName" => "Luba-Katanga"388 ],389 "lv" => [390 "name" => "Latvian",391 "nativeName" => "latvieÅ¡u valoda"392 ],393 "gv" => [394 "name" => "Manx",395 "nativeName" => "Gaelg"396 ],397 "mk" => [398 "name" => "Macedonian",399 "nativeName" => "македонÑки Ñазик"400 ],401 "mg" => [402 "name" => "Malagasy",403 "nativeName" => "Malagasy fiteny"404 ],405 "ms" => [406 "name" => "Malay",407 "nativeName" => "بÙاس Ù
ÙاÙÙâ"408 ],409 "ml" => [410 "name" => "Malayalam",411 "nativeName" => "മലയാളà´"412 ],413 "mt" => [414 "name" => "Maltese",415 "nativeName" => "Malti"416 ],417 "mi" => [418 "name" => "MÄori",419 "nativeName" => "te reo MÄori"420 ],421 "mr" => [422 "name" => "Marathi",423 "nativeName" => "मराठà¥"424 ],425 "mh" => [426 "name" => "Marshallese",427 "nativeName" => "Kajin M̧ajeļ"428 ],429 "mn" => [430 "name" => "Mongolian",431 "nativeName" => "монгол"432 ],433 "na" => [434 "name" => "Nauru",435 "nativeName" => "EkakairÅ© Naoero"436 ],437 "nv" => [438 "name" => "Navajo",439 "nativeName" => "Diné bizaad"440 ],441 "nb" => [442 "name" => "Norwegian BokmÃ¥l",443 "nativeName" => "Norsk bokmÃ¥l"444 ],445 "nd" => [446 "name" => "North Ndebele",447 "nativeName" => "isiNdebele"448 ],449 "ne" => [450 "name" => "Nepali",451 "nativeName" => "नà¥à¤ªà¤¾à¤²à¥"452 ],453 "ng" => [454 "name" => "Ndonga",455 "nativeName" => "Owambo"456 ],457 "nn" => [458 "name" => "Norwegian Nynorsk",459 "nativeName" => "Norsk nynorsk"460 ],461 "no" => [462 "name" => "Norwegian",463 "nativeName" => "Norsk"464 ],465 "ii" => [466 "name" => "Nuosu",467 "nativeName" => "êê ê¿ Nuosuhxop"468 ],469 "nr" => [470 "name" => "South Ndebele",471 "nativeName" => "isiNdebele"472 ],473 "oc" => [474 "name" => "Occitan",475 "nativeName" => "Occitan"476 ],477 "oj" => [478 "name" => "Ojibwe, Ojibwa",479 "nativeName" => "ááááá¯á§áá"480 ],481 "cu" => [482 "name" => "Church Slavic",483 "nativeName" => "ѩзÑÐºÑ ÑловѣнÑÑкÑ"484 ],485 "om" => [486 "name" => "Oromo",487 "nativeName" => "Afaan Oromoo"488 ],489 "or" => [490 "name" => "Oriya",491 "nativeName" => "à¬à¬¡à¬¼à¬¿à¬"492 ],493 "os" => [494 "name" => "Ossetian",495 "nativeName" => "иÑон æвзаг"496 ],497 "pa" => [498 "name" => "Panjabi",499 "nativeName" => "ਪੰà¨à¨¾à¨¬à©"500 ],501 "pi" => [502 "name" => "PÄli",503 "nativeName" => "पाऴि"504 ],505 "fa" => [506 "name" => "Persian",507 "nativeName" => "ÙارسÛ"508 ],509 "pl" => [510 "name" => "Polish",511 "nativeName" => "polski"512 ],513 "ps" => [514 "name" => "Pashto",515 "nativeName" => "Ù¾ÚتÙ"516 ],517 "pt" => [518 "name" => "Portuguese",519 "nativeName" => "Português"520 ],521 "qu" => [522 "name" => "Quechua",523 "nativeName" => "Runa Simi"524 ],525 "rm" => [526 "name" => "Romansh",527 "nativeName" => "rumantsch grischun"528 ],529 "rn" => [530 "name" => "Kirundi",531 "nativeName" => "kiRundi"532 ],533 "ro" => [534 "name" => "Romanian",535 "nativeName" => "românÄ"536 ],537 "ru" => [538 "name" => "Russian",539 "nativeName" => "Ð ÑÑÑкий"540 ],541 "sa" => [542 "name" => "Sanskrit",543 "nativeName" => "सà¤à¤¸à¥à¤à¥à¤¤à¤®à¥"544 ],545 "sc" => [546 "name" => "Sardinian",547 "nativeName" => "sardu"548 ],549 "sd" => [550 "name" => "Sindhi",551 "nativeName" => "सिनà¥à¤§à¥"552 ],553 "se" => [554 "name" => "Northern Sami",555 "nativeName" => "Davvisámegiella"556 ],557 "sm" => [558 "name" => "Samoan",559 "nativeName" => "gagana faa Samoa"560 ],561 "sg" => [562 "name" => "Sango",563 "nativeName" => "yângâ tî sängö"564 ],565 "sr" => [566 "name" => "Serbian",567 "nativeName" => "ÑÑпÑки Ñезик"568 ],569 "gd" => [570 "name" => "Scottish Gaelic",571 "nativeName" => "Gà idhlig"572 ],573 "sn" => [574 "name" => "Shona",575 "nativeName" => "chiShona"576 ],577 "si" => [578 "name" => "Sinhala",579 "nativeName" => "à·à·à¶à·à¶½"580 ],581 "sk" => [582 "name" => "Slovak",583 "nativeName" => "slovenÄina"584 ],585 "sl" => [586 "name" => "Slovene",587 "nativeName" => "slovenÅ¡Äina"588 ],589 "so" => [590 "name" => "Somali",591 "nativeName" => "Soomaaliga"592 ],593 "st" => [594 "name" => "Southern Sotho",595 "nativeName" => "Sesotho"596 ],597 "es" => [598 "name" => "Spanish",599 "nativeName" => "Español"600 ],601 "su" => [602 "name" => "Sundanese",603 "nativeName" => "Basa Sunda"604 ],605 "sw" => [606 "name" => "Swahili",607 "nativeName" => "Kiswahili"608 ],609 "ss" => [610 "name" => "Swati",611 "nativeName" => "SiSwati"612 ],613 "sv" => [614 "name" => "Swedish",615 "nativeName" => "svenska"616 ],617 "ta" => [618 "name" => "Tamil",619 "nativeName" => "தமிழà¯"620 ],621 "te" => [622 "name" => "Telugu",623 "nativeName" => "à°¤à±à°²à±à°à±"624 ],625 "tg" => [626 "name" => "Tajik",627 "nativeName" => "Ñоҷикӣ"628 ],629 "th" => [630 "name" => "Thai",631 "nativeName" => "à¹à¸à¸¢"632 ],633 "ti" => [634 "name" => "Tigrinya",635 "nativeName" => "áµááá"636 ],637 "bo" => [638 "name" => "Tibetan",639 "nativeName" => "à½à½¼à½à¼à½¡à½²à½"640 ],641 "tk" => [642 "name" => "Turkmen",643 "nativeName" => "Türkmen"644 ],645 "tl" => [646 "name" => "Tagalog",647 "nativeName" => "Wikang Tagalog"648 ],649 "tn" => [650 "name" => "Tswana",651 "nativeName" => "Setswana"652 ],653 "to" => [654 "name" => "Tonga",655 "nativeName" => "faka Tonga"656 ],657 "tr" => [658 "name" => "Turkish",659 "nativeName" => "Türkçe"660 ],661 "ts" => [662 "name" => "Tsonga",663 "nativeName" => "Xitsonga"664 ],665 "tt" => [666 "name" => "Tatar",667 "nativeName" => "ÑаÑаÑÑа"668 ],669 "tw" => [670 "name" => "Twi",671 "nativeName" => "Twi"672 ],673 "ty" => [674 "name" => "Tahitian",675 "nativeName" => "Reo Tahiti"676 ],677 "ug" => [678 "name" => "Uighur",679 "nativeName" => "UyÆ£urqÉ"680 ],681 "uk" => [682 "name" => "Ukrainian",683 "nativeName" => "ÑкÑаÑнÑÑка"684 ],685 "ur" => [686 "name" => "Urdu",687 "nativeName" => "اردÙ"688 ],689 "uz" => [690 "name" => "Uzbek",691 "nativeName" => "zbek"692 ],693 "ve" => [694 "name" => "Venda",695 "nativeName" => "Tshivená¸a"696 ],697 "vi" => [698 "name" => "Vietnamese",699 "nativeName" => "Tiếng Viá»t"700 ],701 "vo" => [702 "name" => "Volapük",703 "nativeName" => "Volapük"704 ],705 "wa" => [706 "name" => "Walloon",707 "nativeName" => "Walon"708 ],709 "cy" => [710 "name" => "Welsh",711 "nativeName" => "Cymraeg"712 ],713 "wo" => [714 "name" => "Wolof",715 "nativeName" => "Wollof"716 ],717 "fy" => [718 "name" => "Western Frisian",719 "nativeName" => "Frysk"720 ],721 "xh" => [722 "name" => "Xhosa",723 "nativeName" => "isiXhosa"724 ],725 "yi" => [726 "name" => "Yiddish",727 "nativeName" => "××Ö´××ש"728 ],729 "yo" => [730 "name" => "Yoruba",731 "nativeName" => "Yorùbá"732 ],733 "za" => [734 "name" => "Zhuang",735 "nativeName" => "Saɯ cueÅÆ
"736 ]737 ];738 public static function getName($code)739 {740 return static::get($code, 'name');741 }742 public static function getNativeName($code)743 {744 if (strlen($code) == 2) {745 return static::get($code, 'nativeName');746 } else {747 return static::get(substr($code, 0, 2), 'nativeName') . ' (' . substr($code, -2) . ')';748 }749 }750 public static function getNames(array $keys)751 {752 $results = [];753 foreach ($keys as $key) {754 if (isset(static::$codes[$key])) {755 $results[$key] = static::$codes[$key];756 }757 }758 return $results;759 }760 protected static function get($code, $type)761 {762 if (isset(static::$codes[$code][$type])) {763 return static::$codes[$code][$type];764 } else {765 return false;766 }767 }768}...
WorkDAO.swift
Source:WorkDAO.swift
...188 SELECT189 w.id AS work_id,190 w.title AS work_title,191 w.image_name,192 aw.name AS award_name,193 ac.year AS award_year,194 ac.name AS award_category,195 CASE WHEN wac.status = 1 THEN 'Winner'196 WHEN wac.status = 2 THEN 'Finalist'197 END AS award_status,198 a.id AS author_id,199 a.first_name AS author_first_name,200 a.middle_name AS author_middle_name,201 a.last_name AS author_last_name,202 s.id AS series_id,203 s.name AS series_name,204 ws.ordinal_name AS series_ordinal_name205 FROM206 work w207 INNER JOIN208 work_award_category wac ON wac.work_id = w.id209 INNER JOIN210 award_category ac ON ac.id = wac.award_category_id211 INNER JOIN212 award aw ON aw.id = ac.award_id213 LEFT OUTER JOIN214 work_author wa ON wa.work_id = w.id215 LEFT OUTER JOIN216 author a ON a.id = wa.author_id217 LEFT OUTER JOIN218 work_series ws ON ws.work_id = w.id219 LEFT OUTER JOIN220 series s ON s.id = ws.series_id221 WHERE222 aw.name = 'Hugo Award' and223 ac.name = 'Best Novel'224 ORDER BY225 ac.year DESC,226 wac.status,227 w.title;228 """229 230 var stmt: OpaquePointer?231 do {232 if sqlite3_prepare_v2(conn, sql, -1, &stmt, nil) == SQLITE_OK {233 var prevWorkId = -1;234 var currWorkId = -1;235 var authors = [Author]()236// var work = Work(id: -1, title: "", imageName: "", authors: authors, awards: [])237 238 while sqlite3_step(stmt) == SQLITE_ROW {239 let currWorkId = getInt(stmt: stmt, colIndex: 0)240 let awardYear = getInt(stmt: stmt, colIndex: 4)241 let authorId = getInt(stmt: stmt, colIndex: 7)242 let firstName = try getString(stmt: stmt, colIndex: 8)243 let middleName = try getString(stmt: stmt, colIndex: 9)244 let lastName = try getString(stmt: stmt, colIndex: 10)245 if currWorkId != prevWorkId {246 if let firstName = firstName, let lastName = lastName {247 authors.append(Author(id: authorId,248 firstName: firstName,249 middleName: middleName,250 lastName: lastName))251 }252 253 if let awardStatus = try getString(stmt: stmt, colIndex: 6) {254 let award = Award(id: 1,255 type: "Hugo",256 name: "Best Novel",257 year: awardYear,258 status: awardStatus)259 260 if let title = try getString(stmt: stmt, colIndex: 1),261 let imageName = try getString(stmt: stmt, colIndex: 2) {262 263 if let seriesName = try getString(stmt: stmt, colIndex: 12) {264 let seriesId = getInt(stmt: stmt, colIndex: 11)265 let seriesOrdinalName = try getString(stmt: stmt, colIndex: 13)266 let series = Series(id: seriesId, name: seriesName)267 268 works.append(Work(id: currWorkId,269 title: title,270 imageName: imageName,271 authors: authors,272 awards: [award],273 series: series,274 seriesOrdinalName: seriesOrdinalName))275 }276 else {277 works.append(Work(id: currWorkId,278 title: title,279 imageName: imageName,280 authors: authors,281 awards: [award]))282 }283 authors = [Author]()284 }285 }286 }287 else {288 if let firstName = firstName, let lastName = lastName {289 authors.append(Author(id: authorId,290 firstName: firstName,291 middleName: middleName,292 lastName: lastName))293 }294 }295 296 prevWorkId = currWorkId297 }298 }299 } catch {300 print(error)301 }302 303 return works304 }305 306 func getHugoWinners() -> [Work] {307 var works = [Work]()308 309 let sql = """310 select311 aw.name as award_name,312 ac.year as award_year,313 ac.name as award_category,314 w.id as work_id,315 w.title as work_title,316 case when wac.status = 1 then 'Winner'317 when wac.status = 2 then 'Finalist'318 end as award_status,319 a.id as author_id,320 a.first_name as author_first_name,321 a.middle_name as author_middle_name,322 a.last_name as author_last_name323 from324 award aw325 left outer join326 award_category ac on ac.award_id = aw.id327 left outer join328 work_award_category wac on wac.award_category_id = ac.id329 left outer join330 work w on w.id = wac.work_id331 left outer join332 work_author wa on wa.work_id = w.id333 left outer join334 author a on a.id = wa.author_id335 where336 aw.name = 'Hugo Award' and337 ac.name = 'Best Novel'338 order by339 ac.year,340 wac.status,341 w.title;342 """343 344 var stmt: OpaquePointer?345 do {346 if sqlite3_prepare_v2(conn, sql, -1, &stmt, nil) == SQLITE_OK {347 var prevWorkId = -1;348 var currWorkId = -1;349 var authors = [Author]()350 351 while sqlite3_step(stmt) == SQLITE_ROW {...
LogicGame.swift
Source:LogicGame.swift
...41 42 43 }44 45 func elementAddAuxNode(name : String, node : SKNode){46 auxNodeDor = SKSpriteNode(imageNamed: name)47 auxNodeDor?.position = node.position48 auxNodeDor?.name = node.name49 auxNodeDor?.zPosition = 350 addChild(auxNodeDor!)51 }52 public func movePlayer(points : CGPoint, name: String){53 54 if name == "player1" {55 player1.position = points56 57 for var p in modelPlayerList.players! {58 if modelPlayerList.players?.first?.stateDungeon == 0 {59 player1.isHidden = false60 }61 p.position = points62 63 }64 65 66 67 }else if name == "player2"{68 player2.position = points69 for var p in modelPlayerList.players! {70 p.position = points71 }72 }73 74 75 76 77 }78 79 override public func touchesBegan ( _ touches: Set<UITouch>, with event: UIEvent?) {80 81 if let location = touches.first?.location(in: self){82 print(location)83 player1.position = location84 85 }}86 87 override func update(_ currentTime: TimeInterval) {88 89 90 91 }92 93 94 95 96 97 98 public func didBegin(_ contact: SKPhysicsContact) {99 100 guard let nodeA = contact.bodyA.node else {return}101 guard let nodeB = contact.bodyB.node else { return}102 103 104 if((nodeA.name == "player1" && nodeB.name == "dorEsq") ||105 (nodeA.name == "dorEsq" && nodeB.name == "player1")){106 print("porta Esquerda")107 108// dorBack.position = dorDir.position109 modelPlayerList.players?[0].stateDungeon = 1110// createNodes.removeAllNodes(scene: self)111// createNodes.createCorInDuengeonEsq(scene: self)112// createNodes.createGroundEsq(scene: self, nodo: groundDors)113 player1.isHidden = true114 115 }116 117 if((nodeA.name == "player1" && nodeB.name == "dorDir") ||118 (nodeA.name == "dorDir" && nodeB.name == "player1")){119 120 print("porta Direita")121 122 modelPlayerList.players?[0].stateDungeon = 3123 player1.isHidden = true124 125 }126 127 128 if((nodeA.name == "player1" && nodeB.name == "dorBaixo") ||129 (nodeA.name == "dorBaixo" && nodeB.name == "player1")){130 print("porta Baixo")131 132 133 134 modelPlayerList.players?[0].stateDungeon = 2135 player1.isHidden = true136 137 }138 139 if((nodeA.name == "player1" && nodeB.name == "dorCima") ||140 (nodeA.name == "dorCima" && nodeB.name == "player1")){141 //emitir alerta142 143 if modelPlayerList.players?.first?.key == true {144 self.player1.removeAllActions()145 self.player1.removeFromParent()146 }147 148 if((nodeA.name == "player1" && nodeB.name == "dorBack") ||149 (nodeA.name == "dorBack" && nodeB.name == "player1")){150 151 print("Encontou na porta de volta")152 153 154 155 }156 157 if((nodeA.name == "player1" && nodeB.name == "itemRed") ||158 (nodeA.name == "itemRed" && nodeB.name == "player1")){159 print("Encontou o vermelho")160 corDor.removeFromParent()161 modelPlayerList.players?[0].cores = 2162 }163 164 if((nodeA.name == "player1" && nodeB.name == "itemBlue") ||165 (nodeA.name == "itemBlue" && nodeB.name == "player1")){166 print("Pegou a cor azul")167 corDor.removeFromParent()168 modelPlayerList.players?[0].cores = 1169 }170 171 if((nodeA.name == "player1" && nodeB.name == "itemPurple") ||172 (nodeA.name == "itemPurple" && nodeB.name == "player1")){173 print("pegou o purple")174 corDor.removeFromParent()175 modelPlayerList.players?[0].cores = 3176 177 }178 179 if((nodeA.name == "player1" && nodeB.name == "itemYellow") ||180 (nodeA.name == "itemYellow" && nodeB.name == "player1")){181 print("Encontou na porta de volta")182 }183 184 if((nodeA.name == "player1" && nodeB.name == "itemGreen") ||185 (nodeA.name == "itemGreen" && nodeB.name == "player1")){186 187 print("pegou o verde")188 }189 190 191 192 193 194 if((nodeA.name == "player1" && nodeB.name == "misturador") ||195 (nodeA.name == "misturador" && nodeB.name == "player1")){196 //print de duvidas197 print("Misturador")198 }199 200 if((nodeA.name == "player1" && nodeB.name == "corJoin") ||201 (nodeA.name == "corJoin" && nodeB.name == "player1")){202 203 204 205 print("corJoin")206 }207 208 if((nodeA.name == "player1" && nodeB.name == "key") ||209 (nodeA.name == "key" && nodeB.name == "player1")){210 modelPlayerList.players?[0].key = true211 212 }213 //--------------- p2214 215 if((nodeA.name == "player2" && nodeB.name == "dorEsq") ||216 (nodeA.name == "dorEsq" && nodeB.name == "player2")){217 print("porta Esquerda")218 219 modelPlayerList.players?[1].stateDungeon = 1220 player2.isHidden = true221 }222 223 if((nodeA.name == "player2" && nodeB.name == "dorDir") ||224 (nodeA.name == "dorDir" && nodeB.name == "player2")){225 226 modelPlayerList.players?[1].stateDungeon = 3227 228 }229 230 231 if((nodeA.name == "player2" && nodeB.name == "dorBaixo") ||232 (nodeA.name == "dorBaixo" && nodeB.name == "player2")){233 print("porta Baixo")234 235 236 modelPlayerList.players?[1].stateDungeon = 2237 player2.isHidden = true238 239 }240 241 if((nodeA.name == "player2" && nodeB.name == "dorCima") ||242 (nodeA.name == "dorCima" && nodeB.name == "player2")){243 //emitir alerta244 245 if modelPlayerList.players?.last?.key == true {246 self.player2.removeAllActions()247 self.player2.removeFromParent()248 }249 250 }251 252 if((nodeA.name == "player2" && nodeB.name == "dorBack") ||253 (nodeA.name == "dorBack" && nodeB.name == "player2")){254 255 print("Encontou na porta de volta")256 257 258 player2.isHidden = true259 }260 261 if((nodeA.name == "player2" && nodeB.name == "itemRed") ||262 (nodeA.name == "itemRed" && nodeB.name == "player2")){263 print("Encontou o vermelho")264 corDor.removeFromParent()265 modelPlayerList.players?[1].cores = 2266 }267 268 if((nodeA.name == "player2" && nodeB.name == "itemBlue") ||269 (nodeA.name == "itemBlue" && nodeB.name == "player2")){270 print("Pegou a cor azul")271 corDor.removeFromParent()272 modelPlayerList.players?[1].cores = 1273 }274 275 if((nodeA.name == "player2" && nodeB.name == "itemPurple") ||276 (nodeA.name == "itemPurple" && nodeB.name == "player2")){277 print("pegou o purple")278 corDor.removeFromParent()279 modelPlayerList.players?[1].cores = 3280 281 }282 283 if((nodeA.name == "player2" && nodeB.name == "itemYellow") ||284 (nodeA.name == "itemYellow" && nodeB.name == "player2")){285 print("Encontou na porta de volta")286 }287 288 if((nodeA.name == "player2" && nodeB.name == "itemGreen") ||289 (nodeA.name == "itemGreen" && nodeB.name == "player2")){290 291 292 }293 294 295 296 297 298 if((nodeA.name == "player2" && nodeB.name == "misturador") ||299 (nodeA.name == "misturador" && nodeB.name == "player2")){300 //print de duvidas301 print("Misturador")302 }303 304 if((nodeA.name == "player2" && nodeB.name == "corJoin") ||305 (nodeA.name == "corJoin" && nodeB.name == "player2")){306 307 308 309 print("corJoin")310 }311 312 if((nodeA.name == "player2" && nodeB.name == "key") ||313 (nodeA.name == "key" && nodeB.name == "player2")){314 modelPlayerList.players?[1].key = true315 key.removeFromParent()316 print("pegou a key")317 }318 319 320 }}}...
Contents.swift
Source:Contents.swift
1import UIKit2class Person:CustomStringConvertible{3 var firstName:String4 var lastName:String5 var age:Int6 var value:String7 enum gender:String{8 case male = "ç·"9 case female = "女"10 };11 init(firstName:String,lastName:String,age:Int){12 self.firstName = firstName13 self.lastName = lastName14 self.age = age15 self.value = "ç·"16 }17 init(firstName:String,lastName:String,age:Int,value:String){18 self.firstName = firstName19 self.lastName = lastName20 self.age = age21 if value == gender.male.rawValue{22 self.value = value23 }24 else if value == gender.female.rawValue{25 self.value = value26 }27 else{28 self.value = "é误"29 print("æ§å«é误ï¼ï¼")30 }31 }32 var description:String{33 return "fullName:\(self.fullName()) age:\(age) gender:\(value)"34 }35 func fullName() -> String{36 return firstName+lastName37 }38 39 static func ==(person:Person,person1:Person) -> Bool{40 return (person1.fullName() == person.fullName() && person1.age == person.age && person1.value == person.value )41 }42 static func !=(person:Person,person1:Person) -> Bool{43 return (person1.fullName() != person.fullName() || person1.age != person.age || person1.value != person.value )44 }45}46class Teacher:Person{47 var title:String48 init(firstName:String,lastName:String,age:Int,value:String,title:String){49 self.title = title50 super.init(firstName:firstName,lastName:lastName,age:age,value:value)51 }52 override var description:String{53 return "\(super.description) title:\(title)"54 }55}56class Student:Person{57 var stuNo:String58 init(firstName:String,lastName:String,age:Int,value:String,stuNo:String){59 self.stuNo = stuNo60 super.init(firstName:firstName,lastName:lastName,age:age,value:value)61 }62 override var description:String{63 return "\(super.description) stuNo:\(stuNo)"64 }65}66var Array_people = [Person]()67var per = Person(firstName:"å¼ ",lastName:"ä¸",age:22,value:"ç·")68var per1 = Person(firstName:"ç",lastName:"å",age:25,value:"女")69var per2 = Person(firstName:"æ",lastName:"äº",age:23,value:"ç·")70var tea = Teacher(firstName:"å¼ ",lastName:"å",age:21,value:"ç·",title:"è¯æ")71var tea1 = Teacher(firstName:"å¯",lastName:"é¨",age:20,value:"ç·",title:"æ°å¦")72var tea2 = Teacher(firstName:"å¨",lastName:"è",age:22,value:"女",title:"è±è¯")73var stu = Student(firstName:"ç",lastName:"æ",age:22,value:"ç·",stuNo:"14100951")74var stu1 = Student(firstName:"é",lastName:"大",age:21,value:"ç·",stuNo:"14110921")75var stu2 = Student(firstName:"å",lastName:"äº",age:24,value:"女",stuNo:"14110823")76print(per)77if(per == per1){78 print("两人ç¸å")79}80if(per != per1){81 print("两人ä¸å")82}83print(tea)84print(stu)85Array_people.append(per)86Array_people.append(per1)87Array_people.append(per2)88Array_people.append(tea)89Array_people.append(tea1)90Array_people.append(tea2)91Array_people.append(stu)92Array_people.append(stu1)93Array_people.append(stu2)94print("è¾åºæ°ç»å
容ï¼")95print(Array_people) //PersonãTeacheråStudent对象ï¼å¹¶å°è¿äºå¯¹è±¡åå
¥åä¸ä¸ªæ°ç»ä¸å¹¶è¾åºï¼96var dic = ["Person":0,"Teacher":0,"Student":0] //å°PersonãTeacheråStudent对象ï¼å¹¶å°è¿äºå¯¹è±¡ä¸ªæ°åå
¥åå
¸ä¸å¹¶è¾åºï¼97for i in Array_people{98 if i is Student{99 dic["Student"]! += 1100 }101 else if i is Teacher{102 dic["Teacher"]! += 1103 }else{104 dic["Person"]! += 1105 }106}107print("è¾åºåå
¸å
容ï¼")108print(dic)109//æageæåº110print("æageæåº")111Array_people.sort{(x,y) in112 return x.age < y.age113}114print(Array_people)115//æfullNameæåº116print("æfullNameæåº")117Array_people.sort{118 return ($0.fullName() < $1.fullName())119}120print(Array_people)121//ægender+ageæåº122print("ægender+ageæåº")123Array_people.sort{124 return ($0.value < $1.value) && ($0.age < $1.age)125}126print(Array_people)...
name.
Using AI Code Generation
1var quickSort = QuickSort()2var quickSort = QuickSort()3var quickSort = QuickSort()4var quickSort = QuickSort()5var quickSort = QuickSort()6var quickSort = QuickSort()7var quickSort = QuickSort()8var quickSort = QuickSort()9var quickSort = QuickSort()10var quickSort = QuickSort()11var quickSort = QuickSort()12var quickSort = QuickSort()13var quickSort = QuickSort()14var quickSort = QuickSort()15var quickSort = QuickSort()16var quickSort = QuickSort()17var quickSort = QuickSort()
name.
Using AI Code Generation
1import Foundation2func quickSort(_ arr: [Int]) -> [Int] {3 guard arr.count > 1 else {4 }5 let left = arr.filter { $0 < pivot }6 let middle = arr.filter { $0 == pivot }7 let right = arr.filter { $0 > pivot }8 return quickSort(left) + middle + quickSort(right)9}10print(quickSort(arr))11import Foundation12func quickSort(_ arr: [Int]) -> [Int] {13 guard arr.count > 1 else {14 }15 let left = arr.filter { $0 < pivot }16 let middle = arr.filter { $0 == pivot }17 let right = arr.filter { $0 > pivot }18 return quickSort(left) + middle + quickSort(right)19}20print(quickSort(arr))21import Foundation22func quickSort(_ arr: [Int]) -> [Int] {23 guard arr.count > 1 else {24 }25 let left = arr.filter { $0 < pivot }26 let middle = arr.filter { $0 == pivot }27 let right = arr.filter { $0 > pivot }28 return quickSort(left) + middle + quickSort(right)29}30print(quickSort(arr))31import Foundation
name.
Using AI Code Generation
1import Foundation2let n = Int(readLine()!)!3var arr = readLine()!.components(separatedBy: " ").map{ Int($0)! }4let quickSort = QuickSort()5quickSort.sort(&arr, 0, n-1)6print(quickSort.count)7for i in 0..<n {8 print(arr[i], terminator: " ")9}10import Foundation11let n = Int(readLine()!)!12var arr = readLine()!.components(separatedBy: " ").map{ Int($0)! }13let quickSort = QuickSort()14quickSort.sort(&arr, 0, n-1)15print(quickSort.count)16for i in 0..<n {17 print(arr[i], terminator: " ")18}19import Foundation20let n = Int(readLine()!)!21var arr = readLine()!.components(separatedBy: " ").map{ Int($0)! }22let quickSort = QuickSort()23quickSort.sort(&arr, 0, n-1)24print(quickSort.count)25for i in 0..<n {26 print(arr[i], terminator: " ")27}28import Foundation29let n = Int(readLine()!)!30var arr = readLine()!.components(separatedBy: " ").map{ Int($0)! }31let quickSort = QuickSort()32quickSort.sort(&arr, 0, n-1)33print(quickSort.count)34for i in 0..<n {35 print(arr[i], terminator: " ")36}37import Foundation38let n = Int(readLine()!)!39var arr = readLine()!.components(separatedBy: " ").map{ Int($0)! }40let quickSort = QuickSort()41quickSort.sort(&arr, 0, n-1)42print(quickSort.count)43for i in 0..<n {44 print(arr[i], terminator: " ")45}46import Foundation47let n = Int(readLine()!)!48var arr = readLine()!.components(separated
name.
Using AI Code Generation
1let name = QuickSort()2name.quickSort()3let name = QuickSort()4name.quickSort()5let name = QuickSort()6name.quickSort()7let name = QuickSort()8name.quickSort()9let name = QuickSort()10name.quickSort()11let name = QuickSort()12name.quickSort()13let name = QuickSort()14name.quickSort()15let name = QuickSort()16name.quickSort()17let name = QuickSort()18name.quickSort()19let name = QuickSort()20name.quickSort()21let name = QuickSort()22name.quickSort()23let name = QuickSort()24name.quickSort()25let name = QuickSort()26name.quickSort()
name.
Using AI Code Generation
1let obj = QuickSort()2obj.sort(array: [10, 7, 8, 9, 1, 5])3let obj = QuickSort()4obj.sort(array: [10, 7, 8, 9, 1, 5])5let obj = QuickSort()6obj.sort(array: [10, 7, 8, 9, 1, 5])7let obj = QuickSort()8obj.sort(array: [10, 7, 8, 9, 1, 5])9let obj = QuickSort()10obj.sort(array: [10, 7, 8, 9, 1, 5])11let obj = QuickSort()12obj.sort(array: [10, 7, 8, 9, 1, 5])13let obj = QuickSort()14obj.sort(array: [10, 7, 8, 9, 1, 5])15let obj = QuickSort()16obj.sort(array: [10, 7, 8, 9, 1, 5])17let obj = QuickSort()18obj.sort(array: [10, 7, 8, 9, 1, 5])19let obj = QuickSort()20obj.sort(array: [10, 7, 8, 9, 1, 5])21let obj = QuickSort()22obj.sort(array: [10, 7, 8, 9, 1, 5])
name.
Using AI Code Generation
1import Foundation2var quicksort = QuickSort()3quicksort.sort(arr)4print(arr)5import Foundation6var quicksort = QuickSort()7quicksort.sort(arr)8print(arr)9import Foundation10var quicksort = QuickSort()11quicksort.sort(arr)12print(arr)13import Foundation14var quicksort = QuickSort()15quicksort.sort(arr)16print(arr)17import Foundation18var quicksort = QuickSort()19quicksort.sort(arr)20print(arr)21import Foundation22var quicksort = QuickSort()23quicksort.sort(arr)24print(arr)25import Foundation26var quicksort = QuickSort()27quicksort.sort(arr)28print(arr)29import Foundation
name.
Using AI Code Generation
1 let quickSort = QuickSort()2 print(quickSort.name)3 let quickSort = QuickSort()4 print(quickSort.name)5 let quickSort = QuickSort()6 print(quickSort.name)7 let quickSort = QuickSort()8 print(quickSort.name)9 let quickSort = QuickSort()10 print(quickSort.name)11 let quickSort = QuickSort()12 print(quickSort.name)13 let quickSort = QuickSort()14 print(quickSort.name)15 let quickSort = QuickSort()16 print(quickSort.name)17 let quickSort = QuickSort()18 print(quickSort.name)
name.
Using AI Code Generation
1import Foundation2QuickSort().quickSort(&arr, 0, arr.count - 1)3print(arr)4import Foundation5QuickSort().quickSort(&arr, 0, arr.count - 1)6print(arr)7import Foundation8QuickSort().quickSort(&arr, 0, arr.count - 1)9print(arr)10import Foundation11QuickSort().quickSort(&arr, 0, arr.count - 1)12print(arr)13import Foundation14QuickSort().quickSort(&arr, 0, arr.count - 1)15print(arr)16import Foundation17QuickSort().quickSort(&arr, 0, arr.count - 1)18print(arr)19import Foundation20QuickSort().quickSort(&arr, 0, arr.count - 1)21print(arr)22import Foundation23QuickSort().quickSort(&arr, 0, arr.count - 1)24print(arr)25import Foundation26QuickSort().quick
name.
Using AI Code Generation
1import Foundation2class QuickSort {3 func quickSort(inout array: [Int], low: Int, high: Int) {4 if low < high {5 let p = partition(&array, low: low, high: high)6 quickSort(&array, low: low, high: p - 1)7 quickSort(&array, low: p + 1, high: high)8 }9 }10 func partition(inout array: [Int], low: Int, high: Int) -> Int {11 for j in low..<high {12 if array[j] <= array[high] {13 swap(&array[i], &array[j])14 }15 }16 swap(&array[i], &array[high])17 }18}19class Main {20 func main() {21 var array = [Int]()22 let quickSort = QuickSort()23 quickSort.quickSort(&array, low: 0, high: array.count - 1)24 print(array)25 }26}27let main = Main()28main.main()29import Foundation30class QuickSort {31 func quickSort(inout array: [Int], low: Int, high: Int) {32 if low < high {33 let p = partition(&array, low: low, high: high)34 quickSort(&array, low: low, high: p - 1)35 quickSort(&array, low: p + 1, high: high)36 }37 }38 func partition(inout array: [Int], low: Int, high: Int) -> Int {39 for j in low..<high {40 if array[j] <= array[high] {41 swap(&
name.
Using AI Code Generation
1import Foundation2func quickSort(_ arr: [Int]) -> [Int] {3 guard arr.count > 1 else { return arr }4 let less = arr.filter { $0 < pivot }5 let equal = arr.filter { $0 == pivot }6 let greater = arr.filter { $0 > pivot }7 return quickSort(less) + equal + quickSort(greater)8}9print(quickSort(arr))
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!!