| java.lang.Object com.liferay.portal.kernel.util.StringUtil
All known Subclasses: com.liferay.util.StringUtil,
Method Summary | |
public static String | add(String s, String add) | public static String | add(String s, String add, String delimiter) | public static String | add(String s, String add, String delimiter, boolean allowDuplicates) | public static String | bytesToHexString(byte[] bytes) | public static boolean | contains(String s, String text) | public static boolean | contains(String s, String text, String delimiter) | public static int | count(String s, String text) | public static boolean | endsWith(String s, char end) | public static boolean | endsWith(String s, String end) | public static String | extractChars(String s) | public static String | extractDigits(String s) | public static String | extractFirst(String s, String delimiter) | public static String | extractLast(String s, String delimiter) | public static String | highlight(String s, String keywords) | public static String | highlight(String s, String keywords, String highlight1, String highlight2) | public static String | lowerCase(String s) | public static String | merge(boolean[] array) | public static String | merge(boolean[] array, String delimiter) | public static String | merge(int[] array) | public static String | merge(int[] array, String delimiter) | public static String | merge(long[] array) | public static String | merge(long[] array, String delimiter) | public static String | merge(short[] array) | public static String | merge(short[] array, String delimiter) | public static String | merge(List list) | public static String | merge(List list, String delimiter) | public static String | merge(Object[] array) | public static String | merge(Object[] array, String delimiter) | public static String | randomize(String s) | public static String | read(ClassLoader classLoader, String name) | public static String | read(ClassLoader classLoader, String name, boolean all) | public static String | read(InputStream is) | public static String | remove(String s, String remove) | public static String | remove(String s, String remove, String delimiter) | public static String | replace(String s, char oldSub, char newSub) | public static String | replace(String s, char oldSub, String newSub) | public static String | replace(String s, String oldSub, String newSub) | public static String | replace(String s, String[] oldSubs, String[] newSubs) | public static String | replaceValues(String s, String begin, String end, Map values) Returns a string with replaced values. | public static String | reverse(String s) | public static String | safePath(String path) | public static String | shorten(String s) | public static String | shorten(String s, int length) | public static String | shorten(String s, String suffix) | public static String | shorten(String s, int length, String suffix) | public static String[] | split(String s) | public static String[] | split(String s, String delimiter) | public static boolean[] | split(String s, boolean x) | public static boolean[] | split(String s, String delimiter, boolean x) | public static double[] | split(String s, double x) | public static double[] | split(String s, String delimiter, double x) | public static float[] | split(String s, float x) | public static float[] | split(String s, String delimiter, float x) | public static int[] | split(String s, int x) | public static int[] | split(String s, String delimiter, int x) | public static long[] | split(String s, long x) | public static long[] | split(String s, String delimiter, long x) | public static short[] | split(String s, short x) | public static short[] | split(String s, String delimiter, short x) | public static boolean | startsWith(String s, char begin) | public static boolean | startsWith(String s, String start) | public static String | stripBetween(String s, String begin, String end) | public static String | trim(String s) | public static String | trim(String s, char c) | public static String | trim(String s, char[] exceptions) | public static String | trimLeading(String s) | public static String | trimLeading(String s, char c) | public static String | trimLeading(String s, char[] exceptions) | public static String | trimTrailing(String s) | public static String | trimTrailing(String s, char c) | public static String | trimTrailing(String s, char[] exceptions) | public static String | upperCase(String s) | public static String | upperCaseFirstLetter(String s) | public static String | wrap(String text) | public static String | wrap(String text, int width, String lineSeparator) |
bytesToHexString | public static String bytesToHexString(byte[] bytes)(Code) | | |
endsWith | public static boolean endsWith(String s, char end)(Code) | | |
replaceValues | public static String replaceValues(String s, String begin, String end, Map values)(Code) | | Returns a string with replaced values. This method will replace all text
in the given string, between the beginning and ending delimiter, with new
values found in the given map. For example, if the string contained the
text [$HELLO$] , and the beginning delimiter was
[$] , and the ending delimiter was $] , and the
values map had a key of HELLO that mapped to
WORLD , then the replaced string will contain the text
[$WORLD$] .
Parameters: s - the original string Parameters: begin - the beginning delimiter Parameters: end - the ending delimiter Parameters: values - a map of old and new values a string with replaced values |
split | public static boolean[] split(String s, boolean x)(Code) | | |
startsWith | public static boolean startsWith(String s, char begin)(Code) | | |
|
|