Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 258 for SUBSTRING (0.06 seconds)

  1. src/main/java/org/codelibs/core/lang/StringUtil.java

            return !isEmpty(text);
        }
    
        /**
         * Replaces all occurrences of a substring within a string with another string.
         *
         * @param text
         *            The original string.
         * @param fromText
         *            The substring to be replaced.
         * @param toText
         *            The replacement substring.
         * @return The resulting string after replacements.
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 21.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        // pool ID but a thread ID of 2.
        Thread thread2 = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread2, 2);
        assertThat(thread2.getName().substring(0, thread.getName().lastIndexOf('-')))
            .isEqualTo(thread.getName().substring(0, thread.getName().lastIndexOf('-')));
    
        // Building again should give us a different pool ID.
        ThreadFactory threadFactory2 = builder.build();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        // pool ID but a thread ID of 2.
        Thread thread2 = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread2, 2);
        assertThat(thread2.getName().substring(0, thread.getName().lastIndexOf('-')))
            .isEqualTo(thread.getName().substring(0, thread.getName().lastIndexOf('-')));
    
        // Building again should give us a different pool ID.
        ThreadFactory threadFactory2 = builder.build();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

            return host.substring(1, host.length - 5).lowercase()
          }
    
          override fun canonicalize(s: String): String = s.lowercase()
        },
    
        PATH {
          override fun urlString(value: String): String = "http://example.com/a${value}z/"
    
          override fun encodedValue(url: HttpUrl): String {
            val path = url.encodedPath
            return path.substring(2, path.length - 2)
          }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  5. compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java

        }
    
        @AfterEach
        void tearDown() throws Exception {
            validator = null;
        }
    
        private void assertContains(String msg, String substring) {
            assertTrue(msg.contains(substring), "\"" + substring + "\" was not found in: " + msg);
        }
    
        @Test
        void testValidate() {
            Settings model = new Settings();
            Profile prof = new Profile();
            prof.setId("xxx");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/ClasspathArtifactResolver.java

                results.add(result);
    
                Artifact artifact = request.getArtifact();
                if ("maven-test".equals(artifact.getGroupId())) {
                    String scope = artifact.getArtifactId().substring("scope-".length());
    
                    try {
                        artifact = artifact.setFile(ProjectClasspathTestType.getFileForClasspathResource(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/util/PrunedTag.java

                        }
                    }
                    if (matcher.group(3) != null) {
                        tag.setCss(matcher.group(3).substring(1));
                    }
                    if (matcher.group(4) != null) {
                        tag.setId(matcher.group(4).substring(1));
                    }
                    return tag;
                }
                throw new FessSystemException("Invalid pruned tag format: '" + v
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Nov 24 04:23:08 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/util/FacetResponse.java

                    } else if (aggregation.getName().startsWith(Constants.FACET_QUERY_PREFIX)) {
                        final Filter queryFacet = (Filter) aggregation;
                        final String encodedQuery = queryFacet.getName().substring(Constants.FACET_QUERY_PREFIX.length());
                        queryCountMap.put(new String(BaseEncoding.base64().decode(encodedQuery), StandardCharsets.UTF_8),
                                queryFacet.getDocCount());
                    }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Nov 23 11:39:05 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/filter/LoadControlFilter.java

            }
    
            final HttpServletRequest httpRequest = (HttpServletRequest) request;
            final HttpServletResponse httpResponse = (HttpServletResponse) response;
            final String path = httpRequest.getRequestURI().substring(httpRequest.getContextPath().length());
    
            if (isExcludedPath(path)) {
                chain.doFilter(request, response);
                return;
            }
    
            final boolean isApiPath = path.startsWith("/api/");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Feb 10 04:24:02 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/base/Splitter.java

     * containing {@code n} occurrences of the separator naturally yields an iterable of size {@code n +
     * 1}. So if the separator does not occur anywhere in the input, a single substring is returned
     * containing the entire input. Consequently, all splitters split the empty string to {@code [""]}
     * (note: even fixed-length splitters).
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
Back to Top