Package com.liferay.portal.kernel.util
Class StringUtil_IW
Object
com.liferay.portal.kernel.util.StringUtil_IW
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionappendParentheticalSuffix
(String s, int suffix) appendParentheticalSuffix
(String s, String suffix) bytesToHexString
(byte[] bytes) boolean
boolean
boolean
containsIgnoreCase
(String s, String text) boolean
containsIgnoreCase
(String s, String text, String delimiter) int
int
int
int
boolean
boolean
boolean
boolean
equalsIgnoreBreakLine
(String s1, String s2) boolean
equalsIgnoreCase
(char c1, char c2) boolean
equalsIgnoreCase
(String s1, String s2) extractFirst
(String s, char delimiter) extractFirst
(String s, String delimiter) extractLast
(String s, char delimiter) extractLast
(String s, String delimiter) static StringUtil_IW
getTitleCase
(String s, boolean allowDash, String... exceptions) byte[]
hexStringToBytes
(String hexString) int
indexOfAny
(String s, char[] chars) int
indexOfAny
(String s, char[] chars, int fromIndex) int
indexOfAny
(String s, char[] chars, int fromIndex, int toIndex) int
indexOfAny
(String s, String[] texts) int
indexOfAny
(String s, String[] texts, int fromIndex) int
indexOfAny
(String s, String[] texts, int fromIndex, int toIndex) boolean
boolean
int
lastIndexOfAny
(String s, char[] chars) int
lastIndexOfAny
(String s, char[] chars, int toIndex) int
lastIndexOfAny
(String s, char[] chars, int fromIndex, int toIndex) int
lastIndexOfAny
(String s, String[] texts) int
lastIndexOfAny
(String s, String[] texts, int toIndex) int
lastIndexOfAny
(String s, String[] texts, int fromIndex, int toIndex) void
boolean
boolean
matchesIgnoreCase
(String s, String pattern) merge
(boolean[] array) merge
(char[] array) merge
(double[] array) merge
(float[] array) merge
(int[] array) merge
(long[] array) merge
(short[] array) merge
(Collection<?> collection) merge
(Collection<?> collection, String delimiter) randomId()
randomId
(int length) randomString
(int length) read
(InputStream inputStream) read
(ClassLoader classLoader, String name) read
(ClassLoader classLoader, String name, boolean all) void
readLines
(InputStream inputStream, Collection<String> lines) removeChar
(String s, char oldSub) removeChars
(String s, char... oldSubs) removeFirst
(String s, String oldSub) removeFromList
(String s, String element) removeFromList
(String s, String element, String delimiter) removeLast
(String s, String oldSub) removeSubstring
(String s, String oldSub) removeSubstrings
(String s, String... oldSubs) replaceFirst
(String s, char oldSub, char newSub) replaceFirst
(String s, char oldSub, String newSub) replaceFirst
(String s, String[] oldSubs, String[] newSubs) replaceFirst
(String s, String oldSub, String newSub) replaceFirst
(String s, String oldSub, String newSub, int fromIndex) replaceLast
(String s, char oldSub, char newSub) replaceLast
(String s, char oldSub, String newSub) replaceLast
(String s, String[] oldSubs, String[] newSubs) replaceLast
(String s, String oldSub, String newSub) com.liferay.petra.string.StringBundler
com.liferay.petra.string.StringBundler
replaceWithStringBundler
(String s, String begin, String end, Map<String, com.liferay.petra.string.StringBundler> values) String[]
boolean[]
String[]
double[]
float[]
int[]
long[]
short[]
String[]
boolean[]
double[]
float[]
int[]
long[]
short[]
String[]
splitLines
(String s) boolean
startsWith
(String s, char begin) boolean
startsWith
(String s, String start) int
startsWithWeight
(String s1, String s2) stripBetween
(String s, String begin, String end) stripCDATA
(String s) toCharCode
(String s) toHexString
(int i) toHexString
(long l) toHexString
(Object object) toLowerCase
(String s, Locale locale) toUpperCase
(String s, Locale locale) trimLeading
(String s, char c) trimLeading
(String s, char[] exceptions) trimTrailing
(String s, char c) trimTrailing
(String s, char[] exceptions) boolean
wildcardMatches
(String s, String wildcard, char singleWildcardCharacter, char multipleWildcardCharacter, char escapeWildcardCharacter, boolean caseSensitive)
-
Method Details
-
getInstance
-
add
-
add
-
add
-
appendParentheticalSuffix
-
appendParentheticalSuffix
-
asList
-
bytesToHexString
-
contains
-
contains
-
containsIgnoreCase
-
containsIgnoreCase
-
count
-
count
-
count
-
count
-
endsWith
-
endsWith
-
equals
-
equalsIgnoreBreakLine
-
equalsIgnoreCase
public boolean equalsIgnoreCase(char c1, char c2) -
equalsIgnoreCase
-
extractChars
-
extractDigits
-
extractFirst
-
extractFirst
-
extractLast
-
extractLast
-
extractLeadingDigits
-
getTitleCase
-
hexStringToBytes
-
indexOfAny
-
indexOfAny
-
indexOfAny
-
indexOfAny
-
indexOfAny
-
indexOfAny
-
insert
-
isLowerCase
-
isUpperCase
-
lastIndexOfAny
-
lastIndexOfAny
-
lastIndexOfAny
-
lastIndexOfAny
-
lastIndexOfAny
-
lastIndexOfAny
-
lowerCase
-
lowerCase
-
lowerCaseFirstLetter
-
matches
-
matchesIgnoreCase
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
merge
-
quote
-
quote
-
quote
-
randomId
-
randomId
-
randomString
-
randomString
-
read
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
readLines
- Throws:
IOException
-
removeChar
-
removeChars
-
removeFirst
-
removeFromList
-
removeFromList
-
removeLast
-
removeSubstring
-
removeSubstrings
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replace
-
replaceFirst
-
replaceFirst
-
replaceFirst
-
replaceFirst
-
replaceFirst
-
replaceLast
-
replaceLast
-
replaceLast
-
replaceLast
-
replaceToStringBundler
-
replaceWithStringBundler
-
shorten
-
shorten
-
shorten
-
shorten
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
split
-
splitLines
-
startsWith
-
startsWith
-
startsWithWeight
-
stripBetween
-
stripCDATA
-
stripParentheticalSuffix
-
toCharCode
-
toHexString
-
toHexString
-
toHexString
-
toLowerCase
-
toLowerCase
-
toUpperCase
-
toUpperCase
-
trim
-
trim
-
trim
-
trimLeading
-
trimLeading
-
trimLeading
-
trimTrailing
-
trimTrailing
-
trimTrailing
-
unquote
-
upperCase
-
upperCaseFirstLetter
-
wildcardMatches
-