Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for locale (0.17 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 Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. 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 Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. 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 Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. 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 Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K 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 Apr 19 20:58:09 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 Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/exentity/CrawlingInfoParam.java

                });
            }
            return crawlingInfo;
        }
    
        public String getKeyMsg() {
            final Locale locale = ComponentUtil.getRequestManager().getUserLocale();
            final String message = ComponentUtil.getMessageManager().getMessage(locale, "labels.crawling_info_" + getKey());
            if (message == null || message.startsWith("???")) {
                return getKey();
            }
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

         *
         * @param s
         *            数値を表す文字列
         * @param locale
         *            ロケール。{@literal null}であってはいけません
         * @return 正規化された文字列
         */
        public static String normalize(final String s, final Locale locale) {
            assertArgumentNotNull("locale", locale);
    
            if (s == null) {
                return null;
            }
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/text/DecimalFormatSymbolsUtil.java

        /**
         * {@link DecimalFormatSymbols}を返します。
         *
         * @param locale
         *            ロケール。{@literal null}であってはいけません
         * @return {@link DecimalFormatSymbols}
         */
        public static DecimalFormatSymbols getDecimalFormatSymbols(final Locale locale) {
            assertArgumentNotNull("locale", locale);
    
            DecimalFormatSymbols symbols = CACHE.get(locale);
            if (symbols == null) {
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/curl/CurlResponse.java

                        .forEach(e -> map.put(e.getKey().toLowerCase(Locale.ROOT), e.getValue()));
                this.headers = map;
            }
        }
    
        public Map<String, List<String>> getHeaders() {
            return headers;
        }
    
        public String[] getHeaderValues(final String name) {
            final List<String> list = headers.get(name.toLowerCase(Locale.ROOT));
            if (list == null) {
                return new String[0];
    Java
    - Registered: Thu Apr 18 15:34:13 GMT 2024
    - Last Modified: Mon Nov 14 21:05:19 GMT 2022
    - 4K bytes
    - Viewed (0)
Back to top