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

9
LINES

< > BotCompany Repo | #1003715 // decodeHQuery - decode HTML query

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

Libraryless. Click here for Pure Java version (2513L/16K).

static SS decodeHQuery(S query) {
  new SS map;
  for (S s : splitAtAmpersand(query)) {
    int i = s.indexOf('=');
    if (i >= 0)
      map.put(urldecode(s.substring(0, i)), urldecode(s.substring(i+1)));
  }
  ret map;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003715
Snippet name: decodeHQuery - decode HTML query
Eternal ID of this version: #1003715/2
Text MD5: a7a741e5c94749b306e01ae416a77ca9
Transpilation MD5: 74d997b95036c59828795cf8edb4075a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-18 18:19:41
Source code size: 230 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 585 / 650
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024032 - decodeHQueryToMultiMap - decode HTML query, keeping duplicate params
#1030236 - decodeHQueryParam - decode a single HTML query param