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

Method maxCommonPrefix

src/bsh/StringUtil.java:41–46  ·  view source on GitHub ↗
( String one, String two )

Source from the content-addressed store, hash-verified

39 }
40
41 public static String maxCommonPrefix( String one, String two ) {
42 int i=0;
43 while( one.regionMatches( 0, two, 0, i ) )
44 i++;
45 return one.substring(0, i-1);
46 }
47
48 public static String methodString(String name, Class[] types)
49 {

Callers 1

completeNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected