dfs 2004/02/17 19:28:49
Modified: docs/api/org/apache/oro/text/perl Perl5Util.html
Log:
Fixed issue report 26892
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26892
reported by [EMAIL PROTECTED]:
>The Javadoc has some bugs:
>
>http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/Perl5Util.html
>has an example which includes the following:
>
> while((line = input.readLine()) != null) {
> if(util.match("/HREF=\"description1.html\"/")) {
>
>However, match() requires 2 parameters, it should read:
>
> if(util.match("/HREF=\"description1.html\"/",line) {
Addressed the rest of issue report 26892
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26892
>Also:
>http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/Perl5Compiler.html
>refers to a parameter as "pattern - A Perl5 regular expression to compile". It
>would be useful to compare this with the pattern parameter used by
>Perl5Util.match...
Revision Changes Path
1.2 +9 -9 jakarta-oro/docs/api/org/apache/oro/text/perl/Perl5Util.html
Index: Perl5Util.html
===================================================================
RCS file: /home/cvs/jakarta-oro/docs/api/org/apache/oro/text/perl/Perl5Util.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Perl5Util.html 29 Dec 2003 03:53:42 -0000 1.1
+++ Perl5Util.html 18 Feb 2004 03:28:49 -0000 1.2
@@ -2,9 +2,9 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.4.2) on Sun Dec 28 21:29:56 EST 2003 -->
+<!-- Generated by javadoc (build 1.4.2) on Tue Feb 17 22:25:05 EST 2004 -->
<TITLE>
-Perl5Util (Jakarta-ORO 2.0.8 API)
+Perl5Util (Jakarta-ORO 2.0.9-dev-1 API)
</TITLE>
<META NAME="keywords" CONTENT="org.apache.oro.text.perl.Perl5Util class">
@@ -14,7 +14,7 @@
<SCRIPT type="text/javascript">
function windowTitle()
{
- parent.document.title="Perl5Util (Jakarta-ORO 2.0.8 API)";
+ parent.document.title="Perl5Util (Jakarta-ORO 2.0.9-dev-1 API)";
}
</SCRIPT>
@@ -144,7 +144,7 @@
while((line = input.readLine()) != null) {
// First find the line with the string we want to substitute because
// it is cheaper than blindly substituting each line.
- if(util.match("/HREF=\"description1.html\"/")) {
+ if(util.match("/HREF=\"description1.html\"/", line)) {
line = util.substitute("s/description1\\.html/about1.html/", line);
}
output.println(line);
@@ -195,7 +195,7 @@
<DT><B>Since:</B></DT>
<DD>1.0</DD>
<DT><B>Version:</B></DT>
- <DD>2.0.8</DD>
+ <DD>2.0.9-dev-1</DD>
<DT><B>See Also:</B><DD><A
HREF="../../../../../org/apache/oro/text/perl/MalformedPerl5PatternException.html"
title="class in
org.apache.oro.text.perl"><CODE>MalformedPerl5PatternException</CODE></A>,
<A HREF="../../../../../org/apache/oro/text/PatternCache.html" title="interface in
org.apache.oro.text"><CODE>PatternCache</CODE></A>,
<A HREF="../../../../../org/apache/oro/text/PatternCacheLRU.html" title="class in
org.apache.oro.text"><CODE>PatternCacheLRU</CODE></A>,
@@ -614,7 +614,7 @@
</DL>
</DD>
<DD><DL>
-<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - The pattern to search
for.<DD><CODE>input</CODE> - The char[] input to search.
+<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - A Perl5 regular expression to
compile and search for.<DD><CODE>input</CODE> - The char[] input to search.
<DT><B>Returns:</B><DD>True if the input contains the pattern, false otherwise.
<DT><B>Throws:</B>
<DD><CODE><A
HREF="../../../../../org/apache/oro/text/perl/MalformedPerl5PatternException.html"
title="class in org.apache.oro.text.perl">MalformedPerl5PatternException</A></CODE> -
If there is an error in
@@ -660,7 +660,7 @@
</DL>
</DD>
<DD><DL>
-<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - The pattern to search
for.<DD><CODE>input</CODE> - The String input to search.
+<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - A Perl5 regular expression to
compile and search for.<DD><CODE>input</CODE> - The String input to search.
<DT><B>Returns:</B><DD>True if the input contains the pattern, false otherwise.
<DT><B>Throws:</B>
<DD><CODE><A
HREF="../../../../../org/apache/oro/text/perl/MalformedPerl5PatternException.html"
title="class in org.apache.oro.text.perl">MalformedPerl5PatternException</A></CODE> -
If there is an error in
@@ -711,7 +711,7 @@
</DL>
</DD>
<DD><DL>
-<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - The pattern to search
for.<DD><CODE>input</CODE> - The PatternMatcherInput to search.
+<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - A Perl5 regular expression to
compile and search for.<DD><CODE>input</CODE> - The PatternMatcherInput to search.
<DT><B>Returns:</B><DD>True if the input contains the pattern, false otherwise.
<DT><B>Throws:</B>
<DD><CODE><A
HREF="../../../../../org/apache/oro/text/perl/MalformedPerl5PatternException.html"
title="class in org.apache.oro.text.perl">MalformedPerl5PatternException</A></CODE> -
If there is an error in
@@ -1432,6 +1432,6 @@
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
-Copyright ? 2000-2003 Apache Software Foundation. All Rights Reserved.
+Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.
</BODY>
</HTML>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]