I'm declining this patch in favor of a slightly shorter version
taken almost directly from the synopsis:
our Str multi method capitalize() is export {
self.lc.subst(/\w+/, { .ucfirst }, :global)
}
Just for reference (and for consideration in other upcoming patches) --
the patch
Patrick R. Michaud via RT wrote:
(3) Case conversions on a string *can* cause its length to change -- in
particular, the character ß (U+00DF) becomes SS when converted to
uppercase. (I'm not sure that we have any tests for this at present,
and it probably doesn't work when ICU isn't
Patrick R. Michaud via RT wrote:
(3) Case conversions on a string *can* cause its length to change -- in
particular, the character ß (U+00DF) becomes SS when converted to
uppercase. (I'm not sure that we have any tests for this at present,
and it probably doesn't work when ICU isn't
# New Ticket Created by Clinton Gormley
# Please include the string: [perl #64060]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=64060
The attached patch moves capitalize from builtins/any-str.pir to