检测字符串是否全部是小写字母

@param string 字符串

@return {@link Boolean}

@since 1.0.9
516062
public static boolean isOnlyLowerCase(String string) {
        boolean result = isNotEmpty(string);
        int idx = 0;
        int len = string.length();
        while (result) {
            if (idx >= len) {
                break;
            }
            result = isLowerCase(string.charAt(idx));
            idx++;
        }
        return result;
    }
504594
public static boolean isDouble(String string) {
    if (string == null) {
      return false;
    }

    try {
      Double.parseDouble(string);
    } catch (NumberFormatException e) {
      return false;
    }

    return true;
  }
420208
public static boolean isOnlyUpperCase(String string) {
        boolean result = isNotEmpty(string);
        int idx = 0;
        int len = string.length();
        while (result) {
            if (idx >= len) {
                break;
            }
            result = isUpperCase(string.charAt(idx));
            idx++;
        }
        return result;
    }
74552
private static boolean containsDelimiter(String string) {
		final char[] charArray = string.toCharArray();
		for (char c : charArray) {
			if (isDelimiter(c)) {
				return true;
			}
		}
		return false;
	}
1098427
public static boolean isLong(String number) {
        boolean result = false;
        try {
            Long.parseLong(number);
            result = true;
        } catch (NumberFormatException e) {
        }
        return result;
    }
917397
protected static boolean assertFalse(String string) {
        return string == null
            || StringUtils.EMPTY.equals(string)
            || StringUtils.FALSE.equalsIgnoreCase(string)
            || StringUtils.NULL.equals(string);
    }
205859
public static boolean isPotentiallyEncryptedString(String string) {
        checkNotNull(string, "string");

        // String is base64 encoded
        byte[] encryptedBytes;
        try {
            encryptedBytes = BaseEncoding.base64().omitPadding().decode(string);
        } catch (IllegalArgumentException e) {
            return false;
        }

        return isPotentiallyEncryptedBytes(encryptedBytes);
    }
414976
public static short stringToShort(String string) {
        string = string.trim();
        if (Checker.isNumber(string)) {
            return Short.parseShort(string);
        }
        return -1;
    }
193363
public static boolean isLimited(String string, int min, int max) {
        return isNotEmpty(string) && string.length() >= min && string.length() <= max;
    }
570493
public static String shrink(String string) {
		if (string == null) {
			return null;
		}
		string = string.trim();
		return SHRINK.matcher(string).replaceAll(" ");
	}
1165604
public static function isEmpty($string)
    {
        if (!self::isValid($string) &&
            null !== $string
        ) {
            return false;
        }

        return ($string === null || $string === '');
    }
691213
public static function low($string): string
    {
        if (self::isMBString()) {
            return mb_strtolower($string, self::$encoding);
        }

        return strtolower($string); // @codeCoverageIgnore
    }
525087
public static final boolean stringIsBlank(final String string) {

        if (string == null || string.length() == 0) {
            return true;
        }

        int stringLength = string.length();
        for (int i = 0; i < stringLength; i++) {
            if (Character.isWhitespace(string.charAt(i)) == false) {
                return false;
            }
        }
        return true;
    }
1355863
public static boolean isDelimiter(String str)
    {
        if (str != null && ("-".equals(str) || "－".equals(str)))
            return true;
        else
            return false;
    }
204522
public static boolean isLong(String s) {
        if (s == null) {
            return false;
        }
        try {
            Long.parseLong(s.trim());
        } catch (NumberFormatException e) {
            return false;
        }
        return true;
    }
912490
public static int substr_count(final String string, final String substring) {
        if(substring.length()==1) {
            return substr_count(string, substring.charAt(0));
        }
        
        int count = 0;
        int idx = 0;

        while ((idx = string.indexOf(substring, idx)) != -1) {
           ++idx;
           ++count;
        }

        return count;
    }
34852
public static function stringToBoolean($string)
    {
        $flag = filter_var($string, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);

        if ($flag) {
            return true;
        } elseif (is_null($flag)) {
            return $string;
        }

        return false;
    }