- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for substringToLast (0.06 sec)
-
src/test/java/org/codelibs/core/lang/StringUtilTest.java
assertEquals("", StringUtil.substringToLast("abc", "c")); assertEquals("c", StringUtil.substringToLast("abc", "b")); assertEquals("c", StringUtil.substringToLast("abcbc", "b")); assertEquals("abc", StringUtil.substringToLast("abc", "")); assertEquals("abc", StringUtil.substringToLast("abc", null)); assertEquals("abc", StringUtil.substringToLast("abc", "dddd")); } /**
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 12K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
* 文字列の最後から指定した文字列で始まっている部分より後ろを返します。 * * @param str * 文字列 * @param separator * セパレータ * @return 結果の文字列 */ public static String substringToLast(final String str, final String separator) { if (isEmpty(str) || isEmpty(separator)) { return str; } final int pos = str.lastIndexOf(separator); if (pos == -1) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 21.7K bytes - Viewed (0)