static SS parseEqualsProperties(S text) { ret parseEqualsProperties(text, new HashMap); } static SS parseEqualsProperties(S text, SS map) { for (S s : tlft(text)) { int i = indexOf(s, '='); if (i > 0) map.put(trimSubstring(s, 0, i), trimSubstring(s, i+1)); } ret map; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020409 |
| Snippet name: | parseEqualsProperties |
| Eternal ID of this version: | #1020409/3 |
| Text MD5: | 933b3f77962154f1ccdfad1e2f5bbaa6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-19 18:10:20 |
| Source code size: | 303 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 587 / 642 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020411 - parseEqualsProperties_lhm - preserve order #1020412 - parseColonProperties |