|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.util.StringUtils
public class StringUtils
| Field Summary | |
|---|---|
protected static Map<String,char[][]> |
stringCharMappings
|
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
contains(String value,
List<String> possiblyContains)
Tests to see is a string contains any of the string in the list passed |
static String |
createCommaSeperatedString(Iterable<String> entries)
Create a String of comma seperated entries from a Collection. |
static String |
crop(String original,
int cropAt,
String suffix)
Crop a string if it is longer than a certain length, adding the specified suffix. |
static boolean |
equalsIgnoreLineTerminators(String s1,
String s2)
|
static String |
escapeCP1252(String s,
String encoding)
replaces "smart quotes" and other problematic characters that appear in JIRA when data is cut and pasted from a Microsoft word document. |
static boolean |
isStringAllASCII(String str)
Tests if all the characters in the string is an ASCII character |
static boolean |
isStringISO_8859_1(String string)
|
static boolean |
isStringOfCharSet(String string,
String charset)
Checks if all the characters in the string are from the specified character set |
static String |
normalise(String value)
|
static String |
replaceAll(String str,
String oldPattern,
String newPattern)
Replaces all occurrences of one string with another. |
static String[] |
splitCommaSeparatedString(String entryString)
Method will turn a String of comma seperated entities into a String Array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<String,char[][]> stringCharMappings
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static final String escapeCP1252(String s,
String encoding)
These include smart single and double quotes, ellipses, em-dashes and bullets (these characters belong to the Windows Code Page 1252 encoding)
s - string to simplifyencoding - eg. UTF-8, Big5, ISO-8859-1 etc.
public static String crop(String original,
int cropAt,
String suffix)
public static boolean contains(String value,
List<String> possiblyContains)
public static String replaceAll(String str,
String oldPattern,
String newPattern)
public static boolean isStringAllASCII(String str)
public static boolean isStringOfCharSet(String string,
String charset)
public static boolean isStringISO_8859_1(String string)
public static boolean equalsIgnoreLineTerminators(String s1,
String s2)
public static String normalise(String value)
public static String[] splitCommaSeparatedString(String entryString)
entryString - A comma seperated String
public static String createCommaSeperatedString(Iterable<String> entries)
entries - A collection of entries
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||