J. King
0eb2a8ac24
Fix bugs in gb18030 and UTF-16
- UTF-16 needs to restore dirtyEOF after seeking
- gb18030 now tracks errors like other non-synchronizing encodings
- gb18030 could produce null when asked for a character
4 years ago
J. King
61a77086bb
Make GenericEncoding trait an abstract class
4 years ago
J. King
f69cd98b4c
Make posErr fully generic
4 years ago
J. King
7339176e3e
Split error handlers
4 years ago
J. King
fc44bb1415
Generalize handling of dirty EOF
4 years ago
J. King
200a310f72
Optionally allow surrogates
Also removed unnecessary docblocks
5 years ago
J. King
fb70543c0f
Change gb18030 loop to be consistent with Big5 and EUC-KR
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
a0bf8a9b05
Don't check for dirty EOF on every iteration
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
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
766643aa37
Common infrstructure for gb18030 and GBK
6 years ago
J. King
d6747532cd
Implement gb18030 decoder
6 years ago