cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r1139230 - /cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/util/WildcardMatcherHelper.java
Date Fri, 24 Jun 2011 10:11:53 GMT
Author: reinhard
Date: Fri Jun 24 10:11:52 2011
New Revision: 1139230

URL: http://svn.apache.org/viewvc?rev=1139230&view=rev
Log:
fix spelling mistakes in comments

Modified:
    cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/util/WildcardMatcherHelper.java

Modified: cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/util/WildcardMatcherHelper.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/util/WildcardMatcherHelper.java?rev=1139230&r1=1139229&r2=1139230&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/util/WildcardMatcherHelper.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sitemap/src/main/java/org/apache/cocoon/sitemap/util/WildcardMatcherHelper.java
Fri Jun 24 10:11:52 2011
@@ -40,15 +40,15 @@ public class WildcardMatcherHelper {
     // ~ Methods ------------------------------------------------------------------------------------
 
     /**
-     * Match a pattern agains a string and isolates wildcard replacement into a <code>Map</code>.
<br>
+     * Match a pattern against a string and isolates wildcard replacement into a <code>Map</code>.
<br>
      * Here is how the matching algorithm works:
-     *
+     * 
      * <ul>
-     * <li> The '*' character, meaning that zero or more characters (excluding the
path separator '/') are to be
-     * matched. </li>
-     * <li> The '**' sequence, meaning that zero or more characters (including the
path separator '/') are to be
-     * matched. </li>
-     * <li> The '\*' sequence is honored as a litteral '*' character, not a wildcard
</li>
+     * <li>The '*' character, meaning that zero or more characters (excluding the path
separator '/') are to be matched.
+     * </li>
+     * <li>The '**' sequence, meaning that zero or more characters (including the path
separator '/') are to be matched.
+     * </li>
+     * <li>The '\*' sequence is honored as a literal '*' character, not a wildcard</li>
      * </ul>
      * <br>
      * When more than two '*' characters, not separated by another character, are found their
value is considered as
@@ -56,15 +56,15 @@ public class WildcardMatcherHelper {
      * The '**' wildcard is greedy and thus the following sample matches as {"foo/bar","baz","bug"}:
      * <dl>
      * <dt>pattern</dt>
-     * <dd>STAR,STAR,PATHSEP,STAR,PATHSEP,STAR,STAR (why can't I express it litterally?)</dt>
+     * <dd>STAR,STAR,PATHSEP,STAR,PATHSEP,STAR,STAR (why can't I express it literally?)</dt>
      * <dt>string</dt>
      * <dd>foo/bar/baz/bug</dt>
      * </dl>
      * The first '**' in the pattern will suck up as much as possible without making the
match fail.
-     *
+     * 
      * @param pat The pattern string.
      * @param str The string to math agains the pattern
-     *
+     * 
      * @return a <code>Map</code> containing the representation of the extracted
pattern. The extracted patterns are
      *         keys in the <code>Map</code> from left to right beginning with
"1" for te left most, "2" for the next,
      *         a.s.o. The key "0" is the string itself. If the return value is null, string
does not match to the



Mime
View raw message