Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 86770 invoked from network); 28 Jun 2006 12:13:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 12:13:33 -0000 Received: (qmail 16739 invoked by uid 500); 28 Jun 2006 12:13:28 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 16688 invoked by uid 500); 28 Jun 2006 12:13:28 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 16668 invoked by uid 99); 28 Jun 2006 12:13:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 05:13:27 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.154 is neither permitted nor denied by domain of richard.liangyx@gmail.com) Received: from [202.81.18.154] (HELO ausmtp05.au.ibm.com) (202.81.18.154) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 05:13:26 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp05.au.ibm.com (8.13.6/8.13.6) with ESMTP id k5SCG0Yg2781256 for ; Wed, 28 Jun 2006 22:16:00 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.250.244]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k5SCGGhT023396 for ; Wed, 28 Jun 2006 22:16:19 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k5SCCgC2026921 for ; Wed, 28 Jun 2006 22:12:43 +1000 Received: from d23m0011.cn.ibm.com ([9.181.32.74]) by d23av03.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k5SCCZ2K024479 for ; Wed, 28 Jun 2006 22:12:37 +1000 Received: from [127.0.0.1] ([9.181.106.154]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006062819292256-18162 ; Wed, 28 Jun 2006 19:29:22 +0800 Message-ID: <44A2680B.1060200@gmail.com> Date: Wed, 28 Jun 2006 19:29:15 +0800 From: Richard Liang User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: [classlib] Requirement: Regex support for \p{javaDigit} X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 28/06/2006 19:29:22, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 28/06/2006 20:12:37, Serialize complete at 28/06/2006 20:12:37 Content-Type: multipart/alternative; boundary="------------030102010506000805020706" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------030102010506000805020706 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello All, I'm trying to implement java.util.Scanner.nextInt, which requires a regular expression pattern to represent "Integer". I find it's hard to express /NonASCIIDigit /because now Harmony regex does not support /NonASCIIDigit/. As our regex has supported "\p{javaLowerCase} Equivalent to java.lang.Character.isLowerCase()", to facilitate the development of j.u.Scanner, shall we provide support for "\p{javaDigit}", which is equivalent to java.lang.Character.isDigit()? I could provide patch for this feature if there is no objection. Thanks lot. * *You may want to refer to the number syntax in java.util.Scanner Spec:* */ NonASCIIDigit :: = A non-ASCII character c for which Character.isDigit(c) returns true Non0Digit ::= [1-Rmax] | NonASCIIDigit Digit ::= [0-Rmax] | NonASCIIDigit GroupedNumeral :: = ( Non0Digit Digit? Digit? ( LocalGroupSeparator Digit Digit Digit )+ ) Numeral ::= ( ( Digit+ ) | GroupedNumeral ) Integer ::= ( [-+]? ( Numeral ) ) | LocalPositivePrefix Numeral LocalPositiveSuffix | LocalNegativePrefix Numeral LocalNegativeSuffix/ // -- Richard Liang China Software Development Lab, IBM --------------030102010506000805020706--