Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for normalise (0.11 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/UserGuideTransformTaskTest.groovy

            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test    test    test"
        }
    
        def usesUnixLineEndings() {
            given:
            String content = "test\r\ntest\r\ntest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test\ntest\ntest"
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jul 27 19:28:51 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy

            doc.documentElement.depthFirst().findAll { it.name() == 'programlisting' || it.name() == 'screen' }.each {Element element ->
                element.setTextContent(normalise(element.getTextContent()))
            }
        }
    
        static String normalise(String content) {
            content.replace('\t', '    ').stripIndent().replace('\r\n', '\n')
        }
    
        def transformApiLinks(Document doc) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/normalizer/Normalizer.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.normalizer;
    
    public interface Normalizer {
        String normalize(String text, String field, String... langs);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 766 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            settings.badword().delete(normalizer.normalize(badWord, ""));
        }
    
        public SuggestIndexResponse addElevateWord(final ElevateWord elevateWord, final boolean apply) {
            final String normalizedWord = normalizer.normalize(elevateWord.getElevateWord(), "");
            final List<String> normalizedReadings =
                    elevateWord.getReadings().stream().map(reading -> normalizer.normalize(reading, "")).collect(Collectors.toList());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/ModelUrlNormalizer.java

         * @param request The model building request that holds further settings, must not be {@code null}.
         */
        void normalize(Model model, ModelBuildingRequest request);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/UrlNormalizingPostProcessor.java

        }
    
        private UrlNormalizer normalizer;
    
        UrlNormalizingPostProcessor(UrlNormalizer normalizer) {
            this.normalizer = normalizer;
        }
    
        @Override
        public Object execute(String expression, Object value) {
            if (value != null && URL_EXPRESSIONS.contains(expression)) {
                return normalizer.normalize(value.toString());
            }
    
            return null;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. 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: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/normalizer/NormalizerChain.java

     */
    package org.codelibs.fess.suggest.normalizer;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class NormalizerChain implements Normalizer {
        List<Normalizer> normalizers = new ArrayList<>();
    
        @Override
        public String normalize(final String text, final String field, final String... langs) {
            String tmp = text;
            for (final Normalizer normalizer : normalizers) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java

     */
    class DefaultUrlNormalizerTest {
    
        private UrlNormalizer normalizer = new DefaultUrlNormalizer();
    
        private String normalize(String url) {
            return normalizer.normalize(url);
        }
    
        @Test
        void testNullSafe() {
            assertNull(normalize(null));
        }
    
        @Test
        void testTrailingSlash() {
            assertEquals("", normalize(""));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top