testNotSuspendingBreakpoint

This commit is contained in:
andrey.zaytsev
2012-07-23 16:52:48 +04:00
parent db772ebfe5
commit cb4153d235
@@ -1953,6 +1953,22 @@ public class StringUtil extends StringUtilRt {
return res;
}
public static int getOccurrenceCount(@NotNull String text, final String s) {
int res = 0;
int i = 0;
while (i < text.length()) {
i = text.indexOf(s, i);
if (i >= 0) {
res++;
i++;
}
else {
break;
}
}
return res;
}
@NotNull
public static String fixVariableNameDerivedFromPropertyName(@NotNull String name) {
char c = name.charAt(0);