[Swift-commit] r6208 - trunk/docs/userguide

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Thu Jan 31 19:04:17 CST 2013


Author: ketan
Date: 2013-01-31 19:04:16 -0600 (Thu, 31 Jan 2013)
New Revision: 6208

Modified:
   trunk/docs/userguide/mappers
Log:
padding

Modified: trunk/docs/userguide/mappers
===================================================================
--- trunk/docs/userguide/mappers	2013-02-01 00:43:05 UTC (rev 6207)
+++ trunk/docs/userguide/mappers	2013-02-01 01:04:16 UTC (rev 6208)
@@ -392,6 +392,7 @@
 |location|A directory that the files are located.
 |prefix|The prefix of the files
 |suffix|The suffix of the files, for instance: ".txt"
+|padding| The number of digits used to uniquely identify the mapped file. This is an optional parameter which defaults to 4.
 |pattern|A UNIX glob style pattern, for instance: "\*foo*" would match
 all file names that contain foo. When this mapper is used to specify
 output filenames, pattern is ignored.
@@ -438,7 +439,7 @@
     }
 }
 
-messagefile outfile[] <simple_mapper;prefix="baz",suffix=".txt">;
+messagefile outfile[] <simple_mapper;prefix="baz",suffix=".txt", padding=2>;
 
 outfile[0] = greeting("hello");
 outfile[1] = greeting("middle");
@@ -448,9 +449,9 @@
 [options="header, autowidth"]
 |=======================
 |Swift variable|Filename
-|outfile[0]|baz0000.txt
-|outfile[1]|baz0001.txt
-|outfile[2]|baz0002.txt
+|outfile[0]|baz00.txt
+|outfile[1]|baz01.txt
+|outfile[2]|baz02.txt
 |=======================
 
 simple_mapper can be used to map structures. It will map the name of




More information about the Swift-commit mailing list