Commit Graph

3468 Commits

Author SHA1 Message Date
Sebastian Bazley 78ef8313bd Imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1417451 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 14:45:09 +00:00
Gary D. Gregory 8b89b0ea93 <action issue="LANG-835" type="add">StrBuilder should support StringBuilder as an input parameter</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1413671 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 15:04:00 +00:00
Gary D. Gregory 0c9622b749 <action issue="LANG-858" type="fix">StringEscapeUtils.escapeJava() and escapeEcmaScript() do not output the escaped surrogate pairs that are Java parsable</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1413114 13f79535-47bb-0310-9956-ffa450edef68
2012-11-24 01:56:20 +00:00
Gary D. Gregory e5a1ea6a76 [LANG-858] StringEscapeUtils.escapeJava() does not output the escaped surrogate pairs that is Java parsable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1412408 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 02:21:55 +00:00
Gary D. Gregory ed8a178479 Remove extra whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1412407 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 02:17:32 +00:00
Gary D. Gregory 0ea20fa351 Add testEscapeXmlAllCharacters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1412256 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 19:51:28 +00:00
Gary D. Gregory 52bcd9b8e8 [LANG-857] StringIndexOutOfBoundsException in CharSequenceTranslator.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1411850 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 20:45:50 +00:00
Sebastian Bazley f5a83bb90c LANG-856 Code refactoring in NumberUtils
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408713 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 13:21:37 +00:00
Sebastian Bazley d844d1eb5e LANG-854 NumberUtils#createNumber - does not allow for hex numbers to be larger than Long
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408537 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 01:39:40 +00:00
Sebastian Bazley c1f9320476 LANG-855 NumberUtils#createBigInteger does not allow for hex and octal numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408524 13f79535-47bb-0310-9956-ffa450edef68
2012-11-13 00:59:22 +00:00
Sebastian Bazley d2bea5ffd3 Add tests to show magnitude boundary between Float, Double and BigDecimal
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408359 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 17:13:37 +00:00
Sebastian Bazley cbb9aed860 Wrong order of testing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408324 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 15:31:45 +00:00
Gary D. Gregory 8df49927b1 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1408273 13f79535-47bb-0310-9956-ffa450edef68
2012-11-12 13:04:33 +00:00
Sebastian Bazley 350cf8c2da LANG-822: NumberUtils#createNumber - bad behaviour for leading "--"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407973 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 13:16:22 +00:00
Sebastian Bazley a7b467a74c Document return value with null input
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407967 13f79535-47bb-0310-9956-ffa450edef68
2012-11-11 13:00:08 +00:00
Gary D. Gregory e4939f079a [LANG-853] StringUtils join APIs for primitives.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407899 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 23:30:43 +00:00
Gary D. Gregory c3ba1f83b9 Remove whitespace.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407878 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 20:36:56 +00:00
Chas Honton 343886c1c4 LANG-582 - minutes missing from test format
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407715 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 01:58:07 +00:00
Matthew Jason Benson 8a946932c8 explain whitespace pattern
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407537 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:50:39 +00:00
Matthew Jason Benson fa4ed70023 restrict whitespace pattern to ignore 'blocks' of whitespace consisting of only a single space
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407536 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:45:37 +00:00
Matthew Jason Benson 1ea6e4471c StrBuilder implements Builder; provide toStringBuilder as toStringBuffer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407534 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:42:18 +00:00
Matthew Jason Benson fd5af17932 support varargs in StrBuilder.appendAll(); also convert iterable form of method to use enhanced for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407525 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 16:26:44 +00:00
Gary D. Gregory 16774d1c0d [LANG-701] StringUtils join with var args. Add and use SPACE string constant for " ".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407148 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 16:08:23 +00:00
Gary D. Gregory f416eb209c Rename private WHITESPACE_BLOCK to WHITESPACE_PATTERN.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1407141 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 15:54:25 +00:00
Gary D. Gregory 8fc7c1fe06 Refactor some duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406122 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 13:12:12 +00:00
Gary D. Gregory 4cdb63d6c0 [LANG-849] FastDateFormat and FastDatePrinter generates Date objects wastefully.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406027 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 01:59:50 +00:00
Gary D. Gregory 310edf6439 [LANG-849] FastDateFormat generates Date objects wastefully.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1406026 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 01:58:29 +00:00
Gary D. Gregory 641aa249c3 [LANG-845] Spelling fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1401523 13f79535-47bb-0310-9956-ffa450edef68
2012-10-24 00:50:52 +00:00
Gary D. Gregory 6a0bcc6d0f Update Commons Parent from version 26 to 27.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396376 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 22:07:38 +00:00
Gary D. Gregory f7a8fa91ea [LANG-841] Add StringUtils API to call String.replaceAll in DOTALL a.k.a. single-line mode.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396375 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 22:07:08 +00:00
Thomas Neidhart 22d050b781 [LANG-844] Fix javadoc of StringUtils.center methods, thanks to John Lindwall.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396313 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 20:58:50 +00:00
Sebastian Bazley 307c280caf Fail if BitSet not faster overall
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396215 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 19:28:59 +00:00
Sebastian Bazley 8bbf8a9e2f LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Eliminate conversion of BitSet to int[]

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1396075 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 15:37:05 +00:00
Sebastian Bazley 49685a4156 Add test for FreeBSD
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395965 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 11:02:02 +00:00
Sebastian Bazley f381f00df8 Show what we could not test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395961 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:52:27 +00:00
Sebastian Bazley de34665f51 sync with pom.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395948 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:44:31 +00:00
Sebastian Bazley d1207af833 sync with pom.xml
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395946 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:37:01 +00:00
Sebastian Bazley 43a2736e22 LANG-839 Add tests to compare extractIndices+removeAll with direct use of BitSet in new version of removeAll
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395943 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 10:28:08 +00:00
Sebastian Bazley 17910d3cc7 LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Replace HashSet with BitSet (less memory; faster)

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395837 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:26:13 +00:00
Sebastian Bazley ec242df460 LANG-839 ArrayUtils removeElements methods use unnecessary HashSet
Add benchmark test to show whether Bitset is faster

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1395834 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 01:15:20 +00:00
Sebastian Bazley 73a89b07dc Check empty arrrays handled OK
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1394318 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 22:55:43 +00:00
Joerg Schaible ff5b829efd Use term "binary" instead of "boolArray" in Conversion. Improve Javadoc of class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393800 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:30:51 +00:00
Joerg Schaible 016c0e5858 Improve and fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393797 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:21:09 +00:00
Joerg Schaible 0b748abd18 Use better method names. Document possible ArrayIndexOutOfBoundsException and StringIndexOutOfBoundsException.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393792 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 22:05:11 +00:00
Joerg Schaible ca9cbf976e Code clean-up for CheckStyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393626 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 17:17:40 +00:00
Joerg Schaible 28476afb7d LANG-778: Add to Conversion from byte[] to UUID and UUID to byte[]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393614 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 17:00:08 +00:00
Joerg Schaible 46448a690c Simplify expressions again.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393539 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 15:26:13 +00:00
Joerg Schaible bb7462c8b5 Document exceptions. Use IllegalArgumentException instead of assert. Throw IllegalArgumentException for empty arrays.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393425 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 11:25:51 +00:00
Joerg Schaible 216411597d Use lowercase presentation for hex values as it is done in the JDK.
Use JDK functionality where available.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1393073 13f79535-47bb-0310-9956-ffa450edef68
2012-10-02 18:12:53 +00:00
Sebastian Bazley f01111b634 Add some code comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1391783 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 11:28:57 +00:00