module version 0.2, prepared 2012-02-04
string Public.Standards.CSV.enquote(string in)
Enquote data to be put into a CSV file This means doubling the quoting character: " -> ""
The string to quote Example: John "foo" Doe
The quoted string, ready to be written in a CSV file Example: John ""foo"" Doe
string Public.Standards.CSV.dequote(string in)
Dequote data taken from a CSV file This means reducing double quoting character: "" -> "
The string to dequote Example: John ""foo"" Doe
The string unquoted, ready to be processed Example: John "foo" Doe
mixed Public.Standards.CSV.detect_type(mixed v)
Determines the "human" type of a string. In CSV, data are stored as strings, but the actual value can be of any type. Example: "42" -> 42 "3.14" -> 3.14
Determines the "human" type of a string.
In CSV, data are stored as strings, but the actual value can be of any type.
Example: "42" -> 42 "3.14" -> 3.14
The data we want to determine type
The actual value, casted as the determined type.