ICU-5444 Update substitution character and max number of bytes per character.

X-SVN-Rev: 21564
This commit is contained in:
Michael Ow 2007-05-21 00:27:48 +00:00
parent 8a925ac176
commit 2322038fbe

View File

@ -20,11 +20,11 @@ import com.ibm.icu.text.UTF16;
*
*/
class CharsetUTF7 extends CharsetICU {
protected byte[] fromUSubstitution = new byte[]{0x2b, 0x2f, 0x76};
protected byte[] fromUSubstitution = new byte[]{0x3F};
public CharsetUTF7(String icuCanonicalName, String javaCanonicalName, String[] aliases) {
super(icuCanonicalName, javaCanonicalName, aliases);
maxBytesPerChar = 3; /* max 3 bytes per code unit from UTF-7 (base64) */
maxBytesPerChar = 4; /* max 3 bytes per code unit from UTF-7 (base64) */
minBytesPerChar = 1;
maxCharsPerByte = 1;
}