Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 160 for Normalizer (0.57 seconds)

  1. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

                return ipv6Address;
            }
    
            // Normalize each part (remove leading zeros)
            final String[] normalized = new String[8];
            for (int i = 0; i < 8; i++) {
                normalized[i] = parts[i].replaceFirst("^0+(?!$)", "");
                if (normalized[i].isEmpty()) {
                    normalized[i] = "0";
                }
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 08:31:03 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultUrlNormalizer.java

    import javax.inject.Named;
    import javax.inject.Singleton;
    
    /**
     * Normalizes a URL.
     *
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
     */
    @Named
    @Singleton
    @Deprecated(since = "4.0.0")
    public class DefaultUrlNormalizer implements UrlNormalizer {
    
        @Override
        public String normalize(String url) {
            String result = url;
    
            if (result != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java

            return directory;
        }
    
        /**
         * Resolves against current cwd, resulting path is normalized.
         *
         * @throws NullPointerException if {@code seg} is {@code null}.
         */
        @Nonnull
        public Path resolve(String seg) {
            requireNonNull(seg, "seg");
            return directory.resolve(seg).normalize();
        }
    
        /**
         * Changes current cwd, if the new path is existing directory.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Mar 24 14:09:05 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/InputValidator.java

            }
        }
    
        /**
         * Validates and normalizes SMB path
         *
         * @param path the path to normalize
         * @return normalized path
         */
        public static String normalizeSmbPath(String path) {
            validateSmbPath(path);
    
            // Normalize slashes
            path = path.replace('/', '\\');
    
            // Remove redundant slashes
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                return buf.toString();
            } catch (final UnsupportedEncodingException e) {
                return path;
            }
        }
    
        /**
         * Normalizes a configuration path.
         *
         * @param path The path to normalize.
         * @return The normalized path.
         */
        public String normalizeConfigPath(final String path) {
    
            if (StringUtil.isBlank(path)) {
                return StringUtils.EMPTY;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

            }
            final int maxLength = ComponentUtil.getFessConfig().getScriptAuditLogMaxLengthAsInteger();
            String normalized = script;
            if (normalized.length() > maxLength) {
                normalized = normalized.substring(0, maxLength - 3) + "...";
            }
            return normalized.replace('\n', ' ').replace('\r', ' ').replace('\t', '_');
        }
    
        /**
         * Log the access denied activity.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/util/PathValidatorTest.java

            String url = "smb://server/share/folder/file.txt";
            String normalized = validator.validateSmbUrl(url);
            assertTrue(normalized.startsWith("smb://"));
            assertTrue(normalized.contains("server"));
            assertTrue(normalized.contains("/share/folder/file.txt") || normalized.contains("\\share\\folder\\file.txt"));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

         * Truncates and normalizes content to create a summary suitable for display.
         *
         * @param responseData the response data from crawling (not currently used)
         * @param content the content to create a digest from
         * @param dataMap additional data map (not currently used)
         * @param maxWidth the maximum width of the digest
         * @return the abbreviated and normalized digest, or empty string if content is null
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

      while (!bufferA.exhausted()) {
        val codePoint = bufferA.readUtf8CodePoint()
        if (!IDNA_MAPPING_TABLE.map(codePoint, bufferB)) return null
      }
    
      // 2. Normalize, from bufferB to bufferA.
      val normalized = normalizeNfc(bufferB.readUtf8())
      bufferA.writeUtf8(normalized)
    
      // 3. For each label, convert/validate Punycode.
      val decoded = Punycode.decode(bufferA.readUtf8()) ?: return null
    
      // 4.1 Validate.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                }
            }
    
            /**
             * Normalizes the URL string by cleaning up multiple slashes and resolving relative paths.
             * This method ensures the URL is in a consistent format for FTP operations.
             *
             * @param s The URL string to normalize
             * @return The normalized URL string
             */
            protected String normalize(final String s) {
                if (s == null) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 40K bytes
    - Click Count (0)
Back to Top