# New Ticket Created by  Jim Radford 
# Please include the string:  [perl #19807]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=19807 >


I found a few typos while reading through the documentation in rx.ops.

-Jim

--- parrot-0.0.9/rx.ops.orig    Mon Jan  6 15:28:08 2003
+++ parrot-0.0.9/rx.ops Mon Jan  6 15:38:41 2003
@@ -405,7 +405,7 @@
 
 =item C<rx_oneof>(in str, inout int, in pmc, inconst int)
 
-Matches if the current character is one of the characters in the second parameter.
+Matches if the current character is one of the characters in the third parameter.
 
 This op requires that its input be sorted for efficiency.  Further, it requires that 
all
 ranges (C<a-z>) be expanded by the regex compiler.
@@ -437,7 +437,7 @@
 
 =item C<rx_oneof_bmp>(in str, inout int, in pmc, inconst int)
 
-This op has the exact same behavior as C<rx_oneof>, except that the second parameter 
+This op has the exact same behavior as C<rx_oneof>, except that the third parameter 
 is a Pointer to a bitmap generated by C<rx_makebmp>.
 
 =cut
@@ -542,10 +542,10 @@
 
 =item C<rx_search>(in str, out int, inout int, in str, inconst in) 
 
-Searches for the literal $4 on the string $1. Sets $2 to the current
+Searches for the literal $4 on the string $1 starting at $3. Sets $2 to the current
 index in the string (after the literal), and $3 to start_index.
 
-Branches to $4 if the literal is not found.
+Branches to $5 if the literal is not found.
 
 =cut
 
@@ -597,10 +597,10 @@
 
 =item C<rx_search_char> (in str, out int, inout int, in str, inconst in) 
 
-Searches for the char $4 on the string $1. Sets $2 to the current
+Searches for the char $4 on the string $1 starting at $3. Sets $2 to the current
 index in the string (after the char)
 
-Branches to $4 if the char is not found.
+Branches to $5 if the char is not found.
 
 The char is expressed as an integer representing its codepoint.
 
@@ -914,7 +914,7 @@
 
                set I0, 0
        $start:
-               rx_literal, S0, I1, I0, "foobar", $fail 
+               rx_search, S0, I1, I0, "foobar", $fail 
                print "match"
                branch $end             
        $fail:


Reply via email to