Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1024482 - parseCSSParameter

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1897L/12K).

static SS parseCSSParameter(S s) {
  SS map = new LinkedHashMap;
  for (S x : trimAll(splitAt(s, ";"))) {
    LS y = trimAll(splitAtColon(x));
    if (l(y) == 2)
      map.put(first(y), second(y));
  }
  ret map;
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, tvejysmllsmz

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: 19 / 37
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1024482 & http://1024482.tinybrain.de