Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for endsWithIgnoreCase (0.11 sec)

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

            assertTrue(StringUtil.endsWithIgnoreCase("setHogeAaa", "Aaa"));
            assertTrue(StringUtil.endsWithIgnoreCase("setHogeAaa", "aaa"));
            assertTrue(StringUtil.endsWithIgnoreCase("aaa_hoge", "HOge"));
            assertFalse(StringUtil.endsWithIgnoreCase("setHogeaa", "Aaa"));
            assertFalse(StringUtil.endsWithIgnoreCase("aa", "Aaa"));
        }
    
        /**
         * @throws Exception
    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

         *
         * @param target1
         *            テキスト
         * @param target2
         *            比較する文字列
         * @return 大文字小文字を無視して特定の文字で終わっていれば{@literal true}
         */
        public static boolean endsWithIgnoreCase(final String target1, final String target2) {
            if (target1 == null || target2 == null) {
                return false;
            }
            final int length1 = target1.length();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top