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

Mw_parse: Add clean_url and associated functions to sanitizer

This commit is contained in:
gnosygnu
2017-01-30 09:51:17 -05:00
parent c77e8a4374
commit 9a5c70b506
15 changed files with 914 additions and 265 deletions

View File

@@ -40,7 +40,7 @@ public class Byte_ascii {
, Ltr_n = 110, Ltr_o = 111, Ltr_p = 112, Ltr_q = 113, Ltr_r = 114
, Ltr_s = 115, Ltr_t = 116, Ltr_u = 117, Ltr_v = 118, Ltr_w = 119
, Ltr_x = 120, Ltr_y = 121, Ltr_z = 122, Curly_bgn = 123, Pipe = 124
, Curly_end = 125, Tilde = 126
, Curly_end = 125, Tilde = 126, Delete = 127
;
public static final byte
Angle_bgn = Lt, Angle_end = Gt

View File

@@ -117,6 +117,14 @@ public class Btrie_slim_mgr implements Btrie_mgr {
}
return this;
}
public Btrie_slim_mgr Add_many_bry(byte[]... ary) {
int len = ary.length;
for (int i = 0; i < len; i++) {
byte[] itm = ary[i];
Add_obj(itm, itm);
}
return this;
}
public Btrie_slim_mgr Add_many_int(int val, String... ary) {return Add_many_int(val, Bry_.Ary(ary));}
public Btrie_slim_mgr Add_many_int(int val, byte[]... ary) {
int len = ary.length;