Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 184 for normalize (1.12 sec)

  1. src/main/java/org/codelibs/fess/suggest/normalizer/ICUNormalizer.java

     *
     * <p>Example usage:</p>
     * <pre>
     * ICUNormalizer normalizer = new ICUNormalizer("Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC");
     * String normalizedText = normalizer.normalize("text to normalize", "field");
     * </pre>
     *
     * @see com.ibm.icu.text.Transliterator
     */
    public class ICUNormalizer implements Normalizer {
        /** The transliterator used for normalization. */
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 2.3K 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: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizerTest.java

            assertNotNull(result);
        }
    
        @Test
        public void test_normalizeEmptyString() throws Exception {
            AnalyzerNormalizer normalizer = new AnalyzerNormalizer(runner.client(), suggester.settings());
    
            String result = normalizer.normalize("", "content");
    
            assertNotNull(result);
        }
    
        @Test
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Feb 25 08:27:34 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/normalizer/HankakuKanaToZenkakuKana.java

     * <pre>
     * {@code
     * HankakuKanaToZenkakuKana normalizer = new HankakuKanaToZenkakuKana();
     * String normalized = normalizer.normalize("ガギグゲゴ", "field");
     * System.out.println(normalized); // Outputs: ガギグゲゴ
     * }
     * </pre>
     *
     * <p>Note: This class assumes that the input string contains valid Hankaku Kana characters
     * and does not perform any validation on the input.</p>
     *
     * @see Normalizer
     */
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 6.8K bytes
    - Viewed (1)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

         */
        public EncodingHelper() {
            // Default constructor
        }
    
        /**
         * Normalizes an encoding string to its preferred form.
         *
         * @param enc the encoding string to normalize
         * @return the normalized encoding or the default encoding if the input is blank
         */
        public String normalize(final String enc) {
            if (StringUtil.isBlank(enc)) {
                return defaultEncoding;
            }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            this.readingConverter = readingConverter;
            return this;
        }
    
        /**
         * Sets the normalizer.
         * @param normalizer The normalizer.
         * @return This SuggestIndexer instance.
         */
        public SuggestIndexer setNormalizer(final Normalizer normalizer) {
            this.normalizer = normalizer;
            return this;
        }
    
        /**
         * Sets the analyzer.
         * @param analyzer The analyzer.
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 34.4K bytes
    - Viewed (0)
  10. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            assertEquals(path.normalize(), source.getPath());
        }
    
        @Test
        void testBuildSource() {
            Path path = Paths.get("/tmp");
            ModelSource source = Sources.buildSource(path);
    
            assertNotNull(source);
            assertInstanceOf(Sources.BuildPathSource.class, source);
            assertEquals(path.normalize(), source.getPath());
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top