Changeset 17196 for docs/Perl6/Spec
- Timestamp:
- 08/03/07 21:03:34 (16 months ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/Functions.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/Functions.pod
r16156 r17196 976 976 [Default can't be C<CharLingua> because we don't go into "language" 977 977 mode unless there's a specific language declaration saying either 978 exactly what language we're going into.] 978 exactly what language we're going into or, in the absence of that, how to 979 find the exact language somewhere in the enviroment.] 979 980 980 981 Attempting to use a string at a level higher it can support is handled … … 1268 1269 1269 1270 grammar Str::SprintfFormat { 1270 regex format_token { \%: <index>? <precision>? <modifier>? <directive> }1271 token index { \d+ \$}1271 regex format_token { '%': <index>? <precision>? <modifier>? <directive> } 1272 token index { \d+ '$' } 1272 1273 token precision { <flags>? <vector>? <precision_count> } 1273 token flags { <[ \ +0\#\-]>+ }1274 token precision_count { [ <[1 -9]>\d* | \* ]? [ \. [ \d* | \*] ]? }1275 token vector { \*? v }1276 token modifier { ll | <[lhmVqL]> }1277 token directive { < [\%csduoxefgXEGbpniDUOF]> }1274 token flags { <[ \x20 + 0 \# \- ]>+ } 1275 token precision_count { [ <[1..9]>\d* | '*' ]? [ '.' [ \d* | '*' ] ]? } 1276 token vector { '*'? v } 1277 token modifier { < ll l h m V q L > } 1278 token directive { < % c s d u o x e f g X E G b p n i D U O F > } 1278 1279 } 1279 1280 … … 1350 1351 =item substr 1351 1352 1352 our Str multi substr (Str $s, StrPos $start, StrLen $length?) is rw1353 our Str multi substr (Str $s, StrPos $start, StrPos $end?) is rw1353 our Str multi method substr (Str $string: StrPos $start, StrLen $length?) is rw is export 1354 our Str multi method substr (Str $string: StrPos $start, StrPos $end?) is rw is export 1354 1355 1355 1356 C<substr> returns part of an existing string. You control what part by
