1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Mw_parse: Support bracket, template, and tplarg

This commit is contained in:
gnosygnu
2017-01-10 17:36:24 -05:00
parent 08eb098422
commit b989ff63df
4 changed files with 70 additions and 42 deletions

View File

@@ -235,6 +235,16 @@ public class Bry_find_ {
cur++;
}
}
public static int Find_fwd_while(byte[] src, int cur, int end, byte[] while_bry) {
int while_len = while_bry.length;
while (true) {
if (cur == end) return cur;
for (int i = 0; i < while_len; i++) {
if (while_bry[i] != src[i + cur]) return cur;
}
cur += while_len;
}
}
public static int Find_fwd_until(byte[] src, int cur, int end, byte until_byte) {
while (true) {
if ( cur == end