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

Method findOpenStr

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

Source from the content-addressed store, hash-verified

254
255 // Ищет строку <m> в b и возвращает индекс '<' в b
256 private int findOpenStr(char[] b, int i, boolean forward, char ch) {
257 while ((i >= 0) && (i < (b.length-2))) {
258 if ((b[i] == '<') && (b[i + 1] == ch) && (b[i + 2] == '>'))
259 return i;
260 i += forward?1:-1;
261 }
262 return -1;
263 }
264
265 // Ищет строку </m> в b и возвращает индекс '<' в b
266 private int findCloseStr(char[] b, int i, boolean forward, char ch) {

Callers 1

getMIVectorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected