Package java.lang.Character

Examples of java.lang.Character.UnicodeBlock


            char ch=myBuffer[i];
            if((int)ch<10){
              sb.append("\\u000"+(int)ch);
              continue;
            }
           UnicodeBlock ub = UnicodeBlock.of(ch);
              if(ub == UnicodeBlock.BASIC_LATIN){
               //英文及数字等
               sb.append(myBuffer[i]);
              }else if(ub == UnicodeBlock.HALFWIDTH_AND_FULLWIDTH_FORMS){
               //全角半角字符
View Full Code Here

TOP

Related Classes of java.lang.Character.UnicodeBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.