Libraryless. Click here for Pure Java version (1897L/12K).
1 | static SS parseCSSParameter(S s) { |
2 | SS map = new LinkedHashMap; |
3 | for (S x : trimAll(splitAt(s, ";"))) { |
4 | LS y = trimAll(splitAtColon(x)); |
5 | if (l(y) == 2) |
6 | map.put(first(y), second(y)); |
7 | } |
8 | ret map; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024482 |
Snippet name: | parseCSSParameter |
Eternal ID of this version: | #1024482/4 |
Text MD5: | cff92c326799225fa1b16c5145b8d852 |
Transpilation MD5: | 987b21a5e4652333a3d2d47674e2c60d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-13 22:33:18 |
Source code size: | 222 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 396 |
Version history: | 3 change(s) |
Referenced in: | [show references] |