MCPcopy Create free account
hub / github.com/beanshell/beanshell / countParts

Method countParts

src/bsh/Name.java:1002–1012  ·  view source on GitHub ↗
(String value)

Source from the content-addressed store, hash-verified

1000 }
1001
1002 static int countParts(String value)
1003 {
1004 if(value == null)
1005 return 0;
1006
1007 int count = 0;
1008 int index = -1;
1009 while((index = value.indexOf('.', index + 1)) != -1)
1010 count++;
1011 return count + 1;
1012 }
1013
1014 static String prefix(String value)
1015 {

Callers 4

invokeMethodMethod · 0.95
prefixMethod · 0.95
suffixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected