Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 84510 invoked from network); 15 Aug 2005 16:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2005 16:36:56 -0000 Received: (qmail 20513 invoked by uid 500); 15 Aug 2005 16:36:51 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 20414 invoked by uid 500); 15 Aug 2005 16:36:51 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 20400 invoked by uid 99); 15 Aug 2005 16:36:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2005 09:36:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ggregory@seagullsoftware.com designates 12.6.96.2 as permitted sender) Received: from [12.6.96.2] (HELO mailer18.seagullsoftware.com) (12.6.96.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2005 09:37:10 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [lang] StrMatcher in text subpackage Date: Mon, 15 Aug 2005 12:36:46 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [lang] StrMatcher in text subpackage Thread-Index: AcWhG+RVAzTv5bJqS1Kidb6yhGWRXQACncHQ From: "Gary Gregory" To: "Jakarta Commons Developers List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello: Perhaps the Javadoc could mention when to use a StrMatcher vs RE's in 1.4 or Jakarta's ORO. I would say that removing any code duplication is key in this on-going refactoring. So I look forward to seeing the complete refactoring. I also have a (fantasy?) goal that we could get 100% unit test coverage for the new text package. ;-) Gary > -----Original Message----- > From: Stephen Colebourne [mailto:scolebourne@btopenworld.com] > Sent: Sunday, August 14, 2005 3:03 PM > To: Jakarta Commons Developers List > Subject: [lang] StrMatcher in text subpackage >=20 > I have now performed the first step in unifying the disparate text > subpackage, creating a top-level StrMatcher class. >=20 > StrMatcher is extracted from StrTokenizer and tidied up. It provides a > way of searching a character buffer for a match. Basic matchers do > nothing interesting, but user-written subclasses could. >=20 > So far, it's only used in StrBuilder, where indexOf, lastIndexOf, > contains, delete and replace all have variants that take a StrMatcher now. >=20 > The next step, unless there are objections, is to refactor StrTokenizer > to use the new StrMatcher class (rather than the old one still inside > it). Then methods can be added to StrBuilder such as split() and > tokenizer(). >=20 > Stephen >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org