mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-06-04 00:14:14 +00:00
Update comments [#377]
This commit is contained in:
parent
f40f227454
commit
992cde7e71
@ -55,7 +55,7 @@ public class Utf16_mapper {
|
|||||||
|
|
||||||
// get lengths
|
// get lengths
|
||||||
int cur_len_in_bytes = Utf8_.Len_of_char_by_1st_byte(src_bry[pos_in_bytes]);
|
int cur_len_in_bytes = Utf8_.Len_of_char_by_1st_byte(src_bry[pos_in_bytes]);
|
||||||
int cur_len_in_chars = cur_len_in_bytes == 4 ? 2 : 1; // NOTE: 3 bytes represent up to U+FFFF (65,536) which will fit in 1 char; REF:en.w:UTF-8; ISSUE#:377; DATE:2019-03-04
|
int cur_len_in_chars = cur_len_in_bytes == 4 ? 2 : 1; // NOTE: 3 bytes represent up to U+FFFF (65,536) which will fit in 1; REF:en.w:UTF-8; ISSUE#:377; DATE:2019-03-04
|
||||||
|
|
||||||
// increment
|
// increment
|
||||||
pos_in_bytes += cur_len_in_bytes;
|
pos_in_bytes += cur_len_in_bytes;
|
||||||
|
@ -62,7 +62,7 @@ public class Xoh_lnke_html {
|
|||||||
if (lnke.Lnke_relative()) {
|
if (lnke.Lnke_relative()) {
|
||||||
bfr.Add(ctx.Wiki().Utl__url_parser().Url_parser().Relative_url_protocol_bry());
|
bfr.Add(ctx.Wiki().Utl__url_parser().Url_parser().Relative_url_protocol_bry());
|
||||||
}
|
}
|
||||||
Xoh_html_wtr_escaper.Escape(ctx.App().Parser_amp_mgr(), bfr, src, href_bgn, href_end, true, false); // escape & ISSUE#:371; DATE:2019-03-03
|
Xoh_html_wtr_escaper.Escape(ctx.App().Parser_amp_mgr(), bfr, src, href_bgn, href_end, true, false); // escape "&" ISSUE#:371; DATE:2019-03-03
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else { // xwiki
|
else { // xwiki
|
||||||
|
Loading…
Reference in New Issue
Block a user