/* */
|
package com.gkhy.exam.pay.utils.config;
|
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */ public class StringUtil
|
/* */ {
|
/* */
|
public static String appendMsg(String... values) {
|
/* 17 */
|
StringBuilder sb = new StringBuilder();
|
/* 18 */
|
if (values != null && values.length > 0) {
|
/* 19 */
|
for (int i = 0; i < values.length; i++) {
|
/* 20 */
|
sb.append(values[i]);
|
/* */
|
}
|
/* */
|
}
|
/* 23 */
|
return sb.toString();
|
/* */
|
}
|
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
public static String getUrl(String url) {
|
/* 31 */
|
if (url == null) {
|
/* 32 */
|
return null;
|
/* */
|
}
|
/* 34 */
|
url = url.replaceAll("[\\t\\n\\r\\s+]", "").replaceAll("/+", "/").replaceFirst("/", "//").replaceAll("/+$", "");
|
/* 35 */
|
return url;
|
/* */
|
}
|
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
/* */
|
public static boolean verificationEmpty(String value) {
|
/* 43 */
|
if (value == null) {
|
/* 44 */
|
return true;
|
/* */
|
}
|
/* 46 */
|
value = value.replaceAll("[\\t\\n\\r\\s+]", "");
|
/* 47 */
|
if ("".equals(value)) {
|
/* 48 */
|
return true;
|
/* */
|
}
|
/* 50 */
|
return false;
|
/* */
|
}
|
/* */
|
}
|
|
|
/* Location: D:\jar\sign_util-1.0-SNAPSHOT.20240227.jar!\BOOT-INF\lib\SNAPSHOT-1.0.0.jar!\com\xjhys\edu\fee\sd\\utils\StringUtil.class
|
* Java compiler version: 8 (52.0)
|
* JD-Core Version: 1.1.3
|
*/
|