[perl #35410] [PATCH] change find_cclass/find_not_cclass return value

0 views
Skip to first unread message

Patrick R . Michaud

unread,
May 11, 2005, 9:14:59 AM5/11/05
to bugs-bi...@rt.perl.org
# New Ticket Created by Patrick R. Michaud
# Please include the string: [perl #35410]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=35410 >


The attached patch modifies find_cclass and find_not_cclass
to return the length of the string when no matching character
is found (previously these ops returned -1).

The patch also updates the tests in t/op/string_cclass.t to
test the new behavior.

Pm

find_cclass.patch
Reply all
Reply to author
Forward
0 new messages