![]() |
|
Version: 0.27 - Last update: 2004-05-30 | Home Page - SourceForge Project Page - Contact |
Jodd Overview News Download License References Development Using Jodd Javadoc JUnit report Community Contribute Report a bug More reading Milestone 0.30 ![]() ![]() |
String utilsJodd provides some simple, yet often needed String utilities (optimized for speed).The most needed it the StringUtil.replace which replaces all
matched substrings with new substring. There is also
StringUtil.replaceChar which is faster when just character
should be replaced.StringUtil.equals compares two strings but it is aware if
they are null . Similarly, StringUtil.isEmpty
provides fast and null -aware is empty checking.StringUtil.split splits a string in several parts i.e. tokens
that are separated by some delimiter. It works a bit differently from what
StringTokenizer would return, since it doesn't group
delimiters, i.e. it doesn't ignore empty tokens. Moreover, this method is
much faster then regexp String.split() , and a bit faster then
StringTokenizer .There are also various finding and string matching methods that are not case sensitive. |