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

4
LINES

< > BotCompany Repo | #1030236 // decodeHQueryParam - decode a single HTML query param

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

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

static PairS decodeHQueryParam(S s) {
  int i = indexOf(s, '=');
  ret i <= 0 ? null : pair(urldecode(s.substring(0, i)), urldecode(s.substring(i+1)));
}

Author comment

Began life as a copy of #1003715

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030236
Snippet name: decodeHQueryParam - decode a single HTML query param
Eternal ID of this version: #1030236/1
Text MD5: 132e1835075fcd9aa6ed0a50d956d484
Transpilation MD5: 8d441f425c450b918334160265a23bf7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-19 13:09:04
Source code size: 156 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 267
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)