Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 131 for normalize (0.06 sec)

  1. 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: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

            };
        }
    
        private static Long toLong(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
            return Long.valueOf(DecimalFormatUtil.normalize(s));
        }
    
        /**
         * Converts the given object to a {@literal long}.
         *
         * @param o
         *            the object to convert
         * @return the converted {@literal long}
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. 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 Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

            }
        }
    
        private static Float toFloat(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
            return Float.valueOf(DecimalFormatUtil.normalize(s));
        }
    
        /**
         * Converts to {@literal float}.
         *
         * @param o
         *            The object to convert
         * @return The converted {@literal float}
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

            }
        }
    
        private static Short toShort(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
            return Short.valueOf(DecimalFormatUtil.normalize(s));
        }
    
        /**
         * Converts to {@literal short}.
         *
         * @param o
         *            The object to convert
         * @return The converted {@literal short}
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

                        "Java toolchain without the " + JavaToolchainImpl.KEY_JAVAHOME + " configuration element.");
            }
            Path normal = Paths.get(javahome.getValue()).normalize();
            if (Files.exists(normal)) {
                jtc.setJavaHome(Paths.get(javahome.getValue()).normalize().toString());
            } else {
                throw new MisconfiguredToolchainException(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java

                throw new MimeTypeException("Could not detect a content type.", e);
            }
        }
    
        /**
         * Normalizes the filename by replacing special characters.
         * @param filename The filename to normalize.
         * @return The normalized filename.
         */
        protected String normalizeFilename(final String filename) {
            if (StringUtil.isBlank(filename)) {
                return filename;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/PathValidator.java

                normalized = normalized.substring(0, normalized.length() - 1);
            }
    
            // Handle current directory references
            normalized = normalized.replace("\\.", "");
            normalized = normalized.replace(".\\", "");
    
            return normalized;
        }
    
        /**
         * Validate UNC path
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/normalizer/FullWidthToHalfWidthAlphabetNormalizer.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.normalizer;
    
    /**
     * Normalizes full-width alphanumeric characters to half-width alphanumeric characters.
     */
    public class FullWidthToHalfWidthAlphabetNormalizer implements Normalizer {
        /**
         * Constructs a new {@link FullWidthToHalfWidthAlphabetNormalizer}.
         */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top