Package org.loboevolution.common
Class Strings
java.lang.Object
org.loboevolution.common.Strings
The Class Strings.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsIgnoreCase
(String text, String text1) static boolean
containsWords
(String inputString, String[] items) containsWords.static int
countChars
(String text, char ch) Count chars.static boolean
endsWithIgnoreCase
(String text, String text1) static String
hash.static boolean
Checks if is blank.static boolean
isCssBlank
(String text) static boolean
isCssNotBlank
(String text) static boolean
isNotBlank
(String text) Checks if is not blank.static boolean
isNumeric.static boolean
static boolean
isValidTag
(String name, boolean isXml) static boolean
isXMLIdentifier
(String str) static String
Linearize string.static String
randomAlphaNumeric
(int count) randomAlphaNumeric.static String[]
Split.static String[]
splitIgnoreCase
(String text, String text1) static String[]
splitUsingTokenizer
(String subject, String delimiters) splitUsingTokenizer.static boolean
startsWithIgnoreCase
(String text, String text1) static String
strictHtmlEncode
(String rawText, boolean quotes) Strict html encode.static Rectangle2D
texMeasure
(String text, Font font) tex measurestatic String
trimForAlphaNumDash
(String rawText) Trim for alpha num dash.static String
Unquote.static String
unquoteSingle
(String text) unquoteSingle.
-
Field Details
-
EMPTY_ARRAY
The Constant EMPTY_ARRAY.
-
-
Method Details
-
countChars
Count chars.- Parameters:
text
- the textch
- the ch- Returns:
- the int
-
texMeasure
tex measure- Parameters:
text
- aString
object.font
- aFont
object.- Returns:
- a
Rectangle2D
object.
-
isBlank
Checks if is blank.- Parameters:
text
- the text- Returns:
- true, if is blank
-
isCssBlank
-
linearize
Linearize string.- Parameters:
text
- the text- Returns:
- string
-
isNotBlank
Checks if is not blank.- Parameters:
text
- the text- Returns:
- true, if is not blank
-
isCssNotBlank
-
isStringBuilderNotBlack
-
containsIgnoreCase
-
startsWithIgnoreCase
-
endsWithIgnoreCase
-
splitIgnoreCase
-
isNumeric
isNumeric.
- Parameters:
keyCode
- aString
object.- Returns:
- a boolean.
-
split
Split.- Parameters:
phrase
- the phrase- Returns:
- the string[]
-
splitUsingTokenizer
splitUsingTokenizer.
-
strictHtmlEncode
Strict html encode.- Parameters:
rawText
- the raw textquotes
- the quotes- Returns:
- the string
-
trimForAlphaNumDash
Trim for alpha num dash.- Parameters:
rawText
- the raw text- Returns:
- the string
-
unquote
Unquote.- Parameters:
text
- the text- Returns:
- the string
-
unquoteSingle
unquoteSingle.
-
containsWords
containsWords.
-
hash
hash.
-
randomAlphaNumeric
randomAlphaNumeric.
-
isValidTag
-
isXMLIdentifier
-