Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 339 for SUBSTRING (0.07 seconds)

  1. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            byte[] src = (expected + "\0").getBytes(StandardCharsets.UTF_8);
            String result = response.readString(src, 0, src.length);
            // The method should remove the null terminator
            assertEquals(expected, result.substring(0, expected.length()));
        }
    
        @Test
        void testReadString_Oem_NoNullTerminator() {
            response.useUnicode = false;
            String expected = "test";
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

                return StringUtil.EMPTY;
            }
            // Remove trailing slash if present
            String name = objectName;
            if (name.endsWith("/")) {
                name = name.substring(0, name.length() - 1);
            }
            final String[] values = name.split("/");
            if (values.length == 0) {
                return StringUtil.EMPTY;
            }
            return values[values.length - 1];
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

            assertArgumentNotNull("zipUrl", zipUrl);
    
            final String urlString = zipUrl.getPath();
            final int pos = urlString.lastIndexOf('!');
            final String zipFilePath = urlString.substring(0, pos);
            final File zipFile = new File(URLUtil.decode(zipFilePath, "UTF8"));
            return FileUtil.getCanonicalPath(zipFile);
        }
    
        /**
         * Closes the Zip file.
         * <p>
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthentication.java

            if (StringUtil.isBlank(path)) {
                return false;
            }
    
            try {
                final int pos = path.indexOf('/', 6);
                final URI uri = new URI(pos == -1 ? path : path.substring(0, pos));
                if (!"ftp".equals(uri.getScheme()) || (StringUtil.isNotBlank(server) && !server.equals(uri.getHost()))) {
                    return false;
                }
                int p = uri.getPort();
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 09:30:17 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  5. .teamcity/scripts/CheckBadMerge.java

            }
    
            private static String summarize(String s) {
                if (s == null) return "null";
                String t = s.replace("\n", "\\n");
                if (t.length() > 500) {
                    return t.substring(0, 500) + "...(truncated)";
                }
                return t;
            }
        }
    
        private static ExecResult exec(String[] command) throws IOException, InterruptedException, ExecutionException {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/audit/SecurityAuditLogger.java

                String key = entry.getKey();
                int lastUnderscore = key.lastIndexOf('_');
                if (lastUnderscore > 0) {
                    try {
                        long window = Long.parseLong(key.substring(lastUnderscore + 1));
                        return window < currentWindow - 2; // Keep current and previous window
                    } catch (NumberFormatException e) {
                        return true; // Remove invalid entries
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                            if (target.length() > textFragmentPrefixLength + textFragmentSuffixLength) {
                                list.add(new TextFragment(null, target.substring(0, textFragmentPrefixLength),
                                        target.substring(target.length() - textFragmentSuffixLength), null));
                            }
                        }
                    }
                }
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 52.6K bytes
    - Click Count (0)
  8. lib/wasm/wasm_exec.js

    			writeSync(fd, buf) {
    				outputBuf += decoder.decode(buf);
    				const nl = outputBuf.lastIndexOf("\n");
    				if (nl != -1) {
    					console.log(outputBuf.substring(0, nl));
    					outputBuf = outputBuf.substring(nl + 1);
    				}
    				return buf.length;
    			},
    			write(fd, buf, offset, length, position, callback) {
    				if (offset !== 0 || length !== buf.length || position !== null) {
    					callback(enosys());
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Sun Dec 08 15:34:47 GMT 2024
    - 16.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/storage/GcsStorageClient.java

                return StringUtil.EMPTY;
            }
            // Remove trailing slash if present
            String name = objectName;
            if (name.endsWith("/")) {
                name = name.substring(0, name.length() - 1);
            }
            final String[] values = name.split("/");
            if (values.length == 0) {
                return StringUtil.EMPTY;
            }
            return values[values.length - 1];
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFile.java

                    if (i < 0) {
                        share = canon.substring(1);
                        unc = "\\";
                    } else if (i == o) {
                        share = canon.substring(1, i);
                        unc = "\\";
                    } else {
                        share = canon.substring(1, i);
                        unc = canon.substring(i, out[o] == '/' ? o : o + 1);
                        unc = unc.replace('/', '\\');
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
Back to Top