Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 2008 invoked from network); 17 Apr 2009 01:06:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Apr 2009 01:06:07 -0000 Received: (qmail 18024 invoked by uid 500); 17 Apr 2009 01:06:06 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 17951 invoked by uid 500); 17 Apr 2009 01:06:06 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 17940 invoked by uid 99); 17 Apr 2009 01:06:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2009 01:06:06 +0000 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=HTML_MESSAGE,HTML_OBFUSCATE_05_10,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jessewilson@google.com designates 216.239.33.17 as permitted sender) Received: from [216.239.33.17] (HELO smtp-out.google.com) (216.239.33.17) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2009 01:05:56 +0000 Received: from wpaz5.hot.corp.google.com (wpaz5.hot.corp.google.com [172.24.198.69]) by smtp-out.google.com with ESMTP id n3H15YrS020575 for ; Fri, 17 Apr 2009 02:05:34 +0100 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1239930335; bh=30MBevmU1aFyWBnPsETvXL9TgNA=; h=DomainKey-Signature:MIME-Version:From:Date:Message-ID:Subject:To: Content-Type:X-System-Of-Record; b=mUe9c7zklLSzf9EvkMXJ1/9F8ekNUv9 sYR+teth2eX3a6IX5k38g57znS+H0nRRUdGusTh/QbowTW/plhugq9Q== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:from:date:message-id:subject:to:content-type:x-system-of-record; b=KNGl9KUTWn9maHkw6LUSELpwWTXHmMShF/uTPSQQtyWxkrUyuP2QQNmTJjotir1c7 LLA2h5DczT8aqZMwGt6LA== Received: from rv-out-0708.google.com (rvbl33.prod.google.com [10.140.88.33]) by wpaz5.hot.corp.google.com with ESMTP id n3H159hf009641 for ; Thu, 16 Apr 2009 18:05:33 -0700 Received: by rv-out-0708.google.com with SMTP id l33so635919rvb.14 for ; Thu, 16 Apr 2009 18:05:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.71.16 with SMTP id t16mr3088233wfa.273.1239930332573; Thu, 16 Apr 2009 18:05:32 -0700 (PDT) From: Jesse Wilson Date: Thu, 16 Apr 2009 18:05:17 -0700 Message-ID: Subject: Android Javadocs To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=001636e0a79804fea90467b5c70c X-System-Of-Record: true X-Virus-Checked: Checked by ClamAV on apache.org --001636e0a79804fea90467b5c70c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi! I'm a developer on the Android core libraries, many of which are derived from Harmony. In October, Android Dan Bornstein said that "A Day Of Reckoning would someday come", where we reintegrate Android and Harmony sources. I'm working on that effort. One major difference between Harmony and Android is the Javadocs. We've written lots. For example, here's our docs on java.util.regex.Pattern , Represents a pattern used for matching, searching, or replacing strings. Patterns are specified in terms of regular expressions and compiled using an instance of this class. They are then used in conjunction with a Matcher to perform the actual search. A typical use case looks like this: Pattern p = Pattern.compile("Hello, A[a-z]*!"); Matcher m = p.matcher("Hello, Android!"); boolean b1 = m.matches(); // true m.setInput("Hello, Robot!"); boolean b2 = m.matches(); // false The above code could also be written in a more compact fashion, though this variant is less efficient, since Pattern and Matcher objects are created on the fly instead of being reused. fashion: boolean b1 = Pattern.matches("Hello, A[a-z]*!", "Hello, Android!"); // true boolean b2 = Pattern.matches("Hello, A[a-z]*!", "Hello, Robot!"); // false Please consult the package documentation for an overview of the regular expression syntax used in this class as well as Android-specific implementation details. Harmony's docs are comparatively sparse : Pattern implements a compiler for regular expressions as defined by the J2SE specification. The regular expression syntax is largely similar to the syntax defined by Perl 5 but has both omissions and extensions. A formal and complete definition of the regular expression syntax is not provided by the J2SE speTBD (TODO) We Androids would love to contribute this documentation to Harmony. Alongside improving the Harmony doc at large, it brings our copy of the code closer in-sync with yours, which is a big win for us. Would Harmony like the Android Javadoc? How could we contribute it? I could start with a .patch for say, the regex module, and we could work from there. Cheers, Jesse --001636e0a79804fea90467b5c70c--