Commit Graph

1261 Commits

Author SHA1 Message Date
Gary D. Gregory 160ff8f627 Javadoc fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234322 13f79535-47bb-0310-9956-ffa450edef68
2005-08-21 19:25:21 +00:00
Stephen Colebourne ee2eef5316 Rewrite internal implementation, fix bugs, improve tests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234128 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 20:15:08 +00:00
Stephen Colebourne 6052f6f194 Fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234034 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 14:46:22 +00:00
Stephen Colebourne 4e6f3f08fe Enable chaining of methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234032 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 14:34:59 +00:00
Stephen Colebourne e477b24ec2 Improve javadoc about the reader/writer
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234031 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 14:06:10 +00:00
Stephen Colebourne 12f22030be Don't clone char array input, and handle nulls better
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234028 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 13:58:41 +00:00
Stephen Colebourne 79238a4972 Ensure that the reader is a proper view
(previously if the builder buffer changed due to appends after creating the reader these weren't picked up)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234027 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 13:56:44 +00:00
Stephen Colebourne 885f92cfa7 Remove StringPrintWriter (package scoped) as performed no useful purpose
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234019 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 11:16:54 +00:00
Stephen Colebourne 554b667e9f Fix null handling behaviour on char[] methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234018 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 10:56:46 +00:00
Stephen Colebourne a751d82424 Add appendNewLine()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@234016 13f79535-47bb-0310-9956-ffa450edef68
2005-08-20 10:14:16 +00:00
Stephen Colebourne 04e1537d3c Initial version of LocaleUtils for review of concept
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@233061 13f79535-47bb-0310-9956-ffa450edef68
2005-08-16 21:41:26 +00:00
Stephen Colebourne 6811e7b373 Increase test coverage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232895 13f79535-47bb-0310-9956-ffa450edef68
2005-08-15 22:07:49 +00:00
Stephen Colebourne 39a9cd103a Add serialization version
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232882 13f79535-47bb-0310-9956-ffa450edef68
2005-08-15 21:04:19 +00:00
Stephen Colebourne 5566627f88 Increase test coverage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232879 13f79535-47bb-0310-9956-ffa450edef68
2005-08-15 20:58:53 +00:00
Stephen Colebourne a5311d05af Remove StrTokenizer.Matcher, replace with StrMatcher
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232878 13f79535-47bb-0310-9956-ffa450edef68
2005-08-15 20:58:23 +00:00
Stephen Colebourne eea36f49f6 Increase test coverage
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232876 13f79535-47bb-0310-9956-ffa450edef68
2005-08-15 20:57:06 +00:00
Stephen Colebourne 922d48ed40 Increase the number of methods that can chain
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232656 13f79535-47bb-0310-9956-ffa450edef68
2005-08-14 21:55:58 +00:00
Stephen Colebourne 810e69f7a4 Add StrMatcher and update StrBuilder and test cases to use it, plus fix other bugs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232652 13f79535-47bb-0310-9956-ffa450edef68
2005-08-14 21:45:47 +00:00
Gary D. Gregory 512574a908 Clean up of one method from Nathan Beyer [nbeyer@kc.rr.com]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232210 13f79535-47bb-0310-9956-ffa450edef68
2005-08-12 05:31:25 +00:00
Gary D. Gregory 9dfd3b4e8e Patches to increase test coverage from Nathan Beyer [nbeyer@kc.rr.com]
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@232202 13f79535-47bb-0310-9956-ffa450edef68
2005-08-12 04:36:42 +00:00
Gary D. Gregory 030267a91b Better exception messages.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@231331 13f79535-47bb-0310-9956-ffa450edef68
2005-08-10 21:22:11 +00:00
Gary D. Gregory 1c57bb797d Replaced VariableFormatter.Token with java.text.FieldPosition.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@231330 13f79535-47bb-0310-9956-ffa450edef68
2005-08-10 21:21:52 +00:00
Gary D. Gregory e4812f52ba Integrate and tweak http://issues.apache.org/bugzilla/show_bug.cgi?id=35588.
Next: Try and replace VariableFormatter.Token with java.text.FieldPosition.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@231316 13f79535-47bb-0310-9956-ffa450edef68
2005-08-10 20:36:26 +00:00
Gary D. Gregory d1bd992c69 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230931 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 23:59:16 +00:00
Stephen Colebourne 2f6b0b2c69 Fix indexOf and lastIndexOf with null input
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230921 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 23:15:04 +00:00
Stephen Colebourne d7210650ff Add asWriter()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230918 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 22:44:59 +00:00
Stephen Colebourne 5108fdc8fc Move reverse method in file to be with other methods returning this
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230912 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 22:05:19 +00:00
Stephen Colebourne eac9add081 Add append(StringBuffer,int,int) and append(StrBuilder,int,int)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230911 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 22:03:31 +00:00
Stephen Colebourne 3aa15e0c47 Test for correct exception
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230908 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:53:55 +00:00
Stephen Colebourne e6f6b0dbfa Fix setLength()
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230906 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:50:57 +00:00
Stephen Colebourne 8048e49d99 Fix javadoc, notably exceptions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230904 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:46:58 +00:00
Stephen Colebourne ff6bf42b60 Add append(String, int, int)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230902 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 21:43:39 +00:00
Gary D. Gregory 5346b0d03c Fix some Checkstyle and PMD warnings. Extract constants from in-lined '\n' and '\r' in StringUtils.java.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230857 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 18:58:58 +00:00
Gary D. Gregory 1a824f69ad Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230836 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 18:20:13 +00:00
Gary D. Gregory ea5f046469 Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230717 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 00:43:36 +00:00
Gary D. Gregory 5f0e40893d Fix PMD warning: Avoid instantiating Boolean objects; you can usually invoke Boolean.TRUE instead.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230715 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 00:05:21 +00:00
Gary D. Gregory 4afe714859 Adds contributors Oliver Heger and Nathan Beyer.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230713 13f79535-47bb-0310-9956-ffa450edef68
2005-08-07 23:40:09 +00:00
Gary D. Gregory 707e1a4a0b [Bug 36059] [lang] Wrong length check in StrTokenizer.StringMatcher. From Oliver Heger <oliver.heger@t-online.de>.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230565 13f79535-47bb-0310-9956-ffa450edef68
2005-08-06 18:53:57 +00:00
Gary D. Gregory 1225f4309c Slightly increments the test coverage for NestableDelegate. Includes a rework of the getMessage(String) method. Courtesy of Nathan Beyer [nbeyer@kc.rr.com].
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230403 13f79535-47bb-0310-9956-ffa450edef68
2005-08-05 06:16:19 +00:00
Stephen Colebourne 93a49f6cb0 Add asReader method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227320 13f79535-47bb-0310-9956-ffa450edef68
2005-08-04 07:53:46 +00:00
Gary D. Gregory e77e2124c4 Use the name "buffer", not "buf".
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227240 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 18:02:35 +00:00
Gary D. Gregory dcfba435bb Use CAPACITY, not literal magic number.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227239 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 18:00:04 +00:00
Gary D. Gregory 614accbff9 Coverage of StrBuilder#delete(String)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227156 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 04:23:16 +00:00
Gary D. Gregory 097438b3b1 Fixes and better unit test code coverage from Nathan Beyer [nbeyer@kc.rr.com].
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227149 13f79535-47bb-0310-9956-ffa450edef68
2005-08-03 02:50:53 +00:00
Gary D. Gregory ee5b770b08 Fixes and better unit test code coverage from Nathan Beyer [nbeyer@kc.rr.com].
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226934 13f79535-47bb-0310-9956-ffa450edef68
2005-08-02 03:54:55 +00:00
Gary D. Gregory 93b5f2a7ac [Bug 35966] - [lang] StrBuilderTest#testReplaceStringString fails. From Nathan Beyer nbeyer@kc.rr.com.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226922 13f79535-47bb-0310-9956-ffa450edef68
2005-08-02 01:03:45 +00:00
Gary D. Gregory 23845c1751 Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226862 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 19:40:49 +00:00
Gary D. Gregory 159999da0c More tests. Note that testReplaceStringString fails.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226860 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 19:34:19 +00:00
Gary D. Gregory 020480ad81 Better unit test code coverage.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226713 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 01:21:29 +00:00
Gary D. Gregory 2b6e554ccf Better unit test coverage for StrTokenizer.java.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226712 13f79535-47bb-0310-9956-ffa450edef68
2005-08-01 01:14:57 +00:00