sS hjs_hexencode() { ret hjavascript([[ String.prototype.hexencode = function(){ var hex, i; var result = ""; for (i=0; i<this.length; i++) { hex = this.charCodeAt(i).toString(16); result += ("000"+hex).slice(-4); } return result }]]); }
Began life as a copy of #1013837
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013838 |
Snippet name: | hjs_hexencode |
Eternal ID of this version: | #1013838/1 |
Text MD5: | 4c66bcaf77ffb80c206ea7f63906c02d |
Author: | stefan |
Category: | javax / web |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-05 14:41:34 |
Source code size: | 292 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 405 / 417 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029520 - hjs_urlencode |