Path: blob/master/src/java.base/share/classes/sun/text/resources/FormatData.java
41159 views
/*1* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/*26*/2728/*29* (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved30* (C) Copyright IBM Corp. 1996 - 1999 - All Rights Reserved31*32* The original version of this source code and documentation33* is copyrighted and owned by Taligent, Inc., a wholly-owned34* subsidiary of IBM. These materials are provided under terms35* of a License Agreement between Taligent and Sun. This technology36* is protected by multiple US and International patents.37*38* This notice and attribution to Taligent may not be removed.39* Taligent is a registered trademark of Taligent, Inc.40*41*/4243/*44* COPYRIGHT AND PERMISSION NOTICE45*46* Copyright (C) 1991-2012 Unicode, Inc. All rights reserved. Distributed under47* the Terms of Use in http://www.unicode.org/copyright.html.48*49* Permission is hereby granted, free of charge, to any person obtaining a copy50* of the Unicode data files and any associated documentation (the "Data51* Files") or Unicode software and any associated documentation (the52* "Software") to deal in the Data Files or Software without restriction,53* including without limitation the rights to use, copy, modify, merge,54* publish, distribute, and/or sell copies of the Data Files or Software, and55* to permit persons to whom the Data Files or Software are furnished to do so,56* provided that (a) the above copyright notice(s) and this permission notice57* appear with all copies of the Data Files or Software, (b) both the above58* copyright notice(s) and this permission notice appear in associated59* documentation, and (c) there is clear notice in each modified Data File or60* in the Software as well as in the documentation associated with the Data61* File(s) or Software that the data or software has been modified.62*63* THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY64* KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF65* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF66* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS67* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR68* CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,69* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER70* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE71* OF THE DATA FILES OR SOFTWARE.72*73* Except as contained in this notice, the name of a copyright holder shall not74* be used in advertising or otherwise to promote the sale, use or other75* dealings in these Data Files or Software without prior written authorization76* of the copyright holder.77*/7879package sun.text.resources;8081import sun.util.resources.ParallelListResourceBundle;8283public class FormatData extends ParallelListResourceBundle {84/**85* Overrides ListResourceBundle86*/87@Override88protected final Object[][] getContents() {89// Julian calendar era strings90final String[] julianEras = {91"BC",92"AD"93};9495// Thai Buddhist calendar era strings96final String[] buddhistEras = {97"BC", // BC98"B.E." // Buddhist Era99};100101// Japanese imperial calendar era abbreviations102final String[] japaneseEraAbbrs = {103"",104"M",105"T",106"S",107"H",108"R",109};110111// Japanese imperial calendar era strings112final String[] japaneseEras = {113"",114"Meiji",115"Taisho",116"Showa",117"Heisei",118"Reiwa",119};120121return new Object[][] {122{ "MonthNames",123new String[] {124"January", // january125"February", // february126"March", // march127"April", // april128"May", // may129"June", // june130"July", // july131"August", // august132"September", // september133"October", // october134"November", // november135"December", // december136"" // month 13 if applicable137}138},139{ "MonthAbbreviations",140new String[] {141"Jan", // abb january142"Feb", // abb february143"Mar", // abb march144"Apr", // abb april145"May", // abb may146"Jun", // abb june147"Jul", // abb july148"Aug", // abb august149"Sep", // abb september150"Oct", // abb october151"Nov", // abb november152"Dec", // abb december153"" // abb month 13 if applicable154}155},156{ "MonthNarrows",157new String[] {158"1",159"2",160"3",161"4",162"5",163"6",164"7",165"8",166"9",167"10",168"11",169"12",170"",171}172},173{ "DayNames",174new String[] {175"Sunday", // Sunday176"Monday", // Monday177"Tuesday", // Tuesday178"Wednesday", // Wednesday179"Thursday", // Thursday180"Friday", // Friday181"Saturday" // Saturday182}183},184{ "DayAbbreviations",185new String[] {186"Sun", // abb Sunday187"Mon", // abb Monday188"Tue", // abb Tuesday189"Wed", // abb Wednesday190"Thu", // abb Thursday191"Fri", // abb Friday192"Sat" // abb Saturday193}194},195{ "DayNarrows",196new String[] {197"S",198"M",199"T",200"W",201"T",202"F",203"S",204}205},206{ "AmPmMarkers",207new String[] {208"AM", // am marker209"PM" // pm marker210}211},212{ "narrow.AmPmMarkers",213new String[] {214"a", // am marker215"p" // pm marker216}217},218{ "Eras",219julianEras },220{ "short.Eras",221julianEras },222{ "narrow.Eras",223new String[] {224"B",225"A",226}227},228{ "buddhist.Eras",229buddhistEras230},231{ "buddhist.short.Eras",232buddhistEras233},234{ "buddhist.narrow.Eras",235buddhistEras236},237{ "japanese.Eras",238japaneseEras },239{ "japanese.short.Eras",240japaneseEraAbbrs241},242{ "japanese.narrow.Eras",243japaneseEraAbbrs244},245{ "japanese.FirstYear",246new String[] { // Japanese imperial calendar year name247// empty in English248}249},250{ "NumberPatterns",251new String[] {252"#,##0.###;-#,##0.###", // decimal pattern253"\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern254"#,##0%" // percent pattern255}256},257{ "DefaultNumberingSystem", "" },258{ "NumberElements",259new String[] {260".", // decimal separator261",", // group (thousands) separator262";", // list separator263"%", // percent sign264"0", // native 0 digit265"#", // pattern digit266"-", // minus sign267"E", // exponential268"\u2030", // per mille269"\u221e", // infinity270"\ufffd" // NaN271}272},273{ "arab.NumberElements",274new String[] {275"\u066b",276"\u066c",277"\u061b",278"\u066a",279"\u0660",280"#",281"-",282"\u0627\u0633",283"\u0609",284"\u221e",285"NaN",286}287},288{ "arabext.NumberElements",289new String[] {290"\u066b",291"\u066c",292"\u061b",293"\u066a",294"\u06f0",295"#",296"-",297"\u00d7\u06f1\u06f0^",298"\u0609",299"\u221e",300"NaN",301}302},303{ "bali.NumberElements",304new String[] {305".",306",",307";",308"%",309"\u1b50",310"#",311"-",312"E",313"\u2030",314"\u221e",315"NaN",316}317},318{ "beng.NumberElements",319new String[] {320".",321",",322";",323"%",324"\u09e6",325"#",326"-",327"E",328"\u2030",329"\u221e",330"NaN",331}332},333{ "cham.NumberElements",334new String[] {335".",336",",337";",338"%",339"\uaa50",340"#",341"-",342"E",343"\u2030",344"\u221e",345"NaN",346}347},348{ "deva.NumberElements",349new String[] {350".",351",",352";",353"%",354"\u0966",355"#",356"-",357"E",358"\u2030",359"\u221e",360"NaN",361}362},363{ "fullwide.NumberElements",364new String[] {365".",366",",367";",368"%",369"\uff10",370"#",371"-",372"E",373"\u2030",374"\u221e",375"NaN",376}377},378{ "gujr.NumberElements",379new String[] {380".",381",",382";",383"%",384"\u0ae6",385"#",386"-",387"E",388"\u2030",389"\u221e",390"NaN",391}392},393{ "guru.NumberElements",394new String[] {395".",396",",397";",398"%",399"\u0a66",400"#",401"-",402"E",403"\u2030",404"\u221e",405"NaN",406}407},408{ "java.NumberElements",409new String[] {410".",411",",412";",413"%",414"\ua9d0",415"#",416"-",417"E",418"\u2030",419"\u221e",420"NaN",421}422},423{ "kali.NumberElements",424new String[] {425".",426",",427";",428"%",429"\ua900",430"#",431"-",432"E",433"\u2030",434"\u221e",435"NaN",436}437},438{ "khmr.NumberElements",439new String[] {440".",441",",442";",443"%",444"\u17e0",445"#",446"-",447"E",448"\u2030",449"\u221e",450"NaN",451}452},453{ "knda.NumberElements",454new String[] {455".",456",",457";",458"%",459"\u0ce6",460"#",461"-",462"E",463"\u2030",464"\u221e",465"NaN",466}467},468{ "laoo.NumberElements",469new String[] {470".",471",",472";",473"%",474"\u0ed0",475"#",476"-",477"E",478"\u2030",479"\u221e",480"NaN",481}482},483{ "lana.NumberElements",484new String[] {485".",486",",487";",488"%",489"\u1a80",490"#",491"-",492"E",493"\u2030",494"\u221e",495"NaN",496}497},498{ "lanatham.NumberElements",499new String[] {500".",501",",502";",503"%",504"\u1a90",505"#",506"-",507"E",508"\u2030",509"\u221e",510"NaN",511}512},513{ "latn.NumberElements",514new String[] {515".", // decimal separator516",", // group (thousands) separator517";", // list separator518"%", // percent sign519"0", // native 0 digit520"#", // pattern digit521"-", // minus sign522"E", // exponential523"\u2030", // per mille524"\u221e", // infinity525"\ufffd" // NaN526}527},528{ "lepc.NumberElements",529new String[] {530".",531",",532";",533"%",534"\u1c40",535"#",536"-",537"E",538"\u2030",539"\u221e",540"NaN",541}542},543{ "limb.NumberElements",544new String[] {545".",546",",547";",548"%",549"\u1946",550"#",551"-",552"E",553"\u2030",554"\u221e",555"NaN",556}557},558{ "mlym.NumberElements",559new String[] {560".",561",",562";",563"%",564"\u0d66",565"#",566"-",567"E",568"\u2030",569"\u221e",570"NaN",571}572},573{ "mong.NumberElements",574new String[] {575".",576",",577";",578"%",579"\u1810",580"#",581"-",582"E",583"\u2030",584"\u221e",585"NaN",586}587},588{ "mtei.NumberElements",589new String[] {590".",591",",592";",593"%",594"\uabf0",595"#",596"-",597"E",598"\u2030",599"\u221e",600"NaN",601}602},603{ "mymr.NumberElements",604new String[] {605".",606",",607";",608"%",609"\u1040",610"#",611"-",612"E",613"\u2030",614"\u221e",615"NaN",616}617},618{ "mymrshan.NumberElements",619new String[] {620".",621",",622";",623"%",624"\u1090",625"#",626"-",627"E",628"\u2030",629"\u221e",630"NaN",631}632},633{ "nkoo.NumberElements",634new String[] {635".",636",",637";",638"%",639"\u07c0",640"#",641"-",642"E",643"\u2030",644"\u221e",645"NaN",646}647},648{ "olck.NumberElements",649new String[] {650".",651",",652";",653"%",654"\u1c50",655"#",656"-",657"E",658"\u2030",659"\u221e",660"NaN",661}662},663{ "orya.NumberElements",664new String[] {665".",666",",667";",668"%",669"\u0b66",670"#",671"-",672"E",673"\u2030",674"\u221e",675"NaN",676}677},678{ "saur.NumberElements",679new String[] {680".",681",",682";",683"%",684"\ua8d0",685"#",686"-",687"E",688"\u2030",689"\u221e",690"NaN",691}692},693{ "sund.NumberElements",694new String[] {695".",696",",697";",698"%",699"\u1bb0",700"#",701"-",702"E",703"\u2030",704"\u221e",705"NaN",706}707},708{ "talu.NumberElements",709new String[] {710".",711",",712";",713"%",714"\u19d0",715"#",716"-",717"E",718"\u2030",719"\u221e",720"NaN",721}722},723{ "tamldec.NumberElements",724new String[] {725".",726",",727";",728"%",729"\u0be6",730"#",731"-",732"E",733"\u2030",734"\u221e",735"NaN",736}737},738{ "telu.NumberElements",739new String[] {740".",741",",742";",743"%",744"\u0c66",745"#",746"-",747"E",748"\u2030",749"\u221e",750"NaN",751}752},753{ "thai.NumberElements",754new String[] {755".", // decimal separator756",", // group (thousands) separator757";", // list separator758"%", // percent sign759"\u0E50", // native 0 digit760"#", // pattern digit761"-", // minus sign762"E", // exponential763"\u2030", // per mille764"\u221e", // infinity765"\ufffd" // NaN766}767},768{ "tibt.NumberElements",769new String[] {770".",771",",772";",773"%",774"\u0f20",775"#",776"-",777"E",778"\u2030",779"\u221e",780"NaN",781}782},783{ "vaii.NumberElements",784new String[] {785".",786",",787";",788"%",789"\ua620",790"#",791"-",792"E",793"\u2030",794"\u221e",795"NaN",796}797},798{ "short.CompactNumberPatterns",799new String[] {800"",801"",802"",803"0K",804"00K",805"000K",806"0M",807"00M",808"000M",809"0B",810"00B",811"000B",812"0T",813"00T",814"000T",815}816},817{ "long.CompactNumberPatterns",818new String[] {819"",820"",821"",822"0 thousand",823"00 thousand",824"000 thousand",825"0 million",826"00 million",827"000 million",828"0 billion",829"00 billion",830"000 billion",831"0 trillion",832"00 trillion",833"000 trillion",834}835},836{ "TimePatterns",837new String[] {838"h:mm:ss a z", // full time pattern839"h:mm:ss a z", // long time pattern840"h:mm:ss a", // medium time pattern841"h:mm a", // short time pattern842}843},844{ "DatePatterns",845new String[] {846"EEEE, MMMM d, yyyy", // full date pattern847"MMMM d, yyyy", // long date pattern848"MMM d, yyyy", // medium date pattern849"M/d/yy", // short date pattern850}851},852{ "DateTimePatterns",853new String[] {854"{1} {0}" // date-time pattern855}856},857{ "buddhist.TimePatterns",858new String[] {859"H:mm:ss z", // full time pattern860"H:mm:ss z", // long time pattern861"H:mm:ss", // medium time pattern862"H:mm", // short time pattern863}864},865{ "buddhist.DatePatterns",866new String[] {867"EEEE d MMMM G yyyy", // full date pattern868"d MMMM yyyy", // long date pattern869"d MMM yyyy", // medium date pattern870"d/M/yyyy", // short date pattern871}872},873{ "buddhist.DateTimePatterns",874new String[] {875"{1}, {0}" // date-time pattern876}877},878{ "japanese.TimePatterns",879new String[] {880"h:mm:ss a z", // full time pattern881"h:mm:ss a z", // long time pattern882"h:mm:ss a", // medium time pattern883"h:mm a", // short time pattern884}885},886{ "japanese.DatePatterns",887new String[] {888"GGGG yyyy MMMM d (EEEE)", // full date pattern889"GGGG yyyy MMMM d", // long date pattern890"GGGG yyyy MMM d", // medium date pattern891"Gy.MM.dd", // short date pattern892}893},894{ "japanese.DateTimePatterns",895new String[] {896"{1} {0}" // date-time pattern897}898},899{ "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },900};901}902}903904905