MCPcopy Create free account
hub / github.com/afkT/DevUtils / split

Method split

lib/DevApp/src/main/java/dev/utils/common/StringUtils.java:2163–2171  ·  view source on GitHub ↗

拆分字符串 @param str 待处理字符串 @param regex 正则表达式 @return 拆分后的数组

(
            final String str,
            final String regex
    )

Source from the content-addressed store, hash-verified

2161 * @return 拆分后的数组
2162 */
2163 public static String[] split(
2164 final String str,
2165 final String regex
2166 ) {
2167 if (!StringUtils.isEmpty(str) && !StringUtils.isEmpty(regex)) {
2168 return str.split(regex);
2169 }
2170 return null;
2171 }
2172
2173 /**
2174 * 拆分字符串获取指定索引

Callers 15

getAppListMethod · 0.45
getVersionCodeMethod · 0.45
getVersionNameMethod · 0.45
getActivityToLauncherMethod · 0.45
getActivityCurrentMethod · 0.45
getIMEIMethod · 0.45
getCpuModelMethod · 0.45
getCpuNameMethod · 0.45

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected