| | 1 | == Remove charset opcodes == |
| | 2 | |
| | 3 | === Descripiton === |
| | 4 | |
| | 5 | The charset opcodes have been removed. |
| | 6 | |
| | 7 | === Rationale === |
| | 8 | |
| | 9 | After the charset/encoding merge, they're unneeded. |
| | 10 | |
| | 11 | === Replacement === |
| | 12 | |
| | 13 | Use the corresponding encoding opcodes instead. |
| | 14 | |
| | 15 | {{{ |
| | 16 | /* old code */ |
| | 17 | $I0 = charset $S0 |
| | 18 | $S1 = charsetname $I0 |
| | 19 | $I1 = find_charset "ascii" |
| | 20 | $S2 = trans_charset $S0, $I1 |
| | 21 | |
| | 22 | /* updated code */ |
| | 23 | $I0 = encoding $S0 |
| | 24 | $S1 = encodingname $I0 |
| | 25 | $I1 = find_encoding "ascii" |
| | 26 | $S2 = trans_encoding $S0, $I1 |
| | 27 | }}} |
| | 28 | |
| | 29 | The list of supported encodings is: |
| | 30 | |
| | 31 | {{{ |
| | 32 | ascii |
| | 33 | iso-8859-1 |
| | 34 | binary |
| | 35 | utf8 |
| | 36 | utf16 |
| | 37 | ucs2 |
| | 38 | ucs4 |
| | 39 | }}} |
| | 40 | |