MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / find

Method find

src/main/java/fielded/plugins/Out.java:344–351  ·  view source on GitHub ↗
(String uid)

Source from the content-addressed store, hash-verified

342
343
344 private String elideGroups(String s) {
345 // replace subsequent sequential [[__groupName__:value foo foo]] with nothing; otherwise replace it with "foo foo"
346 // we don't support nesting here
347
348 boolean found = false;
349 Map<String, String> prev = new LinkedHashMap<>();
350
351 do {
352 Pattern p = Pattern.compile("\\[\\[__(.+?)__:(.+?) (.+?)\\]\\]", Pattern.DOTALL);
353 Matcher m = p.matcher(s);
354 if (m.find()) {

Callers 12

doOutputMethod · 0.95
getCommandsAndDocsMethod · 0.45
RemoteEditorMethod · 0.45
loadedMethod · 0.45
WebAppsMethod · 0.45
loadedMethod · 0.45
trimSrcURLMethod · 0.45
elideGroupsMethod · 0.45
BridgeToTextEditorMethod · 0.45
lazyInitMethod · 0.45
pinMethod · 0.45
unpinMethod · 0.45

Calls 5

breadthFirstMethod · 0.80
getMethod · 0.65
bothMethod · 0.45
hasMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected