Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for locale (0.16 sec)

  1. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

         *
         * @param locale
         *            ロケール
         * @return 数値のセパレータ
         */
        public static String findDecimalSeparator(final Locale locale) {
            final DecimalFormatSymbols symbol = getDecimalFormatSymbols(locale);
            return Character.toString(symbol.getDecimalSeparator());
        }
    
        private static DecimalFormatSymbols getDecimalFormatSymbols(final Locale locale) {
            DecimalFormatSymbols symbol;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            assertFalse(labelTypeHelper.matchLocale(Locale.ENGLISH, Locale.JAPANESE));
            assertFalse(labelTypeHelper.matchLocale(Locale.SIMPLIFIED_CHINESE, Locale.TRADITIONAL_CHINESE));
    
            assertTrue(labelTypeHelper.matchLocale(null, Locale.ROOT));
            assertTrue(labelTypeHelper.matchLocale(Locale.ENGLISH, Locale.ROOT));
            assertTrue(labelTypeHelper.matchLocale(Locale.ROOT, Locale.ROOT));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/misc/LocaleUtil.java

            Locale locale = LocaleUtil.getDefault();
            if (localeStr != null) {
                final int index = localeStr.indexOf('_');
                if (index < 0) {
                    locale = new Locale(localeStr);
                } else {
                    final String language = localeStr.substring(0, index);
                    final String country = localeStr.substring(index + 1);
                    locale = new Locale(language, country);
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/exception/NullArgumentExceptionTest.java

    import static org.junit.Assert.assertThat;
    
    import java.util.Locale;
    
    import org.codelibs.core.misc.LocaleUtil;
    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    public class NullArgumentExceptionTest {
    
        @Before
        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         * ならデフォルトのロケールを返します。
         *
         * @param locale
         *            ロケール
         * @return {@literal locale}が{@literal null}でなければ{@literal locale}を、
         *         {@literal null}ならデフォルトのロケールを返します。
         */
        protected static Locale getLocale(final Locale locale) {
            if (locale != null) {
                return locale;
            }
            return LocaleUtil.getDefault();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/text/DecimalFormatUtilTest.java

     */
    package org.codelibs.core.text;
    
    import java.util.Locale;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class DecimalFormatUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testNormalize() throws Exception {
            assertEquals("1", "1000.00", DecimalFormatUtil.normalize("1,000.00", Locale.JAPAN));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

            }
            dataStoreMap.put(name.toLowerCase(Locale.ROOT), dataStore);
            dataStoreMap.put(dataStore.getClass().getSimpleName().toLowerCase(Locale.ROOT), dataStore);
        }
    
        public DataStore getDataStore(final String name) {
            if (name == null) {
                return null;
            }
            return dataStoreMap.get(name.toLowerCase(Locale.ROOT));
        }
    
        public String[] getDataStoreNames() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/misc/LocaleUtilTest.java

    package org.codelibs.core.misc;
    
    import java.util.Locale;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class LocaleUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testGetLocale() throws Exception {
            assertEquals("1", LocaleUtil.getDefault(), LocaleUtil.getLocale(null));
            assertEquals("2", Locale.JAPANESE, LocaleUtil.getLocale("ja"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/OperatingSystemProfileActivator.java

            String actualOsName = context.getSystemProperties().get("os.name").toLowerCase(Locale.ENGLISH);
            String actualOsArch = context.getSystemProperties().get("os.arch").toLowerCase(Locale.ENGLISH);
            String actualOsVersion = context.getSystemProperties().get("os.version").toLowerCase(Locale.ENGLISH);
    
            if (active && os.getFamily() != null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/Os.java

     * under the License.
     */
    package org.apache.maven.internal.impl.model.profile;
    
    import java.util.Locale;
    import java.util.stream.Stream;
    
    /**
     * OS support
     */
    public class Os {
    
        /**
         * The OS Name.
         */
        public static final String OS_NAME = System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
    
        /**
         * The OA architecture.
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.3K bytes
    - Viewed (0)
Back to top