Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toWindowsMapping (0.09 sec)

  1. src/test/java/org/codelibs/core/convert/StringConversionUtilTest.java

            assertNull(StringConversionUtil.toWindowsMapping(null));
            assertEquals("", StringConversionUtil.toWindowsMapping(""));
            assertEquals("abc 123", StringConversionUtil.toWindowsMapping("abc 123"));
            assertEquals("abc\u301C\u2016\u2212\u00A2\u00A3\u00AC",
                    StringConversionUtil.toWindowsMapping("abc\uFF5E\u2225\uFF0D\uFFE0\uFFE1\uFFE2"));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

        }
    
        /**
         * 文字列をWindows固有のマッピングルールに合わせて修正します。
         *
         * @param source
         *            文字列
         * @return Windows固有のマッピングルールに修正された文字列
         */
        public static String toWindowsMapping(final String source) {
            if (isEmpty(source)) {
                return source;
            }
            final char[] array = source.toCharArray();
            for (int i = 0; i < array.length; ++i) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top