static L<SS> parseCSV_noUnquote(S csv) { L<S> lines = toLines(csv); new L<SS> l; if (nempty(lines)) { L<S> fields = splitAtComma(first(lines)); for (S s : dropFirst(lines)) { SS line = litorderedmap(); L<S> data = splitAtComma(s); for i over data: line.put(get(fields, i), data.get(i)); l.add(line); } } ret l; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008333 |
Snippet name: | parseCSV_noUnquote - CSV to L<SS> - does not unquote elements |
Eternal ID of this version: | #1008333/3 |
Text MD5: | 8565437c1c004b11aa72bc4d7290a9a8 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-08 07:27:17 |
Source code size: | 380 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 510 / 538 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1008392 - parseCSV_unquote - CSV to L<SS> - with header - unquotes elements #1030417 - ExtendedCSVParser - parse CSV with multiple lines in a value, inner quotes escaped as "" |