Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for ltrim (0.02 sec)

  1. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("1", "trim", StringUtil.ltrim("zzzytrim", "xyz"));
            assertEquals("2", "", StringUtil.ltrim("xyz", "xyz"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRtrim() throws Exception {
            assertEquals("trim", StringUtil.rtrim("trimxxxx", "x"));
            assertEquals("", StringUtil.rtrim("xyz", "xyz"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

         * @return 結果の文字列
         */
        public static final String ltrim(final String text) {
            return ltrim(text, null);
        }
    
        /**
         * 左側の指定した文字列を削ります。
         *
         * @param text
         *            テキスト
         * @param trimText
         *            削るテキスト
         * @return 結果の文字列
         */
        public static final String ltrim(final String text, String trimText) {
            if (text == null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

                    if (buf != null) {
                        sitemapUrl.setLoc(buf.toString().trim());
                        buf = null;
                    }
                } else if (LASTMOD_ELEMENT.equals(qName)) {
                    if (buf != null) {
                        sitemapUrl.setLastmod(buf.toString().trim());
                        buf = null;
                    }
                } else if (CHANGEFREQ_ELEMENT.equals(qName)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

                final DuplicateHostHelper duplicateHostHelper = ComponentUtil.getDuplicateHostHelper();
    
                // set urls
                split(urlsStr, "[\r\n]").of(stream -> stream.filter(StringUtil::isNotBlank).map(String::trim).distinct().forEach(urlValue -> {
                    if (!urlValue.startsWith("#") && protocolHelper.isValidWebProtocol(urlValue)) {
                        final String u = duplicateHostHelper.convert(urlValue);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

                        form.virtualHosts = stream(entity.getVirtualHosts())
                                .get(stream -> stream.filter(StringUtil::isNotBlank).map(String::trim).collect(Collectors.joining("\n")));
                        form.name = null;
                    });
                    form.crudMode = CrudMode.CREATE;
                });
            });
        }
    
        @Execute
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                            updater.write("# " + line);
                        }
                        continue;
                    }
    
                    inputs = m.group(1).trim().split(",");
                    output = m.group(2).trim();
    
                    if (inputs == null || output == null || inputs.length == 0) {
                        logger.warn("Failed to parse {} in {}", line, path);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PredicatesTest.java

        new EqualsTester()
            .addEqualityGroup(trimEqualsFoo, Predicates.compose(equalsFoo, trim))
            .addEqualityGroup(equalsFoo)
            .addEqualityGroup(trim)
            .addEqualityGroup(Predicates.compose(equalsFoo, identity))
            .addEqualityGroup(Predicates.compose(equalsBar, trim))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

                    buf.append("</item>");
                }
            }
            buf.append("</list>");
            // TODO support other type
            // TODO trim(default)
            return "<field name=\"" + XmlUtil.escapeXml(name) + "\">" + buf.toString().trim() + "</field>\n";
        }
    
        protected String getAdditionalData(final ResponseData responseData, final Document document) {
            return "";
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. cmd/object-lambda-handlers.go

    	if code, ok := statusTextToCode[text]; ok {
    		return code
    	}
    	return -1
    }
    
    func fwdHeadersToS3(h http.Header, w http.ResponseWriter) {
    	const trim = "x-amz-fwd-header-"
    	for k, v := range h {
    		if stringsHasPrefixFold(k, trim) {
    			w.Header()[k[len(trim):]] = v
    		}
    	}
    }
    
    func fwdStatusToAPIError(resp *http.Response) *APIError {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                }
                restrictions.add(restriction);
                upperBound = restriction.getUpperBound();
    
                process = process.substring(index + 1).trim();
    
                if (process.startsWith(",")) {
                    process = process.substring(1).trim();
                }
            }
    
            if (!process.isEmpty()) {
                if (!restrictions.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top