Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for decamelize (0.05 sec)

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

            assertNull(StringUtil.decamelize(null));
            assertEquals("EMP", StringUtil.decamelize("Emp"));
            assertEquals("AAA_BBB", StringUtil.decamelize("aaaBbb"));
            assertEquals("AAA_BBB", StringUtil.decamelize("AaaBbb"));
            assertEquals("AAA_BBB_C", StringUtil.decamelize("aaaBbbC"));
            assertEquals("USER_ID", StringUtil.decamelize("UserId"));
        }
    
        /**
         * @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

        /**
         * キャメル記法を_記法に変換します。
         * <p>
         * 次のように使います.
         * </p>
         *
         * <pre>
         * StringUtil.decamelize("UserId")  = "USER_ID"
         * </pre>
         *
         * @param s
         *            テキスト
         * @return 結果の文字列
         */
        public static String decamelize(final String s) {
            if (s == null) {
                return null;
            }
            if (s.length() == 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)
Back to top