MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / contains

Method contains

src/me/lpk/util/StringUtils.java:117–129  ·  view source on GitHub ↗
(String orig, String check)

Source from the content-addressed store, hash-verified

115 }
116
117 public static boolean contains(String orig, String check) {
118 if (orig.contains(check)) {
119 String regex = "([L]" + check.replace("/", "\\/") + "{1}[;])";
120 if (orig.contains("(") && orig.contains(";")) {
121 return orig.matches(regex);
122 } else if (orig.startsWith("L") && orig.endsWith(";") && orig.substring(1, orig.length() - 1).equals(check)) {
123 return true;
124 } else if (orig.equals(check)) {
125 return true;
126 }
127 }
128 return false;
129 }
130
131 /**
132 * Gets a MappedClass in renamemap from a class's description

Callers 15

replaceMethod · 0.95
createProxyMethod · 0.80
findBelongingClassesMethod · 0.80
preTransformMethod · 0.80
preTransformMethod · 0.80
findDecryptionClassesMethod · 0.80
findBelongingClassesMethod · 0.80
createProxyMethod · 0.80
findNeededContentsMethod · 0.80
createProxyMethod · 0.80
fixMathMethodMethod · 0.80

Calls 3

replaceMethod · 0.80
matchesMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected