Commit Graph

2981 Commits

Author SHA1 Message Date
Henri Yandell 2541a62def Moving the CharSequence specific methods out of StringUtils and reintroducing the CharSequenceUtils class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089751 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 06:28:21 +00:00
Henri Yandell e5763ff6f0 Adding a test to enforce the CharSequence vs String contract for StringUtils. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089742 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:22:01 +00:00
Henri Yandell 7a37a3deb2 Adding missing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089741 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:02:00 +00:00
Henri Yandell fb79157dbb Adding NOPMD tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089740 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 05:01:54 +00:00
Henri Yandell d6fe7f6789 Adding NOPMD tags for various empty catch blocks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089736 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:39:33 +00:00
Henri Yandell 4c690103f1 Defining TODO, NOTE and NOPMD as the interesting tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089735 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:39:13 +00:00
Henri Yandell b9b11b94c8 Adding javadoc for the new regionMatchesSequence method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089734 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:37:52 +00:00
Henri Yandell 5a7b17cf3e Reapplying more of Oliver's checkstyle fixes from r1083211
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089733 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:34:35 +00:00
Henri Yandell 3b180e56c3 Moving N.B. to NOTE: to standardize that tag
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089730 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:14:33 +00:00
Henri Yandell 473359a5cc Moving a startsWith test to the right test class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089726 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:05:57 +00:00
Henri Yandell 3dc67a2a4a Added CharSequence endsWithAny and startsWithAny tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089725 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:04:26 +00:00
Henri Yandell cc3b4d31bc Implemented the native CharSequence version of toCharArray
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089724 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 04:03:55 +00:00
Henri Yandell d1b24a3fea Moving equalsIgnoreCase, indexOfIgnoreCase, lastIndexOfIgnoreCase and containsIgnoreCase to the CharSequence API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089695 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 00:24:50 +00:00
Henri Yandell 3af0fd99d1 Adding green regionMatches implementation and moving endsWith and startsWith methods to use it; thus giving them CharSequence based APIs. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089540 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 17:21:36 +00:00
Henri Yandell 5b8fd90207 Rolling back accidental r1089306 commit
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089307 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:36:35 +00:00
Henri Yandell 09cf7964fc Moving countMatches, ordinalIndexOf and lastOrdinalIndexOf over to a CharSequence-based API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089306 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:34:26 +00:00
Henri Yandell 50f136c874 Moving countMatches, ordinalIndexOf and lastOrdinalIndexOf over to a CharSequence-based API. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089305 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:31:22 +00:00
Henri Yandell 3d041e3560 Moving stripAccents to accepting String instead of CharSequence. Even though the underlying Java API takes CharSequence, it makes for a clumsy interface and it is better to encourage the user to handle their own toString. Related to LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089303 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:16:17 +00:00
Henri Yandell 6dfc599a23 Replacing some of the older code. When performing a mutation operation (even if it's on an immutable by returning a new instance), String should go in and String should come out. When performing a non-mutation operation, CharSequence should be passed in. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089302 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 05:11:31 +00:00
Henri Yandell 3a0c152c22 Removing @author tags per thread on dev@: http://mail-archives.apache.org/mod_mbox/commons-dev/201104.mbox/%3CBANLkTikEa6GNSghx5VidxgNqi3nmKxxcVA@mail.gmail.com%3E
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088899 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 05:31:27 +00:00
Matthew Jason Benson 1dd3a636aa varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088656 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 14:55:08 +00:00
Henri Yandell 325648a185 Rolling capitalize and uncapitalize back from (CharSequence) to (String)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088505 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 08:42:38 +00:00
Henri Yandell 9946140913 Rolling StringUtils and test code back to r1082046. The move to CharSequence is theoretically desirable, but there are no common immutable CharSequence subclasses other than String, making this a complex and useless change. Instead StrBuilder should be enhanced. LANG-687
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088444 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 23:41:59 +00:00
Henri Yandell f5a6dc28f5 Setting the length of the new array to optimize speed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088439 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 23:35:59 +00:00
Henri Yandell a859fffc0a Removing unnecessary code
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088424 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 21:45:35 +00:00
Henri Yandell 161b9cb4ca Upgrading pom version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088423 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 21:45:23 +00:00
Matthew Jason Benson 9f7311fa2f varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088344 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:30:34 +00:00
Matthew Jason Benson ff5d71e1c1 varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088343 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:25:36 +00:00
Matthew Jason Benson f10738fcb5 merge CharSetUtils String[] and String method forms to String...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088340 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:19:31 +00:00
Matthew Jason Benson 125aa57018 merge CharSet getInstance/constructor String[] and String forms to String...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1088339 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 17:14:50 +00:00
Matthew Jason Benson 3541b7848a javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083850 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 15:59:10 +00:00
Matthew Jason Benson 05510d7079 retract @Nonbinding support; doesn't seem proper default behavior
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083849 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 15:58:07 +00:00
Matthew Jason Benson 85b9694d48 javadoc refactoring + many @code tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083833 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 15:29:45 +00:00
Matthew Jason Benson fb173be6ce test tweaks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083503 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 16:58:55 +00:00
Matthew Jason Benson b39944f756 test @Nonbinding support
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083502 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 16:55:24 +00:00
Oliver Heger 8fdbe09405 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083232 13f79535-47bb-0310-9956-ffa450edef68 2011-03-19 16:56:23 +00:00
Oliver Heger 1d0e73a682 Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083229 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:55:23 +00:00
Oliver Heger 6e547b34b4 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083228 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:53:44 +00:00
Oliver Heger 8de56221fd Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083222 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:45:59 +00:00
Oliver Heger 93598f906b Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083221 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:44:54 +00:00
Oliver Heger a2d928146c Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083220 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:43:58 +00:00
Oliver Heger b78378ca53 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083218 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:42:55 +00:00
Oliver Heger 57706fae97 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083217 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:41:05 +00:00
Oliver Heger 33c75a4ac8 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083216 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:38:57 +00:00
Oliver Heger 4c8462b9f5 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083215 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:36:39 +00:00
Oliver Heger d12117713b Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083211 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:32:34 +00:00
Oliver Heger e6f9e6c973 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083207 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:09:23 +00:00
Oliver Heger 32fd2eeb29 Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083206 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:07:20 +00:00
Oliver Heger c509d13abe Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083201 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:01:48 +00:00
Oliver Heger 210709ed3d Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083200 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 16:01:06 +00:00