RosettaCodeData/Task/Documentation/Unicon/documentation-1.unicon
2025-08-11 18:05:26 -07:00

26 lines
1 KiB
Text

# <p>
# Process a <b>properly formatted</b> CSV file.
# You can change the separator from the default <tt>,</tt>
# to any set of characters using the <tt>--separator=CSET</tt>
# argument.
# </p>
# <p>
# Each separator denotes a field separation (e.g. "a,,,b,"
# contains five fields) unless you give the <tt>--span</tt> argument.
# If you give the <tt>--span</tt> argument, then the fields
# as considered to be separated by <i>one or more</i> spans
# of the separator instead of exactly one and the above input
# contains three fields instead of five (in both cases, the last
# field is the empty string).
# </p>
# <p>
# Assumes that:<br><br>
# a. Fields containing the separator are enclosed in double
# quotes.<br>
# b. Fields containing double quotes have those quotes
# duplicated with the entire field inclosed in double
# quotes.<br>
# c. Leading and trailing whitespace (blanks and tabs) are
# to be removed unless used as separators.<br>
# d. Double quotes and newlines are <i>never</i> separators.<br>
#</p>