mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
AndrolibResources +isPrintableChar()
This commit is contained in:
parent
f041f091c5
commit
501a92d733
@ -27,6 +27,7 @@ import brut.androlib.res.util.*;
|
|||||||
import brut.common.BrutException;
|
import brut.common.BrutException;
|
||||||
import brut.directory.*;
|
import brut.directory.*;
|
||||||
import brut.util.*;
|
import brut.util.*;
|
||||||
|
import java.awt.event.KeyEvent;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
@ -563,6 +564,14 @@ final public class AndrolibResources {
|
|||||||
return out.toString();
|
return out.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isPrintableChar(char c) {
|
||||||
|
Character.UnicodeBlock block = Character.UnicodeBlock.of(c);
|
||||||
|
return ! Character.isISOControl(c)
|
||||||
|
&& c != KeyEvent.CHAR_UNDEFINED
|
||||||
|
&& block != null
|
||||||
|
&& block != Character.UnicodeBlock.SPECIALS;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// TODO: dirty static hack. I have to refactor decoding mechanisms.
|
// TODO: dirty static hack. I have to refactor decoding mechanisms.
|
||||||
public static boolean sKeepBroken = false;
|
public static boolean sKeepBroken = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user