aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils/TextUtils.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-04-10 14:07:09 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-04-10 14:07:09 +0200
commit8e765eb62fae1f99cb8bcf7853a2b34df21bc100 (patch)
treea356c7840b115eb949cdcc75a24bbcaee0927ba8 /main/src/cgeo/geocaching/utils/TextUtils.java
parent2a97bbd1ea9db1975364b6ee96e527b2c9c8bae7 (diff)
downloadcgeo-8e765eb62fae1f99cb8bcf7853a2b34df21bc100.zip
cgeo-8e765eb62fae1f99cb8bcf7853a2b34df21bc100.tar.gz
cgeo-8e765eb62fae1f99cb8bcf7853a2b34df21bc100.tar.bz2
refactoring: move charset definition into TextUtils
Diffstat (limited to 'main/src/cgeo/geocaching/utils/TextUtils.java')
-rw-r--r--main/src/cgeo/geocaching/utils/TextUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/utils/TextUtils.java b/main/src/cgeo/geocaching/utils/TextUtils.java
index c4e1128..5acb3a0 100644
--- a/main/src/cgeo/geocaching/utils/TextUtils.java
+++ b/main/src/cgeo/geocaching/utils/TextUtils.java
@@ -6,6 +6,7 @@ package cgeo.geocaching.utils;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.eclipse.jdt.annotation.Nullable;
+import java.nio.charset.Charset;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -14,6 +15,8 @@ import java.util.regex.Pattern;
*/
public final class TextUtils {
+ public static final Charset CHARSET_UTF8 = Charset.forName("UTF-8");
+
private static final Pattern PATTERN_REMOVE_NONPRINTABLE = Pattern.compile("\\p{Cntrl}");
private TextUtils() {