Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 30075 invoked from network); 17 Jul 2002 22:28:09 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Jul 2002 22:28:09 -0000 Received: (qmail 10204 invoked by uid 97); 17 Jul 2002 22:28:27 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 10182 invoked by uid 97); 17 Jul 2002 22:28:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 10159 invoked by uid 98); 17 Jul 2002 22:28:26 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <00e801c22de1$de0bc500$b95c22d9@oemcomputer> From: "Stephen Colebourne" To: "Jakarta Commons Developers List" , References: <002b01c22d95$a58885c0$ac00a8c0@Gabriel> Subject: Re: [lang] Commons.Lang promotable? Date: Wed, 17 Jul 2002 23:32:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Berin Loritsch" > I disagree. When you look at java.util.StringTokenizer, when > you have multiple characters in the delimiter, it means that > any one of those characters splits a token. > > You just need to document it explicitly that it strips all > characters until it encounters the first character that is not > in the delimiter list. +1, but when I glanced at the code I didn't think that was what it actually did. > What real use would there be if we only striped out the token > "ab"? I can do that by calling m_str.SubString( "ab".length, > m_str.length() ); Well I guess repeated "ab"s could be stripped, but thats a very odd use case. > The only thing I can think of is to add another parameter that > is a boolean to flag wether the algorithm respects the sequence > of characters in the delimiter or not. -1. I don't think the use case is sufficiently strong for the third method. Stephen -- To unsubscribe, e-mail: For additional commands, e-mail: