MCPcopy Index your code
hub / github.com/Tencent/APIJSON / isSmallName

Method isSmallName

APIJSONORM/src/main/java/apijson/StringUtil.java:636–641  ·  view source on GitHub ↗

判断是否为首字母小写的代码名称 @param s @return

(String s)

Source from the content-addressed store, hash-verified

634 * @return
635 */
636 public static boolean isSmallName(String s) {
637 if (s == null || s.isEmpty() || PATTERN_ALPHA_SMALL.matcher(s.substring(0, 1)).matches() == false) {
638 return false;
639 }
640 return s.length() <= 1 ? true : PATTERN_NAME.matcher(s.substring(1)).matches();
641 }
642
643
644 /**判断字符类型是否是身份证号

Callers 1

invokeScriptMethod · 0.95

Calls 2

isEmptyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected