mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
6b046f8707
commit
c3ce99cce2
@ -1,10 +1,10 @@
|
|||||||
// © 2016 and later: Unicode, Inc. and others.
|
// © 2016 and later: Unicode, Inc. and others.
|
||||||
// License & terms of use: http://www.unicode.org/copyright.html
|
// License & terms of use: http://www.unicode.org/copyright.html
|
||||||
/**
|
/*
|
||||||
* ******************************************************************************
|
******************************************************************************
|
||||||
* Copyright (C) 2005-2016, International Business Machines Corporation and *
|
Copyright (C) 2005-2016, International Business Machines Corporation and *
|
||||||
* others. All Rights Reserved. *
|
others. All Rights Reserved. *
|
||||||
* ******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
package io.legado.app.lib.icu4j;
|
package io.legado.app.lib.icu4j;
|
||||||
|
|
||||||
@ -332,7 +332,7 @@ public class CharsetDetector {
|
|||||||
* it by removing what appears to be html markup.
|
* it by removing what appears to be html markup.
|
||||||
*/
|
*/
|
||||||
private void MungeInput() {
|
private void MungeInput() {
|
||||||
int srci = 0;
|
int srci;
|
||||||
int dsti = 0;
|
int dsti = 0;
|
||||||
byte b;
|
byte b;
|
||||||
boolean inMarkup = false;
|
boolean inMarkup = false;
|
||||||
@ -496,6 +496,7 @@ public class CharsetDetector {
|
|||||||
list.add(new CSRecognizerInfo(new CharsetRecog_sbcs.CharsetRecog_IBM420_ar_rtl(), false));
|
list.add(new CSRecognizerInfo(new CharsetRecog_sbcs.CharsetRecog_IBM420_ar_rtl(), false));
|
||||||
list.add(new CSRecognizerInfo(new CharsetRecog_sbcs.CharsetRecog_IBM420_ar_ltr(), false));
|
list.add(new CSRecognizerInfo(new CharsetRecog_sbcs.CharsetRecog_IBM420_ar_ltr(), false));
|
||||||
|
|
||||||
|
//noinspection Java9CollectionFactory
|
||||||
ALL_CS_RECOGNIZERS = Collections.unmodifiableList(list);
|
ALL_CS_RECOGNIZERS = Collections.unmodifiableList(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user