Author: pmichaud Date: 2009-04-22 15:44:52 +0200 (Wed, 22 Apr 2009) New Revision: 26362
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [spec]: Clean up 'quotemeta' in Str.pod, add some questions/comments. Modified: docs/Perl6/Spec/S32-setting-library/Str.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-04-22 13:23:24 UTC (rev 26361) +++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-04-22 13:44:52 UTC (rev 26362) @@ -304,9 +304,13 @@ our Str multi method quotemeta ( Str $string: ) is export Returns the input string with all non-"word" characters back-slashed. -That is, all characters not matching "/[A-Za-z_0-9]/" will be preceded +That is, all characters not matching "/<[A..Za..z_0..9]>/" will be preceded by a backslash in the returned string, regardless of any locale settings. +[Note from Pm: Should that be "/\w/" instead? Or, if the intent +is to duplicate p5 functionality, perhaps it should be "p5quotemeta"? +Do we even want this method at all?] + =item rindex our StrPos multi method rindex( Str $string: Str $substring, StrPos $pos? ) is export