Class STConverter


  • public class STConverter
    extends Object

    Simplified and traditional chinese convert class all the search work base on String.indexOf(int) you may store all the words in a HashMap for the purpuse of a faster fetch

    Author:
    chenxin
    • Constructor Detail

      • STConverter

        public STConverter()
    • Method Detail

      • SimToTraditional

        public static String SimToTraditional​(String str)
        convert the simplified words to traditional words of the specified string.
        Parameters:
        str -
        Returns:
        String
      • TraToSimplified

        public static String TraToSimplified​(String str)
        convert the traditional words to simplified words of the specified string.
        Parameters:
        str -
        Returns:
        String