MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / IsDigit

Method IsDigit

builder/index/src/main/java/InvertedIndex/plugin/Util.java:77–84  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

75 test_str("111");
76 * */
77 public static boolean IsDigit(String str) {
78 for (int i = str.length(); --i >= 0; ) {
79 if (!Character.isDigit(str.charAt(i))) {
80 return false;
81 }
82 }
83 return true;
84 }
85
86 public static boolean IsHexadecimal(String str) {
87 Pattern p = Pattern.compile("^0x[a-fA-F0-9]+");

Callers 3

segmentNeedOutputMethod · 0.95
defaultGoPackageMethod · 0.80
badToUnderscoreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected