`
反求诸己
  • 浏览: 534779 次
  • 性别: Icon_minigender_1
  • 来自: 湖南娄底
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
java built in code java built in code
 public static boolean isBlankOrNull(String value)
 {
    return ((value == null) || (value.trim().length() == 0));
 }


   public static boolean matchRegexp(String value, String regexp)
   {
     if ((regexp == null) || (regexp.length() <= 0)) {
       return false;
     }
 
     Perl5Util matcher = new Perl5Util();
     return matcher.match("/" + regexp + "/", value);
   }

   switch (aChar) {
		          case '0': case '1': case '2': case '3': case '4':
		          case '5': case '6': case '7': case '8': case '9':
		             value = (value << 4) + aChar - '0';
			     break;
			  case 'a': case 'b': case 'c':
                          case 'd': case 'e': case 'f':
			     value = (value << 4) + 10 + aChar - 'a';
			     break;
			  case 'A': case 'B': case 'C':
                          case 'D': case 'E': case 'F':
			     value = (value << 4) + 10 + aChar - 'A';
			     break;
			  default:
                              throw new IllegalArgumentException( "Malformed \\uxxxx encoding.");
   }
Global site tag (gtag.js) - Google Analytics