jdk/src/java.base/share/classes/java/util/Locale.java
changeset 38739 9e1bab71b60c
parent 37781 71ed5645f17c
child 38860 3d557a5713eb
equal deleted inserted replaced
38622:18e5cdecb37a 38739:9e1bab71b60c
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   196  * digits (value:"thai") should be used for formatting numbers
   196  * digits (value:"thai") should be used for formatting numbers
   197  * (key:"nu").
   197  * (key:"nu").
   198  *
   198  *
   199  * <p>The keywords are mapped to a BCP 47 extension value using the
   199  * <p>The keywords are mapped to a BCP 47 extension value using the
   200  * extension key 'u' ({@link #UNICODE_LOCALE_EXTENSION}).  The above
   200  * extension key 'u' ({@link #UNICODE_LOCALE_EXTENSION}).  The above
   201  * example, "nu-thai", becomes the extension "u-nu-thai".code
   201  * example, "nu-thai", becomes the extension "u-nu-thai".
   202  *
   202  *
   203  * <p>Thus, when a <code>Locale</code> object contains Unicode locale
   203  * <p>Thus, when a <code>Locale</code> object contains Unicode locale
   204  * attributes and keywords,
   204  * attributes and keywords,
   205  * <code>getExtension(UNICODE_LOCALE_EXTENSION)</code> will return a
   205  * <code>getExtension(UNICODE_LOCALE_EXTENSION)</code> will return a
   206  * String representing this information, for example, "nu-thai".  The
   206  * String representing this information, for example, "nu-thai".  The