Package org.openstreetmap.josm.tools
Class TextUtils
- java.lang.Object
-
- org.openstreetmap.josm.tools.TextUtils
-
public final class TextUtils extends java.lang.Object
Text/String utils.- Since:
- 13978
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TextUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
stripUrl(java.lang.String url)
Remove privacy related parts from output URLstatic java.lang.String
wrapLongUrl(java.lang.String url)
Inserts zero width space character (U+8203) after each slash/ampersand to wrap long URLs.
-
-
-
Constructor Detail
-
TextUtils
private TextUtils()
-
-
Method Detail
-
wrapLongUrl
public static java.lang.String wrapLongUrl(java.lang.String url)
Inserts zero width space character (U+8203) after each slash/ampersand to wrap long URLs.- Parameters:
url
- URL- Returns:
- wrapped URL
- Since:
- 13978
-
stripUrl
public static java.lang.String stripUrl(java.lang.String url)
Remove privacy related parts from output URL- Parameters:
url
- Unmodified URL- Returns:
- Stripped URL (privacy related issues removed)
- Since:
- 18652
-
-