(String uncompressed)
| 123 | } |
| 124 | |
| 125 | public static String compress(String uncompressed) { |
| 126 | return LZString._compress(uncompressed, 16, new CompressFunctionWrapper() { |
| 127 | @Override |
| 128 | public char doFunc(int a) { |
| 129 | return fc(a); |
| 130 | } |
| 131 | }); |
| 132 | } |
| 133 | |
| 134 | private static String _compress(String uncompressedStr, int bitsPerChar, CompressFunctionWrapper getCharFromInt) { |
| 135 | if (uncompressedStr == null) return ""; |