Switch code point table
Bug:17097992 Change-Id: I3c1f5ac183ebb5d3757b8ff258655869ab61f2e7main
parent
25c884ba65
commit
f51d3667fc
|
@ -137,10 +137,11 @@ public class Ver2DictEncoder implements DictEncoder {
|
||||||
// Make code point conversion table ordered by occurrence of code points
|
// Make code point conversion table ordered by occurrence of code points
|
||||||
// Version 201 or later have codePointTable
|
// Version 201 or later have codePointTable
|
||||||
final CodePointTable codePointTable;
|
final CodePointTable codePointTable;
|
||||||
if (formatOptions.mVersion >= FormatSpec.MINIMUM_SUPPORTED_VERSION_OF_CODE_POINT_TABLE) {
|
if (mCodePointTableMode == CODE_POINT_TABLE_OFF || formatOptions.mVersion
|
||||||
codePointTable = makeCodePointTable(dict);
|
< FormatSpec.MINIMUM_SUPPORTED_VERSION_OF_CODE_POINT_TABLE) {
|
||||||
} else {
|
|
||||||
codePointTable = new CodePointTable();
|
codePointTable = new CodePointTable();
|
||||||
|
} else {
|
||||||
|
codePointTable = makeCodePointTable(dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
BinaryDictEncoderUtils.writeDictionaryHeader(mOutStream, dict, formatOptions,
|
BinaryDictEncoderUtils.writeDictionaryHeader(mOutStream, dict, formatOptions,
|
||||||
|
|
Loading…
Reference in New Issue