Hellohao图床6-12更新

This commit is contained in:
Hellohao
2019-06-12 17:37:33 +08:00
parent 12f29cd2a1
commit 4b9fa244cd
225 changed files with 31394 additions and 14039 deletions
@@ -0,0 +1,24 @@
package cn.hellohao.utils;
public class SetText {
public static String getSubString(String text, String left, String right) {
String result = "";
int zLen;
if (left == null || left.isEmpty()) {
zLen = 0;
} else {
zLen = text.indexOf(left);
if (zLen > -1) {
zLen += left.length();
} else {
zLen = 0;
}
}
int yLen = text.indexOf(right, zLen);
if (yLen < 0 || right == null || right.isEmpty()) {
yLen = text.length();
}
result = text.substring(zLen, yLen);
return result;
}
}