Commit Graph

4487 Commits

Author SHA1 Message Date
Chas Honton 2fa0b168d6 LANG-1192: FastDateFormat support of the week-year component (uppercase 'Y') 2015-12-13 16:38:35 -08:00
Chas Honton 2ebf9a21d2 LANG-1192 partial: implement format 'u' for FastDateFormat, day number of week 2015-12-11 20:36:22 -08:00
Sebb bfcdeeaf44 More Javadoc and tests 2015-12-11 23:10:32 +00:00
Sebb a5ad80d754 Revert update of change history for 3.4 2015-12-11 13:57:19 +00:00
Sebb d75fe46b8f LANG-1193 ordinalIndexOf("abc", "ab", 1) gives incorrect answer of -1
(correct answer should be 0)
Revert LANG-1077
2015-12-11 13:41:22 +00:00
Sebb 15e1ea2f4e Moved DOAP 2015-12-09 18:00:37 +00:00
Nick Manley 5556026ed1 Fix NullPointerException in FastDateParser$TimeZoneStrategy 2015-11-19 23:24:05 -06:00
Benedikt Ritter 56907c9a96 Merge branch 'LANG-1182'
LANG-1182: Clarify JavaDoc of StringUtils.containsAny(). Thanks to
Larry West for the suggestion and to Pascal Schuhmacher for implementing
it. This fixes #114 from github.
2015-11-16 20:16:52 +01:00
Benedikt Ritter 7f0d6b4c12 Add LANG-1182 to changes.xml 2015-11-16 20:16:42 +01:00
Pascal Schumacher 1260e09d6f LANG-1182: adding clarifying examples to StringUtils#containsAny javadoc
as suggested by Larry West in https://issues.apache.org/jira/browse/LANG-1182
2015-11-08 22:44:07 +01:00
Loic Guibert 481137553f Merge branch 'fix-LANG-1169'
LANG-1169: Add StringUtils methods to compare a string to multiple strings
This closes #109 from github.
Thanks to Arman Sharif for providing a patch.
Thanks to Rafal Glowinski for providing an alternative implementations, see LANG-704.
Thanks to Robert Parr for providing an alternative implementations, see LANG-704.


Conflicts:
	src/changes/changes.xml
2015-11-06 16:21:32 +04:00
Loic Guibert 2c790ccc31 Add LANG-1169 to changes.xml 2015-11-06 16:13:57 +04:00
Loic Guibert a06f83a762 LANG-1169 Add some other unit tests 2015-11-06 16:13:13 +04:00
Loic Guibert a5650a1671 Add LANG-1185 to changes.xml 2015-11-05 17:18:58 +04:00
Loic Guibert 242b815437 LANG-1185 Add some tests for StringUtils replaceAll and replaceFirst methods 2015-11-05 17:17:20 +04:00
Loic Guibert b4842f559f LANG-1185 Add remove by regular expression methods in StringUtils :
- String StringUtils.removeAll(String text, String regex);
  - String StringUtils.removeFirst(String text, String regex);
2015-11-05 17:14:11 +04:00
Sebb 94184ce383 Ignore deprecations in test code 2015-11-03 10:20:28 +00:00
Arman Sharif 3a68fe8b7e LANG-1169 Added equalsAny() and equalsAnyIgnoreCase() methods to StringUtils. 2015-11-02 09:47:08 -08:00
Loic Guibert 47c1862989 Add LANG-1183 to changes.xml 2015-11-02 09:16:54 +04:00
Loic Guibert b1762bd557 LANG-1183 Making replacePattern/removePattern methods null safe in StringUtils 2015-11-02 09:14:22 +04:00
Loic Guibert 56f0e1053c StringUtils: remove unused import 2015-11-02 09:07:00 +04:00
Loic Guibert a6addf94e5 Merge branch 'fix-LANG-1139'
LANG-1139: Add replace by regular expression methods in StringUtils
This closes #92 from github.
2015-10-27 08:07:09 +04:00
Loic Guibert 849578d3a8 Merge branch 'fix-LANG-1171'
LANG-1171: Add compare methods in StringUtils
This closes #110 from github.
2015-10-23 21:53:32 +04:00
Loic Guibert 51512905c3 LANG-1171 Remove log of excluded methods in StringUtilsTest.testStringUtilsCharSequenceContract() 2015-10-21 15:15:06 +04:00
Loic Guibert 131917a0d3 LANG-1171 Exclude methods from StringUtilsTest.testStringUtilsCharSequenceContract() :
- StringUtils.compare(String str1, String str2);
  - StringUtils.compare(String str1, String str2, boolean nullIsLess);
  - StringUtils.compareIgnoreCase(String str1, String str2);
  - StringUtils.compareIgnoreCase(String str1, String str2, boolean nullIsLess);
