• Simon Middleton's avatar
    Fixed autojp state machine. It wasn't resetting 'state' to HAD_NONE after... · 407bccff
    Simon Middleton authored
    Fixed autojp state machine. It wasn't resetting 'state' to HAD_NONE after changing whatcode. So basically it was lucky it ever worked. Also rewrote the various range tests to only use one compare per case.
    
    Changed the 'for_encoding' parameter to encoding_write() to an enumeration.
    Added a new type of writing where if the character cannot be encoded then
    the function returns -1 rather than writing a default character
    Added the pseudo-charsets csAutodetectJP and csEUCorShiftJIS to the encoding
    table so that they return the correct default language (ja).
    Added function to remove unused encoding tables (must be called explicitly).
    Fixed usage counting in iso2022 (I think).
    When looking up encoding name try stripping 'x-' and 'X-' off the front i
    can't find on first pass.
    
    Version 0.12. Tagged as 'Unicode-0_12'
    407bccff
shiftjis 6.36 KB