core :: Text :: unescape_csv
self
from CSV format to Nit String
# Unescape the content of `self` from CSV format to Nit String
private fun unescape_csv(delim_char: Char): String do
var to_un = chars_to_unescape_csv(delim_char)
if to_un == 0 then return to_s
var buf = new Buffer.with_cap(byte_length - to_un)
var pos = 0
var ln = length
while pos < ln do
var c = self[pos]
if c == delim_char then pos += 1
buf.add c
pos += 1
end
return buf.to_s
end
lib/csv/csv.nit:66,2--80,4