J. King
d9d92e5e77
Test all spanning other than ISO-2022-JP
ISO-2022-JP will require a more careful implementation to deal with
mode changes to ASCII or Roman mode
3 years ago
J. King
81186973f1
Partial tests for ASCII spanning
3 years ago
J. King
be2134cc71
API re-organization
4 years ago
J. King
10328b6806
Tests for general encoder
4 years ago
J. King
a57dde6dbd
Style fixes
4 years ago
J. King
915aa7ca93
Finally fix Shift_JIS seeker
4 years ago
J. King
d9b8cd8dd1
Fixes for multi-byte index-base encoders
- array_flip() retains the last duplicate, when we need the first
- Indexes are now prepared with a list of first-duplicate code points
to search before flipping
- This affected only U+3000 in GBK
- Big5 did not use array_flip(), but its list of override code points
did not include U+2561; Big5 now flips like the others
- EUC-JP had a long list of errors, but this encoding was not
previously released
- Shift_JIS' indexes are probably not correct, still
4 years ago
J. King
14d67ad49f
Add fuzz test for backwards seeking
Test data is 1025 random bytes; gb18030 still fails
4 years ago
J. King
6417e8f0be
Start overhauling error handling; adjust coverage annotations
4 years ago
J. King
befd1feb3a
Apply stricter house style where possible
4 years ago
J. King
c82aaf8b80
Add fuzz test for backwards seeking
Test data is 1025 random bytes; gb18030 still fails
4 years ago
J. King
33059a2906
Start overhauling error handling; adjust coverage annotations
4 years ago
J. King
a7142284f5
Apply stricter house style where possible
4 years ago
J. King
200a310f72
Optionally allow surrogates
Also removed unnecessary docblocks
4 years ago
J. King
2e47fde774
Upgrade to PHPUnit 8
4 years ago
J. King
eae901a9e2
Add new methods
4 years ago
J. King
5217a6c0bc
Tidying
6 years ago
J. King
32d7fc47b0
Fix HTML test generator; clean up
6 years ago
J. King
55cbc915c3
Refactor HTML-based test generators
6 years ago
J. King
4a091610e9
Initial implementation of Big5 encoding
Only the decoder is tested, and even that requires more thorough testing.
Testing of seeking and encoding still to come
6 years ago
J. King
d5327a3b83
Implement x-user-defined decoder
Also further refactored tests to better account for one-way encodings
6 years ago
J. King
dd9bed2e84
Implement UTF-16
6 years ago
J. King
e683167905
Style fixes
Because of the large arrays in the GBCommon class and its test suite,
memory limits had to be disabled in php-cs-fixer
6 years ago
J. King
e4b6acb24a
Refactor tests
6 years ago
J. King
4c686aa8a1
Complete battery of tests for gb18030
6 years ago
J. King
1b9889914a
Fix numerous bugs with gb18030
6 years ago
J. King
467c565e8c
Implement gb18030 seeking
Also fix some bugs in EOF handling
6 years ago
J. King
40d0054bd1
Implement gb18030 and GBK encoders
6 years ago
J. King
d6747532cd
Implement gb18030 decoder
6 years ago