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

HTTP_Server: Add initial implementation for post-processing HTML to change to /fsys/ etc [#524]

This commit is contained in:
gnosygnu
2019-08-03 10:00:40 -04:00
parent a51906bf4b
commit a1da02a99f
16 changed files with 416 additions and 14 deletions

View File

@@ -50,6 +50,8 @@ public class Gfh_atr_ {
, Bry__bgcolor = Bry_.new_a7("bgcolor") // HTML.v4
, Bry__abbr = Bry_.new_a7("abbr") // HTML.ua
, Bry__srcset = Bry_.new_a7("srcset")
// <form>
, Bry__action = Bry_.new_a7("action")
;
public static byte[] Make(Bry_bfr bfr, byte[] key, byte[] val) {
return bfr.Add_byte_space().Add(key).Add_byte_eq().Add_byte_quote().Add(val).Add_byte_quote().To_bry_and_clear();

View File

@@ -80,6 +80,7 @@ public class Gfh_tag_ { // NOTE: not serialized; used by tag_rdr
, Id__rb = 58
, Id__rp = 59
, Id__rt = 60
, Id__form = 61
;
// private static final int Id__ary_max = 60;
public static final byte[]
@@ -165,6 +166,7 @@ public class Gfh_tag_ { // NOTE: not serialized; used by tag_rdr
.Add_str_int("rb" , Id__rb)
.Add_str_int("rp" , Id__rp)
.Add_str_int("rt" , Id__rt)
.Add_str_int("form" , Id__form)
;
public static String To_str(int tid) {
switch (tid) {
@@ -232,6 +234,7 @@ public class Gfh_tag_ { // NOTE: not serialized; used by tag_rdr
case Id__rb: return "rb";
case Id__rp: return "rp";
case Id__rt: return "rt";
case Id__form: return "form";
default: throw Err_.new_unhandled(tid);
}
}