MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / findCloseStr

Method findCloseStr

src/main/java/History/HistoryLoader.java:266–273  ·  view source on GitHub ↗
(char[] b, int i, boolean forward, char ch)

Source from the content-addressed store, hash-verified

264
265 // Ищет строку </m> в b и возвращает индекс '<' в b
266 private int findCloseStr(char[] b, int i, boolean forward, char ch) {
267 while ((i >= 0) && (i < (b.length-3))) {
268 if ((b[i] == '<') && (b[i + 1] == '/') && (b[i + 2] == ch) && (b[i + 3] == '>'))
269 return i;
270 i += forward?1:-1;
271 }
272 return -1;
273 }
274
275 static Msg processMessage(String marker, String date, String from, String subj, String body) {
276 int msgType = Msg.MESSAGE_TYPE_HISTORY;

Callers 1

getMIVectorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected