Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for normalize (0.06 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java

     */
    class DefaultUrlNormalizerTest {
    
        private UrlNormalizer normalizer = new DefaultUrlNormalizer();
    
        private String normalize(String url) {
            return normalizer.normalize(url);
        }
    
        @Test
        void testNullSafe() {
            assertNull(normalize(null));
        }
    
        @Test
        void testTrailingSlash() {
            assertEquals("", normalize(""));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/normalizer/ICUNormalizerTest.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    import junit.framework.TestCase;
    
    public class ICUNormalizerTest extends TestCase {
        public void test_FullwidthHalfwidth() {
            ICUNormalizer normalizer = new ICUNormalizer("Fullwidth-Halfwidth");
    
            assertEquals("abcd", normalizer.normalize("abcd", null));
            assertEquals("みかん", normalizer.normalize("みかん", null));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/normalizer/NormalizerChain.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class NormalizerChain implements Normalizer {
        List<Normalizer> normalizers = new ArrayList<>();
    
        @Override
        public String normalize(final String text, final String field, final String... langs) {
            String tmp = text;
            for (final Normalizer normalizer : normalizers) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelUrlNormalizer.java

        }
    
        @Override
        public void normalize(Model model, ModelBuildingRequest request) {
            if (model == null) {
                return;
            }
    
            model.setUrl(normalize(model.getUrl()));
    
            Scm scm = model.getScm();
            if (scm != null) {
                scm.setUrl(normalize(scm.getUrl()));
                scm.setConnection(normalize(scm.getConnection()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (1)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/EncodingHelperTest.java

            assertEquals("UTF-8", encodingHelper.normalize(enc));
    
            enc = "Shift_JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
    
            enc = "S-JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
        }
    
        public void test_normalize_null() {
            String enc;
    
            enc = null;
            assertNull(encodingHelper.normalize(enc));
    
            enc = "";
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/UrlNormalizer.java

         * @return The normalized URL or {@code null} if the input was {@code null}.
         */
        String normalize(String url);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

                }
                normalizer = chain;
            }
            return normalizer.normalize(text, field);
        }
    
        protected class LangAnalyzerNormalizer implements Normalizer {
            protected final String lang;
    
            protected LangAnalyzerNormalizer(final String lang) {
                this.lang = lang;
            }
    
            @Override
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

        /**
         * 数値の文字列での表記を正規化します。
         *
         * @param s
         *            数値を表す文字列
         * @return 正規化された文字列
         * @see #normalize(String, Locale)
         */
        public static String normalize(final String s) {
            return normalize(s, LocaleUtil.getDefault());
        }
    
        /**
         * 数値の文字列での表記をグルーピングセパレータを削除し、小数点を.であらわした標準形に正規化します。
         *
         * @param s
         *            数値を表す文字列
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            settings.badword().delete(normalizer.normalize(badWord, ""));
        }
    
        public SuggestIndexResponse addElevateWord(final ElevateWord elevateWord, final boolean apply) {
            final String normalizedWord = normalizer.normalize(elevateWord.getElevateWord(), "");
            final List<String> normalizedReadings =
                    elevateWord.getReadings().stream().map(reading -> normalizer.normalize(reading, "")).collect(Collectors.toList());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/text/DecimalFormatUtilTest.java

         * @throws Exception
         */
        public void testNormalize() throws Exception {
            assertEquals("1", "1000.00", DecimalFormatUtil.normalize("1,000.00", Locale.JAPAN));
            assertEquals("2", "1000", DecimalFormatUtil.normalize("1,000", Locale.JAPAN));
            assertEquals("3", "1000.00", DecimalFormatUtil.normalize("1.000,00", Locale.GERMAN));
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top