MCPcopy Create free account
hub / github.com/EliMirren/Spring-generator / replace

Method replace

src/main/java/com/szmirren/common/StrUtil.java:171–179  ·  view source on GitHub ↗

将字符串str中带有集合中rep[0]的字符串,代替为rep[1]的中的字符串 @param str @param rep @return

(String str, List<String[]> rep)

Source from the content-addressed store, hash-verified

169 * @return
170 */
171 public static String replace(String str, List<String[]> rep) {
172 for (String[] item : rep) {
173 if (item[1] == null) {
174 item[1] = "";
175 }
176 str = str.replace(item[0], item[1]);
177 }
178 return str;
179 }
180
181 /**
182 * 创建字符串数组

Callers 15

initTVDataBaseMethod · 0.80
getGeneratorContentMethod · 0.80
callMethod · 0.80
createAllRunMethod · 0.80
toURLMethod · 0.80
createFileMethod · 0.80
jarCreateTemplateMethod · 0.80
jarCreateTemplateMethod · 0.80
SqlConfigToContentMethod · 0.80
routerConfigToContentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected