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

Mw_parse.Table: Add tests for basic functionality

This commit is contained in:
gnosygnu
2017-01-12 15:17:14 -05:00
parent d22c5e5f3d
commit 5f1609a869
10 changed files with 279 additions and 210 deletions

View File

@@ -448,7 +448,14 @@ public class Bry_ {
}
if (all_ws) return Bry_.Empty;
}
return Bry_.Mid(src, txt_bgn, txt_end);
if ( bgn == 0 && end == src.length // Trim is called on entire bry, not subset
&& bgn == txt_bgn && end == txt_end // Trim hasn't trimmed anything
) {
return src;
}
else
return Bry_.Mid(src, txt_bgn, txt_end);
}
public static byte[] Trim_end(byte[] v, byte trim, int end) {
boolean trimmed = false;