2015-10-20 18:50:13 +04:00
Sergio Fernández c7860091a7 LANG-1175: removed more files from the assembly conf 2015-10-20 08:37:50 +02:00
Loic Guibert ae865193ea Add myself to the developers list 2015-10-20 10:30:41 +04:00
Sergio Fernández 8bdfc71491 LANG-1175: removed additional files 2015-10-19 21:39:46 +02:00
Sergio Fernández 1dbdbfc3fa LANG-1175: fixed typo on changes 2015-10-19 21:38:18 +02:00
Benedikt Ritter fd595d7475 Fix typo 2015-10-19 20:35:29 +02:00
Sergio Fernández c3e250abb3 LANG-1175: removed ant-based build 2015-10-19 16:44:42 +02:00
Benedikt Ritter c9cae602ec Merge branch 'LANG-1174'
LANG-1174: Add sugar to RandomUtils.
This closes 111 from github. Thanks to github user Punkratz312.
2015-10-17 11:12:19 +02:00
Benedikt Ritter 19f9893de0 Add LANG-1174 to changes.xml 2015-10-17 11:12:07 +02:00
Benedikt Ritter 69383a2bab Better JavaDoc 2015-10-17 11:10:54 +02:00
Benedikt Ritter 881c5fa3d2 Remove empty lines 2015-10-17 11:00:02 +02:00
Benedikt Ritter acc2bcd058 Update to easymock dependency 2015-10-16 17:30:01 +02:00
Michael Osipov 6d3796e64b LANG-1002: Several predefined ISO FastDateFormats in DateFormatUtils are incorrect
Since the naming template is ISO <ID>, new constants have been renamed to ISO_8601_...
Additionally, the constants represent the extended format. That should be reflected
in their names.
2015-10-14 12:46:08 +02:00
Vincent Potucek 31466db6ec Add sugar to RandomIUtils 2015-10-12 09:47:40 +02:00
Loic Guibert 94ec5a1112 LANG-1171 Add null safe compare methods in StringUtils :
- StringUtils.compare(String str1, String str2);
  - StringUtils.compare(String str1, String str2, boolean nullIsLess);
  - StringUtils.compareIgnoreCase(String str1, String str2);
  - StringUtils.compareIgnoreCase(String str1, String str2, boolean nullIsLess);
2015-10-05 17:00:50 +04:00
Sebb 00fafe772c Some more tests 2015-08-12 10:37:14 +01:00
Sebb e8a2c29721 LANG-1163 There are no tests for CharSequenceUtils.regionMatches 2015-08-11 14:29:57 +01:00
Sebb 68acbc803e Split up and simplify tests 2015-08-11 11:48:14 +01:00
Sebb 6849dfc8a6 LANG-1162 StringUtils#equals fails with Index OOBE on non-Strings with
identical leading prefix
2015-08-10 22:42:21 +01:00
Chas Honton fad946a1d7 fix ExceptionUtilsTest to compile with java 1.6 2015-07-24 20:06:15 -07:00
Benedikt Ritter b0bbe58eb6 Use travis containerized build infrastructure.
This promises to be much faster than running builds on real build
slaves, see http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
2015-07-24 14:40:10 +02:00
Benedikt Ritter f59a674a26 Reuse functionality from StringUtils instead of duplicating code 2015-07-24 13:07:12 +02:00
Benedikt Ritter 5fb158cc05 Simplify boolean expression 2015-07-24 13:06:47 +02:00
Henri Yandell 17a6d163c6 Adding a createStarted() method per request in LANG-1138 2015-07-19 09:23:45 -07:00
Henri Yandell 421db380d0 Switched capitalize back to using toTitleCase. Added a test for this using the 'Lj' letter. LANG-1142 2015-07-19 01:25:45 -07:00
Chas Honton cc1aed9bdf LANG-1057
Micro optimization: Replace StringBuilder with String concatenation so that the compiler can better optimize the code
2015-07-14 21:02:49 -07:00